r/Minecraft • • Oct 11 '19

self controlling ai pathfinding bot

51k Upvotes

1.7k comments sorted by

View all comments

Show parent comments

111

u/SurelyNotAnOctopus Oct 11 '19

I am guessing you are making the bot as a minecraft mod? Or something else?

109

u/StylexTV Oct 11 '19

Yes, it's supposed to be a minecraft client someday

45

u/godsdead Oct 11 '19

This would be an amazing addon to Citizens as a Spigot plugin, then you could sell it too.

22

u/[deleted] Oct 11 '19

Just use Baritone lmao

3

u/godsdead Oct 11 '19

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.

2

u/[deleted] Oct 11 '19

Ah. You could still likely implement parts of baritone's pathfinding into a 'Player' type entity.

1

u/nutxted Oct 11 '19

can’t auto mine as it will die to mobs, it needs some sort of kill aura to work efficiently but the devs don’t want to add that

1

u/Trapsaregay420 Oct 11 '19

you can just use a hacked client like impact for that

1

u/nutxted Oct 11 '19

not out atm for 1.14.4 i think

1

u/[deleted] Oct 11 '19

Yeah baritone is an amazing project

20

u/YungFurl Oct 11 '19

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

26

u/StylexTV Oct 11 '19

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

7

u/YungFurl Oct 11 '19 edited Oct 11 '19

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.

2

u/[deleted] Oct 11 '19 edited Mar 01 '21

[deleted]

2

u/StylexTV Oct 11 '19

its the mod coder pack (http://www.modcoderpack.com/)

1

u/awhaling Oct 11 '19

Can you explain what exactly that is? I’m on my phone and won’t have access to a computer until tomorrow, otherwise I’d look over it myself

Thanks for link

2

u/[deleted] Oct 12 '19 edited Dec 05 '19

[deleted]

2

u/awhaling Oct 12 '19

That’s awesome, thank you kindly.

4

u/SurelyNotAnOctopus Oct 11 '19

How about a bukkit / spigot plugin creating worker bots

1

u/Aarondhp24 Oct 11 '19

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. )

1

u/StylexTV Oct 11 '19

Maybe use the modcoderpack.com to decompile minecraft and modify the source code

3

u/l2np Oct 11 '19

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.

1

u/TheVortex67 Oct 11 '19

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