-
Notifications
You must be signed in to change notification settings - Fork 0
Setup Guide
-
Install the mod into your server's
modsfolder. -
Start the server once.
-
CloudChat will automatically generate a config file at:
config/cloudchat/cloudchat.properties
-
Open the config file.
-
Replace the Worker URL and API secret with your own Cloudflare Worker AI endpoint.
Example:
worker_url=https://your-worker.workers.dev api_secret=your_api_secret
api_secretis your API password/token ( And yes, you can name it anything like banana123 or whatever you want, don't need to generate from CloudFlare ), not the Worker URL. -
(Optional) Change the AI model in the config.
Example:
model=@cf/meta/llama-3.1-8b-instructDefault model:
@cf/meta/llama-3.1-8b-instruct
-
Restart the server.
-
Use the command in-game:
/cloudchat Hello!
-
Create a Cloudflare account.
-
Go to:
https://dash.cloudflare.com/
-
Open:
Workers & Pages
-
Create a new Worker.
-
Replace the default Worker code with the CloudChat Worker template.
-
Deploy the Worker.
-
Copy the Worker URL.
Example:
https://cloudchat.yourname.workers.dev
-
Put the Worker URL into your CloudChat config:
worker_url=https://cloudchat.yourname.workers.dev -
Restart the server.
The CloudChat Worker Backend is the Cloudflare Worker that connects the Minecraft mod to Cloudflare Workers AI.
The Minecraft mod sends player messages to this Worker.
The Worker checks the API secret, sends the message to the selected AI model, then returns the AI reply back to Minecraft.
- API secret authentication
- AI model selection
- Server context handling
- Online player count context
- Dimension/world time context
- Anti-hallucination rules
- Returning AI replies to Minecraft
Paste the CloudChat Worker template into your Cloudflare Worker editor.
The API_SECRET is a password shared between your Minecraft config and your Worker.
Example:
Minecraft config:
api_secret=my_secret_password