Set game rule
set_gameruleSet a boolean or integer Minecraft game rule in the main world and return the server-reported value to verify the update was applied.
Instructions
Set a boolean or integer game rule in the main world and return the value the server now reports (check it: the plugin silently ignores values it cannot parse).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"rule": "<rule>",
"value": "<value>"
},
"name": "set_gamerule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | Game rule such as 'keep_inventory' or 'mob_griefing' (legacy names like keepInventory work too). | |
| value | Yes | New value: true/false for switches, a number for counts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||