Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void spawnEntity(World w, Location loc){
- Skeleton as = (Skeleton) w.spawnEntity(loc, EntityType.SKELETON);
- as.setCustomName("§dSquellette");
- as.setSkeletonType(Skeleton.SkeletonType.WITHER);
- Entity nmsEntity = ((CraftEntity) as).getHandle();
- NBTTagCompound tag = nmsEntity.getNBTTag();
- if (tag == null)
- tag = new NBTTagCompound();
- }
- nmsEntity.c(tag);
- tag.setInt("IADisable", 1);
- nmsEntity.f(tag)
- }
Advertisement
Add Comment
Please, Sign In to add comment