Skip to content

Commit

Permalink
Make hidebehind spawning make more sense (only at night, less common,…
Browse files Browse the repository at this point in the history
… don't despawn). Delete configs pls btw.
  • Loading branch information
itsmeow committed Oct 5, 2020
1 parent b037935 commit 359ef9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/dev/itsmeow/whisperwoods/init/ModEntities.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import net.minecraft.entity.MobEntity;
import net.minecraft.entity.ai.attributes.AttributeModifierMap;
import net.minecraft.entity.ai.attributes.Attributes;
import net.minecraft.entity.monster.MonsterEntity;
import net.minecraft.world.Difficulty;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeConfigSpec;

Expand Down Expand Up @@ -56,10 +58,10 @@ public void customConfigurationLoad() {
.biomes(Type.FOREST, Type.SWAMP));

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.MONSTER, 5, 1, 1)
.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))
.egg(0x473123, 0xfff494)
.size(1F, 5.2F)
.despawn()
.variants(
new HidebehindVariant("black"),
new HidebehindVariant("coniferous"),
Expand Down

0 comments on commit 359ef9e

Please sign in to comment.