From c2a179bc7f80a402d033fb3cbb1da3a75212c21f Mon Sep 17 00:00:00 2001 From: doctor4t <25477005+doctor4t@users.noreply.github.com> Date: Sat, 26 Dec 2020 22:18:03 +0100 Subject: [PATCH] Make weaponized snow golems drop experience --- .../snowmercy/common/entity/WeaponizedSnowGolemEntity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/ladysnake/snowmercy/common/entity/WeaponizedSnowGolemEntity.java b/src/main/java/ladysnake/snowmercy/common/entity/WeaponizedSnowGolemEntity.java index 092a536..f027554 100644 --- a/src/main/java/ladysnake/snowmercy/common/entity/WeaponizedSnowGolemEntity.java +++ b/src/main/java/ladysnake/snowmercy/common/entity/WeaponizedSnowGolemEntity.java @@ -226,4 +226,9 @@ public void writeCustomDataToTag(CompoundTag tag) { tag.putInt("Head", this.getHead()); } + + @Override + protected int getCurrentExperience(PlayerEntity player) { + return 1 + this.world.random.nextInt(3); + } }