Merge pull request #255 from kolbytn/1-21-support

added 1.21.1 support
This commit is contained in:
Max Robinson 2024-10-27 15:07:12 -05:00 committed by GitHub
commit 67cf8500ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 9 deletions

View file

@ -10,7 +10,7 @@ This project allows an AI model to write/execute code on your computer that may
## Requirements ## Requirements
- [Minecraft Java Edition](https://www.minecraft.net/en-us/store/minecraft-java-bedrock-edition-pc) (up to v1.20.4) - [Minecraft Java Edition](https://www.minecraft.net/en-us/store/minecraft-java-bedrock-edition-pc) (up to v1.21.1)
- [Node.js](https://nodejs.org/) (at least v14) - [Node.js](https://nodejs.org/) (at least v14)
- One of these: [OpenAI API Key](https://openai.com/blog/openai-api) | [Gemini API Key](https://aistudio.google.com/app/apikey) |[Anthropic API Key](https://docs.anthropic.com/claude/docs/getting-access-to-claude) | [Replicate API Key](https://replicate.com/) | [Hugging Face API Key](https://huggingface.co/) | [Groq API Key](https://console.groq.com/keys) | [Ollama Installed](https://ollama.com/download) - One of these: [OpenAI API Key](https://openai.com/blog/openai-api) | [Gemini API Key](https://aistudio.google.com/app/apikey) |[Anthropic API Key](https://docs.anthropic.com/claude/docs/getting-access-to-claude) | [Replicate API Key](https://replicate.com/) | [Hugging Face API Key](https://huggingface.co/) | [Groq API Key](https://console.groq.com/keys) | [Ollama Installed](https://ollama.com/download)
@ -34,7 +34,7 @@ Then, clone/download this repository
Run `npm install` from the installed directory Run `npm install` from the installed directory
Install the minecraft version specified in `settings.js`, currently supports up to 1.20.4 Install the minecraft version specified in `settings.js`, currently supports up to 1.21.1
### Running Locally ### Running Locally

View file

@ -6,8 +6,8 @@
"@huggingface/inference": "^2.8.1", "@huggingface/inference": "^2.8.1",
"google-translate-api-x": "^10.7.1", "google-translate-api-x": "^10.7.1",
"groq-sdk": "^0.5.0", "groq-sdk": "^0.5.0",
"minecraft-data": "^3.46.2", "minecraft-data": "^3.78.0",
"mineflayer": "^4.20.0", "mineflayer": "^4.23.0",
"mineflayer-armor-manager": "^2.0.1", "mineflayer-armor-manager": "^2.0.1",
"mineflayer-auto-eat": "^3.3.6", "mineflayer-auto-eat": "^3.3.6",
"mineflayer-collectblock": "^1.4.1", "mineflayer-collectblock": "^1.4.1",
@ -15,7 +15,7 @@
"mineflayer-pvp": "^1.3.2", "mineflayer-pvp": "^1.3.2",
"openai": "^4.4.0", "openai": "^4.4.0",
"patch-package": "^8.0.0", "patch-package": "^8.0.0",
"prismarine-item": "^1.14.0", "prismarine-item": "^1.15.0",
"prismarine-viewer": "^1.28.0", "prismarine-viewer": "^1.28.0",
"replicate": "^0.29.4", "replicate": "^0.29.4",
"vec3": "^0.1.10", "vec3": "^0.1.10",

View file

@ -1,15 +1,18 @@
export default export default
{ {
"minecraft_version": "1.20.4", // supports up to 1.20.4 "minecraft_version": "1.21.1", // supports up to 1.21.1
"host": "127.0.0.1", // or "localhost", "your.ip.address.here" "host": "127.0.0.1", // or "localhost", "your.ip.address.here"
"port": 55916, "port": 55916,
"auth": "offline", // or "microsoft" "auth": "offline", // or "microsoft"
"profiles": [ "profiles": [
"./andy.json", "./andy.json",
// "./profiles/gpt.json",
// "./profiles/claude.json",
// "./profiles/gemini.json",
// "./profiles/llama.json",
// add more profiles here, check ./profiles/ for more // using more than 1 profile requires you to /msg each bot indivually
// more than 1 profile will require you to /msg each bot indivually
], ],
"load_memory": false, // load memory from previous session "load_memory": false, // load memory from previous session
"init_message": "Say hello world and your name", // sends to all on spawn "init_message": "Say hello world and your name", // sends to all on spawn