michaelzangl / minebot Goto Github PK
View Code? Open in Web Editor NEWMinebot
License: GNU General Public License v3.0
Minebot
License: GNU General Public License v3.0
Is there any way to change the facing of the bot?
There is a option to walk
for example:
minescript.doStrategy(minescript.strategyWalkTowards(minescript.getPlayer().x + 0, minescript.getPlayer().z + 9));
but is there also a option to change the facing like
minescript.doStrategy(minescript.strategyFacingEast(minescript.getPlayer().f + 80, minescript.getPlayer().f + 9));
or .getLocation().getDirection()
or something else?
And is there an option to port away if an other player is nearby?
Currently, when standing on a half-slab, the bot thinks that it is stuck in it, because it is seen as a full block. This is why mining cannot handle half slabs. Even worse, it destorys the half slab and might fall down.
Support netherwart in /minebot plant
With "/minebot lumberjack" there is an issue, when the bot lumberjack a oak wood tree with 4 wood inside. It destroys sometimes the dirt under the tree.
How about making the bot select different types of tools according to the block it mines? Not sure if this is possible but an example could be: Do /minebot mine diamond_ore, the bot will mine with a standard diamond pickaxe to the diamond ore, and once it gets to the diamond ore, it changes to a enchanted diamond pickaxe (with fortune and unbreaking enchants), and when finished it changes back to the normal pickaxe and goes to the next ore. Another example could be mining obsidian, in which it could change to a efficiency enchanted pickaxe. Ps: Love your bot :)
When the bot closes chests, crafting tables, inventory, ..., items seem to hang on the mouse pointer some times and might even get lost in singleplayer.
Plant all saplings. Should support:
/minebot plant sapling
/minebot plant spurce
/...
The bot break blocks with wrong tools, if the normal tool is not in the hotbar (dirt with axe, wood with pickaxe). Its not faster to break blocks with wrong tools as with hands or items.
We should provide a nice set of map icons:
When I'm in creative mode or just flying and type /minebuild build, minebot throws error "Cannot navigate to next build task", and stops.
It seems that there is a bug using /minebot airbridge with the 'width' parameter.
Currently the function only works using SMALL (1 wide). The Function does work flawlessly with 1 wide airbridges.
changing the parameter to WIDE, WIDER, or MAXIMUM yields the "You must be standing on a half-slab" text.
EDIT: I figured it out. for /minebot airbridge WIDTH one needs to start the first row of blocks. I had been trying to do /minebot airbridge maximum while standing on a 1x1 area of slab. Thus for maximum width stand on a 1x7 platform of slabs placed on the lower half. The run /minebot airbridge maximum
Further EDIT: One needs to stand on the 'middle' block of the 1x7 platform or the bot throws the Stand on a half slab error. The bot needs to be able to see half slab on both sides of the player position to use the width parameter.
Note: Need to edit the helpText for airbridge.
I was using xaeros_minimap_v1.7.8_Forge_1.8 before I installed Minebot. when I did the mini was gone. it is running cause I still use the in world waypoints...
running minebot .43 in minecraft 1.8....
opposite of /minebuild clear
to combat vclipping on factions servers we need to make really thick walls/floors/ceilings. It would be nice if we could automate this task a bit.
For a cube 16x15x16
/minebuild pos1 ~16 ~15 ~16
/minebuild pos2
/minebuild fill obsidian
This would also be really good for building large sandwalls.
Map icons are not persistent.
The map names should be auto-completed.
Minecraft 1.8-forge1.8-11.14.4.1563
v0.4b2
Error message: http://pastebin.com/GBfdqTdp
When I try to run script it throws error (shown in launcher):
[23:13:14] [Client thread/INFO] [STDOUT]: [net.famzangl.minecraft.minebot.ai.command.CommandRegistry:interceptCommand:226]: Minebot handling command: /minebot js C:\Users\User\Desktop\minebot\test.txt
[23:13:14] [Client thread/INFO] [STDOUT] [net.famzangl.minecraft.minebot.settings.MinebotSettings:getDataDir:75]: Data directory: C:\Users\User\AppData\Roaming.minecraft\minebot
[23:13:14] [Client thread/INFO] [STDOUT]: [net.famzangl.minecraft.minebot.ai.AIController:requestUseStrategy:350]: Request to use net.famzangl.minecraft.minebot.ai.scripting.CommandJs$RunScriptStrategy@2a769291
[23:13:14] [Client thread/INFO] [STDOUT]: [net.famzangl.minecraft.minebot.ai.AIController:onPlayerTick:156]: Using new root strategy: net.famzangl.minecraft.minebot.ai.scripting.CommandJs$RunScriptStrategy@2a769291
Exception in thread "Thread-22" [23:13:14] [Thread-22/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: java.lang.NullPointerException
[23:13:14] [Thread-22/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at net.famzangl.minecraft.minebot.ai.scripting.CommandJs$ScriptRunner.run(CommandJs.java:97)
[23:13:14] [Thread-22/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at java.lang.Thread.run(Thread.java:745)
.. to make minebuild workflow nicer.
I have another question. After a chat message the bot should move x + 10 but i always get this error:
[Minebot] JS Error: null
But i cant find the issue =(
http://pastebin.com/vVE6fVe
There should be a mode where the lumberjack only destroys logs, leaves and possibly one other sort of block it uses for going upwards.
I would need a little bit of help cause of this error:
JS Error: Type Error: "Insert any Chatmessage from Server" has no such function "matches" in at line numer 21
http://pastebin.com/ew5UL5N
Currently, tunneling places torches twice. Check if torches are really required before placing them.
Hey dude,
Just spent over an hour trying to compile this mod for 1.8.0 and gradle keeps throwing me errors. I can't think of how to get hold of you, so apologise for using this system. Would you be willing to compile this into a .jar for us?
Thanks for all your help,
Will
Currently, when there are multiple moveTo-tasks after each other, the bot always stops at the reference points. We can walk or even sprint through them if the trajectory of the player does not change to much. But we need a lookahead (like blockbreak already does) for it.
There has been an issue with the lumberjack wheare i have been playing in the minecraft prison server and the lumberjack leaves the lowest block of the tree and only cuts the rest leaving 1 block at every tree he cuts heres a picture of what he was doing http://puu.sh/h5ZAR/26f0c426ca.jpg why is he doing that ? is that because there are stone pressure plates beside the log?
For example, when I do /minebot plant, the bot should break the 2nd layer of sugar canes, and place sugar canes in dirt/sand next to a water source.
Once I use /minebot plant, it walks and harvests all the nether warts, but it doesn't replant them.
Branch / strip mining or tunnel mining - like tunnel, but the bot collects all (or whichever) exposed ores. If it is impossible to check if ores are exposed to air, this won't work, obviously. Making a strip mine (long tunnel with perpendicular tunnels every 6 or so) to go through manually later would still be helpful though.
Implementation plan:
-> Create a new item scanner that scans the world for items and their positions
-> Add item positions to the target positions of the lumberjack
-> Try to walk through items when walking to the next tree.
Whenever I try the command /minebot craft 1 (any item) the bot don't manage to craft the item. Sometimes the player even walks to the crafting table, but then an error message appears (an other strategy took over) or even the "invalid item move specification" appears when it tries to create a coal block.
There should be a basic documentation of all important commands (how and when to use them and their limitations)
The commands include:
/minebot plant
/minebot mine
/minebot mine nearby
/minebot tunnel
/minebot run (and /minebuild load), with some nice examples
/minebot fish
/minebot feed
/minebot kill
/minebot settings edit
Handling wolves:
/minebot sit (and unsit)
/minebot tint
/minebot feed
Storage management:
/minebot store
/minebot get
/minebot craft
You can use the in-game help (/minebot help ) or the class list to get a list of parameters.
A few images for AimBow would also be nice.
/minebot run should check for "var" or "minescript" at the beginning of the line and stop execution then.
Hi Michael,
First of all, excellent work on this bot!
I've noticed that when doing /minebuild clear, the bot doesn't really seem to have much logic about where it goes. I have set random to 0, but there are all sorts of anomalies that happen, including:
Digging up, below or around the clear area to get to a block it was stood right next to.
Suffocating in gravel.
Just stopping and staring at a block for a long time, until the mouse is wiggled...
Is there any way to get this to clear a hole in a more logical pattern? Like from the top down, up and down in lines until it needs to do the next layer?
I'm not so hot on my java, but I will be taking a look a the source at some point to see if I'm missing something!
Any tips are greatly appreciated!
Cheers
Adam
Falling over here:
Not had much chance to debug yet, as don't have a proper environment set up, was just trying the build, but thought I'd let you know in case it's glaringly obvious!
Just encountered a bug while auto fishing with multiple accounts.
When auto-fishing with multiple accounts, if they are both in the same chunck, both accounts will retract their fishing rod. One of the accounts caught a fish and the other one didn't. Afther that they just continue as normal.
v0.4b3
/minebot mine
/minebuild clear
Minebot break the iron ore with stone pickaxe but my hotbar has iron pickaxe
I've always had trouble running javascript files, so i just use /minebot run to run text files, However, in 1.8 release, the /minebot run command is gone. How do you use buildscripts in 1.8?
[Edit] I found the command, it has been moved to /minebuild load [file]
Version: 1.8 Liteloader 1.8 FML 8.0.20.1023
Issue: When going to activate mine by typing /minebot mine the bot will do nothing. It'll slow down and lag the client and then say action was interrupted. If you have a torch in your main hand it will place one down on the ground below you go into the lag state and then say the same thing.
Currently README.md
only contains usage examples.
It works very well and and as you have already marked for an update about the sugar cane breaking the second one, but I would find it very useful for it to have an option for it to do /sell all when the inventory has reached its capacity for a server with essentials
Currently, two torches are placed every 8m. Only one is required.
I love the everything on the bot but i did notice that there was a fishing bot with it and that it could only use 1 rod, It would be nice to see it have the ability to switch the rod at like 5 hits left and go to another rod so that on servers with ranks you can /fix the rods when you get back
I don't know how to suggest a feature so I suppose I'll put it here, I'd like for the ability to run a constant loop searching chat for a specific variable and then run a strategy based on that command.
This being included in the API, not the general /minebot commands. (Unless you want to)
We should improve the central preference system. We might want to change the file type to something more useful than simple java properties (e.g. json/gson)
Those item types need to be supported:
-> A list of (factor, distance)-touples for each block
-> A list of blocks (including blocks with meta value)
-> float, int, boolean
-> A nice map for those on_damage_... values
-> Settings for walk/destruction lookahead and task prefetching.
When I'm in creative mode, minebot keeps asking me for specific blocks instead pick them from creative. Right now I'm on MP server which allows me to store creative items only in hotbar, not in inventory and this asking every couple blocks is driving me mad.
Currently, only autocomplete of parameters is supported. Hook into the network listener to change this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.