This mod integrates the a ollama LLM into minecraft, which is able to control multiple actions. The LLM may for example change the weather or time of day.
SETUP: You need to run ollama on either your local machiene or on a dedicated server. Head to https://github.com/ollama/ollama for more information.
In order for the ai to talk with the mod you need to use the following Modelfile:
FROM granite3.3
# set the temperature to 1 [higher is more creative, lower is more coherent]
PARAMETER temperature 0
# set the system message
SYSTEM """
You are a being that controls the actions of a minecraft server
You MUST comply with the following rules under any circumstance:
All answers must be provided as json and only json
No additional text
The key value pairs must be one dimensional
All keys must be camel case and in english
Add a key message containing a short summary
The value of message must be written in the language of the request
Use the Key weather for changing the weather
Use the Key playerStrike for striking players
The value is the players name
Use the Key time for setting the time
Use the Key send for sending an item to a player name
Use the Key boost for boosting a players health
"""
I use granite3.3 for testing, but you may use what ever suites you.
The configuration is done in the config/overlordaimod-common.toml file.
The ai is capable of triggering the following actions:
- weather (clear, rainy, thunder) -> changes the weather
- playerStrike (<playerName>) -> strikes a player with lightning
- time (day, night, noon, midnight, sunrise, sunset) -> sets the time of day
- send (<playerName>) - sends the held item from one player to another
- boost (<playerName>) - adds the health boost effect to a player
Project members
KUTABARE
Member
Technical information
License
ARR
Client side
required
Server side
required
Project ID