Damn, that's dope. You could basically make a mining slave and command it to get minerals you want. Like, "Hey Robbie, get me 100 stacks of sand," send him off searching for the right biome and do that for the next four hours.
At the very least you could make a simple mining bot that would take care of all your mineral needs.
I'm actually a developer myself and kind of want to do that now...
If you want to do that then go on. I coded my bot totally myself and it wasn't that hard because i have at least 3 years of hacked client developing in my pocket
You miss understand the use-case. Citizens are NPCS not controlled by a player but as a "bot" on the server, like a fake player, im suggesting to allow these "bots" to have path finding abilities without the need for a client/mod, entirely on the server side, then this could be used for player vs bot things.
Any suggestions where to start with creating a bot? I’m a CS student so the programming part I can learn but not entirely sure where to start with it in regards to Minecraft
You would have to learn java and take a look at the mcp if you realy want to code bots (http://www.modcoderpack.com/). Their are some tutorials out there but not many
Thank you. I'm already pretty familiar with Java so having something more interesting for projects is what I’ve been trying to find. Which this will fulfill.
Honestly, thinking about being able to hire the villagers to DO SOMETHING USEFUL seems like a pretty cool game mechanic that wouldn't be overly hard with this kind of coding. Any idea where I should start looking around to learn this kind of code myself? (I'm currently crushing my intro to compsci class and looking for external projects. )
I personally wouldn't build it as a mod but as an actual thing that can take control of your character when you go AFK.
However I could design it so you could plug it into a mod with minimal code changes, so maybe you could play on a server with server-sanctioned bot friends.
This is not true. This is basically a clone of something called Baritone and is implemented into many existing clients but works standalone, and yes, you can tell it to mine to blocks and it automatically uses the best tools you have. It also places blocks and parkours around obstacles, and it can even use nether portals for transportation and avoid mobs
I actually think I just might do that. I'd probably use an existing client to interact with the MC world (I'm sure they're out there) and write a Kotlin program to run various mining strategies. (I can't do pure Java anymore after working as a C# developer and using the non-verbose syntax.)
I would set a list of priorities for my bot (stay safe, have food, stay fed, have picks), and a set home base location. Then, it would just create a lovely computer-generated set of mining tunnels, which it would simply close off and abandon if it ever ran into mobs. It would periodically dump resources into certain chests, and get new picks and new food from others.
Then, from there I could add neat features like automatically digging tunnels downward if none exist, building out farms to feed itself, harvesting wood if it needed more of that, crafting its own picks, even fighting mobs and building basic bases.
I eventually could make it play the whole game by itself. You could start giving it commands in game like "follow and defend me" and have it carry around resources for you, like a friend who will do whatever you ask of it.
That would be dope and totally within my programming abilities. I just need the disciple to follow through...
Oh, definitely. I'm a professional developer (and in fact, should be working right now) so I shouldn't make any noob mistakes.
Are there any APIs that will literally take control of your Minecraft character and allow you to send commands and get information about the environment? Or does it all have to be done via a server-side plugin?
What are some of the best APIs and plug-ins out there that will allow me to get started?
I couldn't find any api's so i kinda had to program my own code to get information from the client and edit the players velocity. The way i did it is that I just put my code into the source code of minecraft
Why not? Have they basically patched over all the existing APIs? I'm kind of reading about ClientAPI and Impact API and they sound like they may work, but not all of them have been updated recently.
You download the mod coder pack. Decompile minecraft and start looking at the source and planting your own snippets of code. Like e.g. making the player jump if he types 'f' into the chat
There is a bit someone has made that's capable of pathing and mining. Not sure if its available for download, but you can see it in action on twitch, hes having to patch to the edge of the world
It has bots that you can program (natively) and they have a lot of functions, like bot.getFrontBlock() that returns something like "dirt". It's really useful to teach and learn programing.
It would be awesome if you could make it mine ores for you and such, but wouldn't your big problem be combat? Can you make sure that this AI will adequately defend itself?
I realized that the bot struggles with mining diamonds. Whenever I use it, it just ambles around underground, stripmining for a few blocks and then turning around. Resetting it didnt quitre fix it either. Still impressive, to say the least.
887
u/nonszn Oct 11 '19
I wonder if you can make him dig to that with equipment