fix: negative ticks might not be a good idea
This commit is contained in:
@@ -7,9 +7,9 @@ import net.minecraft.world.GameRules;
|
|||||||
|
|
||||||
public class Tweaks implements ModInitializer {
|
public class Tweaks implements ModInitializer {
|
||||||
public static final GameRules.Key<GameRules.IntRule> ENTITY_PORTAL_COOLDOWN =
|
public static final GameRules.Key<GameRules.IntRule> ENTITY_PORTAL_COOLDOWN =
|
||||||
GameRuleRegistry.register("entityPortalCooldown", GameRules.Category.MOBS, GameRuleFactory.createIntRule(300));
|
GameRuleRegistry.register("entityPortalCooldown", GameRules.Category.MOBS, GameRuleFactory.createIntRule(300, 0, Integer.MAX_VALUE));
|
||||||
public static final GameRules.Key<GameRules.IntRule> ENDER_PEARL_DAMAGE =
|
public static final GameRules.Key<GameRules.IntRule> ENDER_PEARL_DAMAGE =
|
||||||
GameRuleRegistry.register("enderPearlDamage", GameRules.Category.PLAYER, GameRuleFactory.createIntRule(5));
|
GameRuleRegistry.register("enderPearlDamage", GameRules.Category.PLAYER, GameRuleFactory.createIntRule(5, 0, Integer.MAX_VALUE));
|
||||||
@Override
|
@Override
|
||||||
public void onInitialize() {
|
public void onInitialize() {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user