Change a world
set_worldAdjust a Minecraft world's time, weather, difficulty, PvP, game rules, border, and spawn or respawn point in one call; only the settings you provide change.
Instructions
Change any of these at once; only what you give changes. The time of day (dayTime 0–23999: 0 sunrise, 1000 morning, 6000 noon, 13000 night, 18000 midnight), or move the clock forward with addTicks (24000 is a day). The weather (clear, rain, thunder), optionally for durationTicks (20 per second). The difficulty and PvP. rules sets game rules, such as { "keep_inventory": true, "players_sleeping_percentage": 50 } (get_world with include rules lists them). border resizes (optionally over transitionSeconds), moves, or changes the world border's damage and warnings. spawn is this world's own point, used by teleports to it; respawn moves the server's spawn point, where players join and respawn without a bed, into this world.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_world"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pvp | No | Whether players can hurt each other | |
| rules | No | Game rule name to value | |
| spawn | No | This world's own point | |
| world | No | World name, such as `world`, `world_nether`, `world_the_end`, or a key like `minecraft:the_nether` | world |
| border | No | Only the fields given change | |
| dayTime | No | Ticks; 6000 noon, 18000 midnight | |
| respawn | No | The server's spawn point; give x, y, z together, or none to use this world's own point | |
| weather | No | New weather | |
| addTicks | No | Moves the clock forward; 24000 ticks are one day | |
| difficulty | No | New difficulty | |
| durationTicks | No | How long the new weather lasts |