diff --git a/gradle.properties b/gradle.properties index 36b052c..3b58f05 100644 --- a/gradle.properties +++ b/gradle.properties @@ -34,7 +34,7 @@ mod_name=Chrome Ball # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=BSD-3-Clause # The mod version. See https://semver.org/ -mod_version=0.7.0 +mod_version=0.8.0 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/org/teacon/chromeball/common/entity/ChromeLivingEntity.java b/src/main/java/org/teacon/chromeball/common/entity/ChromeLivingEntity.java index 3b2c90a..113031d 100644 --- a/src/main/java/org/teacon/chromeball/common/entity/ChromeLivingEntity.java +++ b/src/main/java/org/teacon/chromeball/common/entity/ChromeLivingEntity.java @@ -20,6 +20,7 @@ public class ChromeLivingEntity extends LivingEntity { public ChromeLivingEntity(EntityType entityType, Level level) { super(entityType, level); + setInvulnerable(true); } @Override @@ -62,6 +63,7 @@ public Component getDisplayName() { @Override public @NotNull InteractionResult interact(@NotNull Player player, @NotNull InteractionHand hand) { if (getClientClicked() == 0) { + // Click cooldown for protecting 4z's head. clientClicked = 20; if (!level().isClientSide()) { player.awardStat(ChromeBallRegistry.MERIT_STAT.get());