Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ArmorStand a = (ArmorStand) spawnEntity(p.getLocation().add(X: .5, y: 1.5, z: .5), EntityType.ARMOR_STAND);
- Bat b = (Bat) p.getWorld().spawnEntity(p.getLocation().add(0.5, 2, 0.5), EntityType.BAT);
- a.setVisbleoderso(false);
- a.setGrivsleoderso(false);
- b.setLeashHolder(p);
- a.setMetadata("ballon-" + p.getName(), new FixedMetadataValue(Main.plugin, true));
- b.setMetadata("ballon2-" + p.getName(), new FixedMetadataValue(Main.plugin, true));
- elist.add(b);
- elist.add(a);
- Object nmse = NBTLibary.getNmsEntity(b);
- b.setRemoveWhenFarAway(false);
- NBTLibary.setSlotsDisabled(b, true);
- Object tag = NBTLibary.getTag(nmse);
- NBTLibary.setBoolean(tag, "NoAI", true);
- NBTLibary.saveTagF(nmse, tag);
- ballons.add(p);
- p.closeInventory();
- p.updateInventory();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement