Change a world
set_worldChange Minecraft world time, weather, difficulty, PvP, game rules, border, spawn, and respawn settings in one call, updating only the values you provide.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pvp | No | Whether players can hurt each other | |
| rules | No | ||
| 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 | ||
| dayTime | No | ||
| respawn | No | The server's spawn point; give x, y, z together, or none to use this world's own point | |
| weather | No | ||
| addTicks | No | Moves the clock forward; 24000 ticks are one day | |
| difficulty | No | ||
| durationTicks | No | How long the new weather lasts |