rbot

bot made with mineflayer which can do task

#rbot A bot based on mineflayer which can execute task with dependancies

Youtube Demo of repeat spiral down

  • basic mecanism to handle task and dependancies
  • a few task : dig, move, repeat, sequence
  • integration of mineflayer-navigate which can make the bot go to any position not too far away
  • dig a spiral staircase
  • inventory management : equip,toss,list
  • attack
  • Doing more complicated things : getting any block, crafting things, getting anywhere by digging
  • Integrate other mineflayer functionnality : building, crafting
  • Improve/simplify the code
  • If you specify a master the bot will only obey to him
  • node index.js ‹host› ‹port› ‹name› ‹password› [‹master›]

Commands :

  • dig ‹position›
  • move ‹position›
  • x+ x- z+ z-
  • dig forward ‹position› : dig the two block in front of the bot then move, works if there is gravel that fall
  • repeat ‹action› for example :
  • repeat dig forward ‹position›
  • ‹action1› then ‹action2› : do first action then do the second one, for example :
  • x+ then z+
  • look for mob ‹mob›
  • look for mob
  • stop repeat ‹action›
  • pos ‹player› : say the position of the other player if he is not too far away
  • move to ‹position› : use mineflayer-navigate to get to ‹position›
  • spiral up : dig an ascending spiral staircase
  • spiral down : dig a descending spiral staircase
  • equip ‹emplacement› ‹item› : equip item at emplacement (for example hand)
  • toss ‹item›
  • list : list all items of the bot
  • attack ‹entity›
  • say ‹message›

Parameters :

  • ‹position› can be :
  • rx,y,z : relative position
  • x,y,z : absolute position
  • ‹entity›
  • ‹mob› can be :
  • spider
  • enderman
  • creeper
  • ...
  • ‹entity› can be :
  • nearest mob ‹mob›
  • nearest mob : any nearest mob
  • nearest mob reachable ‹mob›
  • nearest mob reachable : any nearest reachable mob
  • me
  • player ‹playerName›