25w03a
This commit is contained in:
1 parent
c241594eb6
commit
fd098151c4
18 files changed
+100
-39
No files matched your search
@@ -76,7 +76,7 @@ public class BlockInfo
|
||||
{
|
||||
PathfinderMob creature = new ZombifiedPiglin(EntityType.ZOMBIFIED_PIGLIN, worldIn);
|
||||
creature.finalizeSpawn(worldIn, worldIn.getCurrentDifficultyAt(pos), EntitySpawnReason.NATURAL, null);
|
||||
creature.moveTo(pos, 0.0F, 0.0F);
|
||||
creature.snapTo(pos, 0.0F, 0.0F);
|
||||
RandomStrollGoal wander = new RandomStrollGoal(creature, 0.8D);
|
||||
int success = 0;
|
||||
for (int i=0; i<1000; i++)
|
||||
|
||||
@@ -180,7 +180,7 @@ public class PerimeterDiagnostics
|
||||
|
||||
if (SpawnPlacements.isSpawnPositionOk(sle.type(), worldServer, pos))
|
||||
{
|
||||
el.moveTo(pos.getX() + 0.5F, pos.getY(), pos.getZ()+0.5F, 0.0F, 0.0F);
|
||||
el.snapTo(pos.getX() + 0.5F, pos.getY(), pos.getZ()+0.5F, 0.0F, 0.0F);
|
||||
return el.checkSpawnObstruction(worldServer) && el.checkSpawnRules(worldServer, EntitySpawnReason.NATURAL) &&
|
||||
SpawnPlacements.checkSpawnRules(el.getType(),(ServerLevel)el.getCommandSenderWorld(), EntitySpawnReason.NATURAL, el.blockPosition(), el.getCommandSenderWorld().random) &&
|
||||
worldServer.noCollision(el); // check collision rules once they stop fiddling with them after 1.14.1
|
||||
|
||||
@@ -439,7 +439,7 @@ public class SpawnReporter
|
||||
{
|
||||
float f = x + 0.5F;
|
||||
float f1 = z + 0.5F;
|
||||
mob.moveTo(f, y, f1, worldIn.random.nextFloat() * 360.0F, 0.0F);
|
||||
mob.snapTo(f, y, f1, worldIn.random.nextFloat() * 360.0F, 0.0F);
|
||||
fits = worldIn.noCollision(mob);
|
||||
EntityType<?> etype = mob.getType();
|
||||
|
||||
|
||||
Reference in new issue
Block a user