- Баллы
- 66
- Имя в Minecraft
- just_l0fe
Хочется сделать анимацию возрождения дракона, но при спавне кристаллов..
.. ничего не происходит
Что делать? Как заставить спавнится дракона?
Код:
World end = Bukkit.getWorld("world_the_end");
List<Location> locs = Lists.newArrayList(
new Location(end, 3.5, 61, 0.5),
new Location(end, 0.5, 61, 3.5),
new Location(end, -2.5, 61, 0.5),
new Location(end, 0.5, 61, -2.5)
);
List<EnderCrystal> crystals = new ArrayList<>();
for(Location loc : locs) {
EnderCrystal crystal = (EnderCrystal) end.spawnEntity(loc, EntityType.ENDER_CRYSTAL);
crystal.getPersistentDataContainer().set(TheFin.unbreakable, PersistentDataType.BOOLEAN, true);
crystals.add(crystal);
}
Что делать? Как заставить спавнится дракона?