From 54ca207e940ffe9086ccaa7fe6fae240886a8178 Mon Sep 17 00:00:00 2001 From: muhta Date: Mon, 11 Dec 2023 18:48:40 -0600 Subject: [PATCH] snapper has increased health when tamed --- .../deeperdarker/content/entities/SculkSnapper.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/com/kyanite/deeperdarker/content/entities/SculkSnapper.java b/src/main/java/com/kyanite/deeperdarker/content/entities/SculkSnapper.java index 17d1e11d4..eed814083 100644 --- a/src/main/java/com/kyanite/deeperdarker/content/entities/SculkSnapper.java +++ b/src/main/java/com/kyanite/deeperdarker/content/entities/SculkSnapper.java @@ -132,6 +132,16 @@ public boolean isFood(ItemStack pStack) { return pStack.is(Items.NETHERITE_CHESTPLATE) && !pStack.getEnchantmentTags().isEmpty(); } + @Override + public void setTame(boolean pTamed) { + super.setTame(pTamed); + System.out.println(pTamed); + if(pTamed) { + this.getAttribute(Attributes.MAX_HEALTH).setBaseValue(16); + this.setHealth(16f); + } + } + @Override public InteractionResult mobInteract(Player pPlayer, InteractionHand pHand) { ItemStack stack = pPlayer.getItemInHand(pHand);