Giter Club home page Giter Club logo

bat's Introduction

Bat - a Minecraft bot

This projects aims to create a Minecraft client that can interact with its environment.

Based on SpockBot.

Bat's Curses interface

Features

  • control via in-game chat or command line interface (curses)
  • dig and place blocks, interact with blocks and entities
  • pick up, drop, craft, use items
  • show inventory and nearby blocks in terminal output
  • eat when hungry/injured

Roadmap

See the issue tracker for what I am working on.

  • move to any directly accessible position (WIP, no digging/scaffolding)
  • build after a construction plan
    • copy existent buildings
    • build from schematic
  • gather resources
    • explicit (mine that block, get that dropped item, hunt that animal)
    • implicit (gather materials for diamond sword and its requirements)
  • fight (WIP, has optional auto-spam-click)
    • attack
    • retreat
    • potion usage
  • passive background tasks
    • collect statistical player/world data (original SpockBot goal)
    • protect other players

Usage

  1. Install SpockBot (preferably from my fork)
  2. Clone this repository: git clone https://github.com/Gjum/Bat.git && cd Bat
  3. Start the bot: python3 start.py

Legal

Copyright (C) 2016 Gjum

Licensed under the BSD License

bat's People

Contributors

gjum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bat's Issues

Realistic walking, pathfinding

Realistic walking/pathfinding means:

  • normally try to find route with only going 1 block up or falling max. 3 down (no fall damage)
  • jump across short gaps
  • if possible, walk diagonally instead of axis-aligned
  • bonus: if no "good enough" path is found, consider taking a little damage for faster route

sprinting:

  • sprint to jump over larger gaps
  • sprint-jump if enough saturation to be faster

falling:

  • avoid fall damage
  • take walking speed while falling into consideration (falling diagonally)

environment interaction:

  • use ladders and vines
  • open doors
  • mine/place blocks

enchantments, effects:

  • include Feather Falling buff if present to increase fall height
  • if jump boost status effect is active, take higher jumping into consideration

[Error] When running start.py - CursingSpock - *arg

Hi GJum,

First of all i'm super excited to try this code! Thanks for putting time in to this,
I installed all the repositories necessary including finding cursingspock even though it's not included in the repositories.

So once I got cursingspock and all of that, I ran the code and *I got this error:
http://imgur.com/a/Fg2Tn , something to do with arg on line 176 of cursingspock,

i'm not the best python coder so I couldn't figure it out - i'd really appreciate
any advice on how to fix this.

Thanks,
Nathan

fe_type

Hi,
I have been trying to run some of the examples.
Gettting an error

    if fe_type == 'rest':
NameError: name 'fe_type' is not defined

Where should I specify the fe_type varible?

"Smalltalk" with players

  • greet players that get in a certain range and have not been greeted for a time(?)
  • accuse players of hurting them if that is the case

Interaction with blocks/entities

Interaction with:

  • Blocks, e.g.
    • Chests
    • Crafting
    • Brewing
    • Anvils
    • Enchanting
  • Entities, e.g.
    • Villagers
    • Horses
    • Controlling Pigs, Minecarts, Boats

Evade entity threats

  • Melee mobs (Zombie, Spider, Creeper): kill/seek shelter
  • dodge projectiles
    • arrows (skeletons, dispensers, players?)
    • fireballs (ghasts, blazes, dispensers)
    • ?
  • Endermen

Smelting task

put items into furnace, do something else until they are smelted, come back and take them out

Mining Companion

follow player
keep area lit (#12)
collect blocks, put into assigned storage when inventory full and return to player

Go to player

Pathfind to given player
Alias "come here" to issue with the player calling as target

Do not crash on non-critical errors

While developing plugins and commans, the bot might crash unexpectedly.
In most cases, the bot could stay online and ignore the faulty event handler instead of disconnecting.

Evade Environment Threats

Evade lava coming from above (also don't fall in)
Same for sand and gravel
Don't drown in water
Don't fall (part of pathfinding already? Possibly calculate if jump will be survived)
etc

address bot by user name for interaction

Because the bot will be able to understand natural speach at some point it needs to know if it is spoken to or not.
Possible implementations include a prefix like "Username, " for single line commands and locking for multiple commands by something like "Username, I'm talking to you" and "Username, I'm not talking to you anymore".

obey Asimov's three laws of robotics

  1. A robot may not injure a human being or, through inaction, allow a human being to come to harm.
  2. A robot must obey the orders given it by human beings, except where such orders would conflict with the First Law.
  3. A robot must protect its own existence as long as such protection does not conflict with the First or Second Law.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.