AI Player - Minecraft Mod (2024)

This project so far is the result of thousands of hours of endless reasearch, trials and errors, and just the simple goal of eliminating loneliness from minecraft as much as possible.If you liked my work, please consider donating so that I can continue to work on this project in peace and can actually prove to my parents that my work is making a difference. (Also not having to ask for pocket money from mom).

Just know that I won't ever give up on this project.

AI Player - Minecraft Mod (1)

Paypal

https://paypal.me/shasankp000

I sincerely apologise for the mislabeling of the previous version of the mod. This mod is only for minecraft version 1.20.4 at the moment.

Since the new semester in my college has started this month, I am gonna be under really heavy pressure, since I have to study 10 subjects in total. Don't worry though I won't stop working on this project, it's just that the updates will be quite slower.

It's understandable if y'all leave by then or give up on this project, so, I won't mind. :))

Thank you all from the core of my heart for the support so far. I never imagined we would come this far.

Latest Update: 19/8/2024 at 12:00 PM IST (Indian Standard Time)

Please have patience while waiting for updates. Since I am the only guy working on this project, it does take me time to address all the issues/add in new features.

  • Fully implemented pathfinding for the bot.
  • Collision and entity detection(detects entites around it and looks at it).
  • Interaction with the world environment in general.

Ever felt lonely while playing minecraft alone during that two-week phase? Well, this mod aims to solve that problem of loneliness, not just catering to this particular use case, but even (hopefully in the future) to play in multiplayer servers as well.

And the best part? You can run completely offline language models based on your computer's specifications.

Please note that this is not some sort of a commercialised AI product. This project is just a solution to a problem many Minecraft players have faced and do continue to face.

At this moment, please test the mod on singleplayer worlds only, as the mod is yet to be tested on multiplayer servers.

Requires Fabric api version 0.5.11 or later for minecraft version 1.20.4

Requires owo-lib version 0.12.6 for minecraft version 1.20.3+

Requires Carpet mod version 1.4.128 for minecraft version 1.20.4

Leads to Vimeo

AI Player - Minecraft Mod (5)

Before booting up the game

First of all, upgrade to java 21 to run this mod.

https://bell-sw.com/pages/downloads/#jdk-21-lts

AI Player - Minecraft Mod (6)

Once done, you can configure the java version to be used from your minecraft launcher.

Put the mod along with the dependencies in the mod folder.Before booting up the game. Install ollama.

What is Ollama?

Ollama is a software to run language models (large or small) on your pc. Depending on your specs you can setup a language model in ollama.

https://ollama.com/download

What is a language model?

https://www.altexsoft.com/blog/language-models-gpt/

AI Player - Minecraft Mod (7)

Once installed, open ollama. You will be able to see the server running in your system tray.

Then open cmd or terminal and type ollama run <modelname> or in simple terms, let's go with this example.

ollama run tinyllama.

Wait for the model to download and setup.

It should show this now:AI Player - Minecraft Mod (8)

And you are good to go. Close the terminal and then boot up minecraft.

Also remember that if you are using this mod, it's best to create a modpack for it's own as it will require you to run ollama server in the background every time you launch the game itself. Ollama server itself doesn't consume much memory so you should be fine.

Main command

/bot

Sub commands:

spawm <bot> This command is used to spawn a bot with the desired name. ==For testing purposes, please keep the bot name to Steve==.

walk <bot> <till> This command will make the bot walk forward for a specific amount of seconds.

go_to <bot> <x> <y> <z> This command is supposed to make the bot go to the specified co-ordinates, by finding the shortest path to it. It is still a work in progress as of the moment.

send_message_to <bot> <message> This command will help you to talk to the bot.

teleport_forward <bot> This command will teleport the bot forward by 1 positive block

test_chat_message <bot> A test command to make sure that the bot can send messages.

detect_entities <bot> A command which is supposed to detect entities around the bot

Example Usage:

/bot spawn Steve

The above command changes credits go to Mr. Álvaro Carvalho

And yes since this mod relies on carpet mod, you can spawn a bot using carpet mod's commands too and try the mod. But if you happen to be playing in offline mode, then I recommend using the mod's in built spawn command.

AI Player - Minecraft Mod (2024)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Duncan Muller

Last Updated:

Views: 5487

Rating: 4.9 / 5 (59 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Duncan Muller

Birthday: 1997-01-13

Address: Apt. 505 914 Phillip Crossroad, O'Konborough, NV 62411

Phone: +8555305800947

Job: Construction Agent

Hobby: Shopping, Table tennis, Snowboarding, Rafting, Motor sports, Homebrewing, Taxidermy

Introduction: My name is Duncan Muller, I am a enchanting, good, gentle, modern, tasty, nice, elegant person who loves writing and wants to share my knowledge and understanding with you.