Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Changelog
So after a lot of research and painful hours of coding here's the new update!
What's new :
-
Fixed previous bugs.
-
Switched to a much lighter model (llama3.2) for conversations, RAG and function calling
-
A whole lot of commands
-
Reinforcement Learning (Q-learning).
-
Theortically Multiplayer compatible (just install the dependencies on server side), as carpet mod can run on servers too, but I have not tested it yet. Feedback is welcome from testers on this.
-
Theoretically the mod should not require everyone to install it on multiplayer, it should be a server-sided one, haven't tested this one yet, feedback is welcome from testers.
Bot can now interact with it's envrionment based on "triggers" and then learn about it's situation and try to adapt.
The learning process is not short, don't expect the bot to learn how to deal with a situation very quickly, in fact if you want intelligent results, you may need hours of training(Something I will focus on once I fix some more bugs, add some more triggers and get this version out of the alpha stage)
To start the learning process:
/bot spawn <botName> training
Right now the bot only reacts to hostile mobs around it, will add more "triggers" so that the bot responds to more scenarios and learns how to deal with such scenarios in upcoming updates
A video on how the bot learns and what's new in this patch
# New commands :
Spawn command changed.
/bot spawn <bot> <mode: training or play>
, if you type anything else in the mode parameter you will get a message in chat showing the correct usage of this command
/bot use-key <W,S, A, D, LSHIFT, SPRINT, UNSNEAK, UNSPRINT> <bot>
/bot release-all-keys <bot> <botName>
/bot look <north, south, east, west>
/bot detectDangerZone
// Detects lava pools and cliffs nearby
/bot getHotBarItems
// returns a list of the items in it's hotbar
/bot getSelectedItem
// gets the currently selected item
/bot getHungerLevel
// gets it's hunger levels
/bot getOxygenLevel
// gets the oxygen level of the bot
/bot equipArmor
// gets the bot to put on the best armor in it's inventory
/bot removeArmor
// work in progress.
Current bugs in this version :
- If the bot dies or is killed off while it was engaged in an action, the code might throw an error on the bot respawn. Temporary fix is a game restart (or server restart).
Will be fixed in upcoming patch.
- The
removeArmor
sub-command doesn't work (yet).
What to do to setup this version before playing the game :
1. Make sure you still have ollama installed.
2. In cmd or terminal type `ollama pull nomic-embed-text (if not already done).
3. Type `ollama pull llama3.2`
4. Type `ollama rm gemma2 (if you still have it installed)
5. Type `ollama rm llama2 (if you still have it installed)
6. If you have run the mod before go to your .minecraft folder, navigate to a folder called config, and delete a file called settings.json5
Then make sure you have turned on ollama server. After that launch the game.
Type /configMan
in chat and select llama3.2 as the language model, then hit save and exit.
Then type /bot spawn <yourBotName> <training (for training mode, this mode won't connect to language model) and play (for normal usage)
For the nerds : How does the bot learn?
It uses an algorithm called Q-learning which is a part of reinforcement learning.
A very good video explanation on what Q-learning is :
Files
Metadata
Release channel
AlphaVersion number
1.0.3-alpha-1Loaders
Game versions
1.20.4Downloads
1134Publication date
December 6, 2024 at 9:35 PMPublisher
shasankp000
Member