Gamerules

Enumeration of supported gamerules with their canonical display names.

Parameters

displayName

name of gamerule shown in menus.

Entries

Link copied to clipboard

Enable or disable join/leave messages.

Link copied to clipboard

Whether doors and fences reset automatically.

Link copied to clipboard

Enable or disable status effects or similar statuses.

Link copied to clipboard

Whether vehicles despawn when a player dismounts.

Link copied to clipboard

Enable or disable item drops.

Link copied to clipboard

Allow or disallow player crafting.

Link copied to clipboard

Allow flying during egg hunt events.

Link copied to clipboard

Enable or disable cosmetic pets.

Link copied to clipboard

Enable or disable cosmetic particle packs.

Link copied to clipboard

Enable or disable cosmetic cloaks.

Link copied to clipboard

Enable or disable the inventory bin feature.

Properties

Link copied to clipboard
Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.