Skip to content

Commit

Permalink
Fix hidebehind not spawning naturally (delete configs/change weight t…
Browse files Browse the repository at this point in the history
…o 8! Fixes #12)
  • Loading branch information
itsmeow committed Apr 4, 2021
1 parent daaeb97 commit 9d07e8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/dev/itsmeow/whisperwoods/init/ModEntities.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public void customConfigurationLoad() {
.containers(ItemModEntityContainer.get("bottled_%s", WhisperwoodsMod.TAB), c -> Items.GLASS_BOTTLE, EntityMoth::bottleTooltip));

public static final EntityTypeContainer<EntityHidebehind> 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(
Expand Down

0 comments on commit 9d07e8a

Please sign in to comment.