Server & admin · Step
Set a game rule
Change a game rule in a world, like keepInventory, doDaylightCycle or mobGriefing.
m.world.gamerule
In a flow
“When the server starts → Set a game rule: minecraft:keep_inventory to true.”
When the server starts → Set a game rule: minecraft:keep_inventory to true.
What it does
Change a game rule in a world, like keepInventory, doDaylightCycle or mobGriefing. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. Find it under Server & admin in the palette.
When to use it
Use it when the flow changes the server itself: change a game rule in a world, like keepInventory, doDaylightCycle or mobGriefing.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Sockets: settings you can wire
- World Text
-
The world's name, like world. Variables allowed.
What goes there: Type it in the side panel, or wire in text. e.g. Hello there
If it's empty: Optional. Left empty and unwired, it uses world.
Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 845 more
- Value Text
-
True, false or a number, as the rule takes.
What goes there: Type it in the side panel, or wire in text. e.g. Hello there
If it's empty: Optional. Left empty and unwired, it uses true.
Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 845 more