Skip to content

Commit

Permalink
misc: creaking
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Nov 13, 2024
1 parent 8e97587 commit 0aaf896
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ private void tryAddModifier(DisguiseState state)

var craftLiving = (net.minecraft.world.entity.LivingEntity) ((CraftLivingEntity)living).getHandleRaw();
var mobMaxHealth = craftLiving.craftAttributes.getAttribute(Attribute.MAX_HEALTH).getBaseValue();

// patch: CREAKING only have half heart, and we don't want that.
if (state.getEntityType() == EntityType.CREAKING || state.getEntityType() == EntityType.CREAKING_TRANSIENT)
mobMaxHealth = 20;

var playerAttribute = player.getAttribute(Attribute.MAX_HEALTH);

if (mobMaxHealth <= 0d)
Expand Down

0 comments on commit 0aaf896

Please sign in to comment.