Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Stray entity;
- public Pumpking(Location loc) {
- super(EntityTypes.STRAY, ((CraftWorld)loc.getWorld()).getHandle());
- this.setPosition(loc.getX(), loc.getY(), loc.getZ());
- entity = (Stray) this.getBukkitEntity();
- entity.setCustomNameVisible(true);
- entity.setCustomName("§4§lPumpKing");
- ((LivingEntity) entity).setMaxHealth(100);
- ((LivingEntity) entity).setHealth(100);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement