|
5 | 5 |
|
6 | 6 | public class CMGameRules { |
7 | 7 |
|
| 8 | + public static final String ALLOW_SURVIVAL_OUT_OF_BOUNDS_KEY = CompactMachines.dotPrefix("allow_survival_oob"); |
8 | 9 | public static GameRules.Key<GameRules.BooleanValue> ALLOW_SURVIVAL_OUT_OF_BOUNDS; |
| 10 | + |
| 11 | + public static final String ALLOW_CREATIVE_OUT_OF_BOUNDS_KEY = CompactMachines.dotPrefix("allow_creative_oob"); |
9 | 12 | public static GameRules.Key<GameRules.BooleanValue> ALLOW_CREATIVE_OUT_OF_BOUNDS; |
| 13 | + |
10 | 14 | public static GameRules.Key<GameRules.BooleanValue> ALLOW_SPECTATORS_OUT_OF_BOUNDS; |
| 15 | + public static final String ALLOW_SPECTATORS_OUT_OF_BOUNDS_KEY = CompactMachines.dotPrefix("allow_spectator_oob"); |
| 16 | + |
| 17 | + public static final String DAMAGE_OOB_PLAYERS_KEY = CompactMachines.dotPrefix("damage_oob"); |
11 | 18 | public static GameRules.Key<GameRules.BooleanValue> DAMAGE_OOB_PLAYERS; |
12 | 19 |
|
13 | 20 | /** |
14 | 21 | * For hardcore-style packs. If a shrinking item is successfully used to LEAVE a room, |
15 | 22 | * it will also be damaged. Off by default. |
16 | 23 | */ |
| 24 | + public static final String DAMAGE_PSD_ITEMS_ON_ROOM_EXIT_KEY = CompactMachines.dotPrefix("damage_psd_on_exit"); |
17 | 25 | public static GameRules.Key<GameRules.BooleanValue> DAMAGE_PSD_ITEMS_ON_ROOM_EXIT; |
18 | 26 |
|
19 | 27 | public static void register() { |
20 | | - ALLOW_SURVIVAL_OUT_OF_BOUNDS = GameRules.register(CompactMachines.dotPrefix("allow_survival_oob"), GameRules.Category.PLAYER, GameRules.BooleanValue.create(false)); |
21 | | - ALLOW_CREATIVE_OUT_OF_BOUNDS = GameRules.register(CompactMachines.dotPrefix("allow_creative_oob"), GameRules.Category.PLAYER, GameRules.BooleanValue.create(true)); |
22 | | - ALLOW_SPECTATORS_OUT_OF_BOUNDS = GameRules.register(CompactMachines.dotPrefix("allow_spectator_oob"), GameRules.Category.PLAYER, GameRules.BooleanValue.create(true)); |
23 | | - DAMAGE_OOB_PLAYERS = GameRules.register(CompactMachines.dotPrefix("damage_oob"), GameRules.Category.PLAYER, GameRules.BooleanValue.create(true)); |
| 28 | + ALLOW_SURVIVAL_OUT_OF_BOUNDS = GameRules.register(ALLOW_SURVIVAL_OUT_OF_BOUNDS_KEY, GameRules.Category.PLAYER, GameRules.BooleanValue.create(false)); |
| 29 | + ALLOW_CREATIVE_OUT_OF_BOUNDS = GameRules.register(ALLOW_CREATIVE_OUT_OF_BOUNDS_KEY, GameRules.Category.PLAYER, GameRules.BooleanValue.create(true)); |
| 30 | + ALLOW_SPECTATORS_OUT_OF_BOUNDS = GameRules.register(ALLOW_SPECTATORS_OUT_OF_BOUNDS_KEY, GameRules.Category.PLAYER, GameRules.BooleanValue.create(true)); |
| 31 | + DAMAGE_OOB_PLAYERS = GameRules.register(DAMAGE_OOB_PLAYERS_KEY, GameRules.Category.PLAYER, GameRules.BooleanValue.create(true)); |
24 | 32 |
|
25 | | - DAMAGE_PSD_ITEMS_ON_ROOM_EXIT = GameRules.register(CompactMachines.dotPrefix("damage_psd_on_exit"), GameRules.Category.PLAYER, GameRules.BooleanValue.create(false)); |
| 33 | + DAMAGE_PSD_ITEMS_ON_ROOM_EXIT = GameRules.register(DAMAGE_PSD_ITEMS_ON_ROOM_EXIT_KEY, GameRules.Category.PLAYER, GameRules.BooleanValue.create(false)); |
26 | 34 | } |
27 | 35 | } |
0 commit comments