A game rule that prevents the client from doing client-side actions and animations.
Fields:
Name | Type | When |
---|---|---|
name | string | |
type | ubyte | |
boolean value | bool | type is equal to 1 |
integer value | varuint | type is equal to 2 |
floating value | float | type is equal to 3 |
Name of the rule. Same of the gamerule
command's field in the game.
The behaviours indicated in the following constants' descriptions is enabled or disabled.
Constants:
Name | Value | |
---|---|---|
command block output | commandblockoutput | Command's block output in the chat |
do daylight cycle | dodaylightcycle | |
do entity drops | doentitydrops | |
do fire tick | dofiretick | |
do mob loot | domobloot | |
do mob spawning | domobspawning | |
do tile drops | dotiledrops | |
do weather cycle | doweathercycle | |
drowning damage | drowningdamage | Damage animation when drowning |
fall damage | falldamage | Damage animation when falling |
fire damage | firedamage | Damage animation when burning |
keep inventory | keepinventory | |
mob griefing | mobgriefing | |
pvp | pvp | Damage animation and related packets |
send command feedback | sendcommandfeedback |
Constants:
Name | Value |
---|---|
boolean | 1 |
integer | 2 |
floating | 3 |