GameRules

@Catalogue(type = GameRule::class)
object GameRules

All the built-in game rules.

Properties

Link copied to clipboard

If advancements should be announced to the server.

Link copied to clipboard

If false, blocks will always drop from explosions. If true, whether a block drops from an explosion is determined randomly depending on how far the block is from the centre of the explosion.

Link copied to clipboard

Whether command blocks should notify admins when they perform commands.

Link copied to clipboard

Whether the server should skip checking player speed when the player is wearing elytra.

Link copied to clipboard

Whether raids are disabled.

Link copied to clipboard

Whether blocks should have drops.

Link copied to clipboard

Whether the day-night cycle and moon phases progress.

Link copied to clipboard

Whether entities that are not mobs should have drops.

Link copied to clipboard

Whether fire should spread and naturally extinguish.

Link copied to clipboard

Whether Players should respawn immediately without showing the death screen.

Link copied to clipboard

Whether phantoms can spawn in the night-time.

Link copied to clipboard

Whether Players can only craft recipes they have unlocked.

Link copied to clipboard

Whether Mobs should drop items.

Link copied to clipboard

Whether Mobs should naturally spawn.

Link copied to clipboard

Whether patrollers will go out on patrol (typically in a raid).

Link copied to clipboard

Whether wandering traders will naturally spawn.

Link copied to clipboard

Whether wardens will spawn when triggered by sculk shriekers.

Link copied to clipboard

Whether the weather will change.

Link copied to clipboard

Whether entities should take drowning damage.

Link copied to clipboard

Whether entities should take fall damage.

Link copied to clipboard

Whether entities should take fire damage.

Link copied to clipboard

Makes angered neutral mobs stop being angry when the targeted player dies nearby.

Link copied to clipboard

Whether entities should take freezing damage.

Link copied to clipboard

Whether sound events that can be heard by all players regardless of location, such as the end portal lighting sound, are allowed to play.

Link copied to clipboard

Whether Players should keep items in their inventory after death.

Link copied to clipboard

Whether new sources of lava are allowed to form.

Link copied to clipboard

Whether to log admin commands to server log.

Link copied to clipboard

The total number of chain commands that can run during a single tick.

Link copied to clipboard

The maximum number of other pushable entities a mob or player can push, before taking 3 suffocation damage per half-second.

Link copied to clipboard

If false, blocks will always drop from explosions. If true, whether a block drops from an explosion is determined randomly depending on how far the block is from the centre of the explosion.

Link copied to clipboard

Whether Mobs should be able to change blocks and pick up items.

Link copied to clipboard

Whether Players can regenerate health naturally if their hunger is full enough (doesn't affect external healing, such as golden apples, the Regeneration effect, etc.).

Link copied to clipboard

The percentage of players that must be sleeping to skip the night.

Link copied to clipboard

How often a random block tick occurs (such as plant growth, leaf decay, etc.) per chunk section per game tick.

Link copied to clipboard

Whether the debug screen shows all or reduced information.

Link copied to clipboard

Whether the feedback from commands executed by a Player should show up in chat.

Link copied to clipboard

Whether a message appears in chat when a Player dies.

Link copied to clipboard

The number of blocks outward from the world spawn coordinates that a player will spawn in when first joining a server or when dying without a spawn point.

Link copied to clipboard

Whether players in spectator mode can generate chunks.

Link copied to clipboard

If false, blocks will always drop from explosions. If true, whether a block drops from an explosion is determined randomly depending on how far the block is from the centre of the explosion.

Link copied to clipboard

Makes angered neutral mobs attack any nearby player, not just the player that angered them.

Link copied to clipboard

Whether new sources of water are allowed to form.