public class DefaultGameRules extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ANNOUNCE_ADVANCEMENTS
If advancements should be announced to the server.
|
static String |
COMMAND_BLOCK_OUTPUT
Whether
CommandBlocks should notify admins when
they perform commands. |
static String |
DISABLE_ELYTRA_MOVEMENT_CHECK
Whether the server should skip checking player speed when
the player is wearing elytra.
|
static String |
DO_DAYLIGHT_CYCLE
Whether the day-night cycle and moon phases progress.
|
static String |
DO_ENTITY_DROPS
Whether entities that are not mobs should have drops.
|
static String |
DO_FIRE_TICK
Whether fire should spread and naturally extinguish.
|
static String |
DO_LIMITED_CRAFTING
Whether
Players can only craft recipes they have unlocked. |
static String |
DO_MOB_LOOT
Whether
Agents should drop items. |
static String |
DO_MOB_SPAWNING
Whether
Agents should naturally spawn. |
static String |
DO_TILE_DROPS
Whether blocks should have drops.
|
static String |
DO_WEATHER_CYCLE
Whether the weather will change.
|
static String |
GAME_LOOP_FUNCTION
A function to be executed once per tick.
|
static String |
KEEP_INVENTORY
Whether
Players should keep items in their inventory
after death. |
static String |
LOG_ADMIN_COMMANDS
Whether to log admin commands to server log.
|
static String |
MAX_COMMAND_CHAIN_LENGTH
The total number of
chain command
blocks that can run during a single tick. |
static String |
MAX_ENTITY_CRAMMING
The maximum number of other pushable entities a mob or player can push,
before taking 3 suffocation damage per half-second.
|
static String |
MOB_GRIEFING
|
static String |
NATURAL_REGENERATION
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.). |
static String |
RANDOM_TICK_SPEED
How often a random block tick occurs (such as plant growth,
leaf decay, etc.) per chunk section per game tick.
|
static String |
REDUCED_DEBUG_INFO
Whether the debug screen shows all or reduced information.
|
static String |
SEND_COMMAND_FEEDBACK
Whether the feedback from commands executed by a
Player
should show up in chat. |
static String |
SHOW_DEATH_MESSAGES
Whether a message appears in chat when a
Player dies. |
static String |
SPAWN_RADIUS
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.
|
static String |
SPECTATORS_GENERATE_CHUNKS
Whether players in
spectator mode can
generate chunks. |
| Constructor and Description |
|---|
DefaultGameRules() |
public static final String ANNOUNCE_ADVANCEMENTS
This is a boolean game rule, with a default value of true.
public static final String COMMAND_BLOCK_OUTPUT
CommandBlocks should notify admins when
they perform commands.
This is a boolean game rule, with a default value of true.
public static final String DISABLE_ELYTRA_MOVEMENT_CHECK
This is a boolean game rule, with a default value of
false.
public static final String DO_DAYLIGHT_CYCLE
This is a boolean game rule, with a default value of
true.
public static final String DO_ENTITY_DROPS
This is a boolean game rule, with a default value of
true.
public static final String DO_FIRE_TICK
This is a boolean game rule, with a default value of
true.
public static final String DO_LIMITED_CRAFTING
Players can only craft recipes they have unlocked.
This is a boolean game rule, with a default value of
false.
public static final String DO_MOB_LOOT
Agents should drop items.
This is a boolean game rule, with a default value of true.
public static final String DO_MOB_SPAWNING
Agents should naturally spawn.
This is a boolean game rule, with a default value of true.
public static final String DO_TILE_DROPS
This is a boolean game rule, with a default value of true.
public static final String DO_WEATHER_CYCLE
This is a boolean game rule, with a default value of true.
public static final String GAME_LOOP_FUNCTION
This is a string game rule, with a default value of -.
public static final String KEEP_INVENTORY
Players should keep items in their inventory
after death.
This is a boolean game rule, with a default value of
false.
public static final String LOG_ADMIN_COMMANDS
This is a boolean game rule, with a default value of
true.
public static final String MAX_COMMAND_CHAIN_LENGTH
chain command
blocks that can run during a single tick.
This is a numerical game rule, with a default value
of 65536.
public static final String MAX_ENTITY_CRAMMING
Damage affects survival mode or
adventure mode Players, and all
mobs but bats. Pushable entities include non-spectator-mode
Player, any mob except Bats, as well as
Boats and Minecart.
Setting to 0 disables the rule.
This is a numerical game rule, with a default value of 24.
public static final String MOB_GRIEFING
Agents should be able to change blocks, and whether
Agents can pick up items.
In vanilla Minecraft, the following entities can change blocks when
this gamerule is true:
In vanilla Minecraft, the following entities can pick up items when
this gamerule istrue:
This is a boolean game rule, with a default value of true.
public static final String NATURAL_REGENERATION
Players can regenerate health naturally if their
hunger is full enough (doesn't affect external healing, such as
golden apples, the Regeneration effect, etc.).
This is a boolean game rule, with a default value of true.
public static final String RANDOM_TICK_SPEED
0 will disable random ticks, higher numbers will increase random ticks
This is a numerical game rule, with a default value of 3.
public static final String REDUCED_DEBUG_INFO
This is a boolean game rule, with a default value of
false.
public static final String SEND_COMMAND_FEEDBACK
Player
should show up in chat.
This game rule affects the default behavior of whether
CommandBlocks store their output text.
This is a boolean game rule, with a default value of true.
public static final String SHOW_DEATH_MESSAGES
Player dies.
This is a boolean game rule, with a default value of true.
public static final String SPAWN_RADIUS
This is a numerical game rule, with a default value of 10.
public static final String SPECTATORS_GENERATE_CHUNKS
spectator mode can
generate chunks.
This is a boolean game rule, with a default value of true.