Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Spawn villagers
- for (final Location villagerLocation : getSettings().getVillagers()) {
- final Villager villager = villagerLocation.getWorld().spawn(villagerLocation.clone().add(0.5, 1, 0.5), Villager.class);
- CompProperty.INVULNERABLE.apply(villager, true);
- CompProperty.AI.apply(villager, false);
- (villager).setProfession(Villager.Profession.ARMORER);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement