1.7.10 Files

Files added
This commit is contained in:
KAMKEEL committed 2018-09-13 12:03:28 -04:00
1 parent 393ea9b463
commit a31efb2dc3
1768 files changed
+84831

No files matched your search

@@ -0,0 +1,43 @@
package noppes.npcs.entity;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import noppes.npcs.ModelData;
public class EntityNpcSlime extends EntityNPCInterface{
public EntityNpcSlime(World world)
{
super(world);
scaleX = 2f;
scaleY = 2f;
scaleZ = 2f;
display.texture = "customnpcs:textures/entity/slime/Slime.png";
width = 0.8f;
height = 0.8f;
}
@Override
public void updateHitbox() {
width = 0.8f;
height = 0.8f;
}
@Override
public void onUpdate()
{
isDead = true;
if(!worldObj.isRemote){
NBTTagCompound compound = new NBTTagCompound();
writeToNBT(compound);
EntityCustomNpc npc = new EntityCustomNpc(worldObj);
npc.readFromNBT(compound);
ModelData data = npc.modelData;
data.setEntityClass(EntityNpcSlime.class);
worldObj.spawnEntityInWorld(npc);
}
super.onUpdate();
}
}