Add entityCount in jigsaw, add chance in object replace

This commit is contained in:
CocoTheOwner
2021-03-10 13:04:34 +01:00
parent b97ff6fe14
commit 57b089ac89
5 changed files with 22 additions and 12 deletions

View File

@@ -135,7 +135,9 @@ public class PlannedStructure {
if (j.getSpawnEntity().equals("villager")){
Iris.msg("Spawning villager on jigsaw @" + p.getX() + "/" + p.getY() + "/" + p.getZ());
}
e.getParallaxAccess().setEntity(p.getX(), p.getY(), p.getZ(), j.getSpawnEntity());
for (int k = 0; k < j.getEntityCount(); k++) {
e.getParallaxAccess().setEntity(p.getX(), p.getY(), p.getZ(), j.getSpawnEntity());
}
}
}