add piston push limit

This commit is contained in:
2023-01-07 13:58:20 +01:00
parent 04eae83ec5
commit 6e40ca6564
6 changed files with 47 additions and 9 deletions
@@ -11,8 +11,8 @@ public class ExtraGameRule {
public static GameRules.Key<GameRules.IntRule> ELYTRA_DAMAGE_PER_SECOND;
public static GameRules.Key<GameRules.IntRule> ELYTRA_DAMAGE_FROM_FIREWORK_BOOST;
public static GameRules.Key<GameRules.IntRule> ELYTRA_DAMAGE_FROM_RIPTIDE_BOOST;
public static GameRules.Key<GameRules.BooleanRule> PLAYER_CRITS;
public static GameRules.Key<GameRules.IntRule> PISTON_PUSH_LIMIT;
protected static void init() {
MAGMA_BLOCK_DAMAGE = GameRuleRegistry.register(
@@ -45,6 +45,11 @@ public class ExtraGameRule {
GameRules.Category.PLAYER,
GameRuleFactory.createBooleanRule(true)
);
PISTON_PUSH_LIMIT = GameRuleRegistry.register(
"pistonPushLimit",
GameRules.Category.MISC,
GameRuleFactory.createIntRule(12, 0, 512)
);
}
}