From 9d07e8ad1b1e990d4794b90ecc73913a1407b613 Mon Sep 17 00:00:00 2001 From: itsmeow Date: Sun, 4 Apr 2021 07:32:13 -0400 Subject: [PATCH] Fix hidebehind not spawning naturally (delete configs/change weight to 8! Fixes #12) --- src/main/java/dev/itsmeow/whisperwoods/init/ModEntities.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/dev/itsmeow/whisperwoods/init/ModEntities.java b/src/main/java/dev/itsmeow/whisperwoods/init/ModEntities.java index 53c5aae..086ef2a 100644 --- a/src/main/java/dev/itsmeow/whisperwoods/init/ModEntities.java +++ b/src/main/java/dev/itsmeow/whisperwoods/init/ModEntities.java @@ -64,8 +64,8 @@ public void customConfigurationLoad() { .containers(ItemModEntityContainer.get("bottled_%s", WhisperwoodsMod.TAB), c -> Items.GLASS_BOTTLE, EntityMoth::bottleTooltip)); public static final EntityTypeContainer HIDEBEHIND = H.add(entity(EntityHidebehind.class, EntityHidebehind::new, "hidebehind", () -> MobEntity.func_233666_p_().createMutableAttribute(Attributes.MAX_HEALTH, 20D).createMutableAttribute(Attributes.ATTACK_DAMAGE).createMutableAttribute(Attributes.ATTACK_DAMAGE, 15D)) - .spawn(EntityClassification.CREATURE, 5, 1, 1) - .defaultPlacement((t, w, e, p, r) -> w.getDifficulty() != Difficulty.PEACEFUL && MonsterEntity.isValidLightLevel(w, p, r) && MobEntity.canSpawnOn(t, w, e, p, r)) + .spawn(EntityClassification.MONSTER, 8, 1, 1) + .defaultPlacement((t, w, e, p, r) -> w.getDifficulty() != Difficulty.PEACEFUL && MobEntity.canSpawnOn(t, w, e, p, r)) .egg(0x473123, 0xfff494) .size(1F, 5.2F) .variants(