Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //copiado da net
- public void freezeEntity(Entity en) {
- net.minecraft.server.v1_8_R1.Entity nmsEn = ((CraftEntity) en).getHandle();
- NBTTagCompound compound = new NBTTagCompound();
- nmsEn.c(compound);
- compound.setByte("NoAI", (byte) 1);
- nmsEn.f(compound);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement