mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Only spawn specters in dark areas
This commit is contained in:
parent
b4126b839b
commit
a42aaeefc0
1 changed files with 2 additions and 2 deletions
|
@ -86,13 +86,13 @@ public interface UEntities {
|
||||||
.trackRangeChunks(8)
|
.trackRangeChunks(8)
|
||||||
.dimensions(EntityDimensions.fixed(3, 2)));
|
.dimensions(EntityDimensions.fixed(3, 2)));
|
||||||
EntityType<SpecterEntity> SPECTER = register("specter", FabricEntityTypeBuilder.createMob().spawnGroup(SpawnGroup.MONSTER).entityFactory(SpecterEntity::new)
|
EntityType<SpecterEntity> SPECTER = register("specter", FabricEntityTypeBuilder.createMob().spawnGroup(SpawnGroup.MONSTER).entityFactory(SpecterEntity::new)
|
||||||
.spawnRestriction(Location.ON_GROUND, Type.MOTION_BLOCKING_NO_LEAVES, HostileEntity::canSpawnIgnoreLightLevel)
|
.spawnRestriction(Location.ON_GROUND, Type.MOTION_BLOCKING_NO_LEAVES, HostileEntity::canSpawnInDark)
|
||||||
.fireImmune()
|
.fireImmune()
|
||||||
.spawnableFarFromPlayer()
|
.spawnableFarFromPlayer()
|
||||||
.dimensions(EntityDimensions.fixed(1, 2)));
|
.dimensions(EntityDimensions.fixed(1, 2)));
|
||||||
EntityType<MimicEntity> MIMIC = register("mimic", FabricEntityTypeBuilder.create(SpawnGroup.MONSTER, MimicEntity::new)
|
EntityType<MimicEntity> MIMIC = register("mimic", FabricEntityTypeBuilder.create(SpawnGroup.MONSTER, MimicEntity::new)
|
||||||
.fireImmune()
|
.fireImmune()
|
||||||
//.disableSummon()
|
.disableSummon()
|
||||||
.dimensions(EntityDimensions.changing(0.875F, 0.875F)));
|
.dimensions(EntityDimensions.changing(0.875F, 0.875F)));
|
||||||
|
|
||||||
static <T extends Entity> EntityType<T> register(String name, FabricEntityTypeBuilder<T> builder) {
|
static <T extends Entity> EntityType<T> register(String name, FabricEntityTypeBuilder<T> builder) {
|
||||||
|
|
Loading…
Reference in a new issue