Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package de.Tommunity.Villager;
- import org.bukkit.Location;
- import org.bukkit.entity.EntityType;
- import org.bukkit.entity.Villager;
- import org.bukkit.entity.Witch;
- import org.bukkit.potion.PotionEffect;
- import org.bukkit.potion.PotionEffectType;
- public class Magier {
- public static final String WITCHNAME = "§e§lMagier";
- public Magier(Location location) {
- Witch magier = (Witch) location.getWorld().spawnEntity(location, EntityType.WITCH);
- magier.setCustomName(Magier.WITCHNAME);
- magier.setCustomNameVisible(true);
- magier.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, Integer.MAX_VALUE, 500, false));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement