Please help me on making
My costum mob and how can i
Put a skin on it?
I try many times but it didnt work
All just spawn is a pigman with a
Costume health and nametag
function useItem (x, y, z,itemId, blockId, side)//useItem Code goes here
{ if(itemId == 280)//you can change the id
{ var custom = Level.spawnMob(x,y+1,z,11,"mob/char.png"); //spawn a cow but steve skin (char.png)
Entity.setRenderType(custom,3); //change the rendertype to a player
clientMessage("<steve> hi"); //:) message appears
}
}
This works!
Put your custom skin on char.png example(zombie.png)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
My costum mob and how can i
Put a skin on it?
I try many times but it didnt work
All just spawn is a pigman with a
Costume health and nametag
{
if(itemId == 280)//you can change the id
{
var custom = Level.spawnMob(x,y+1,z,11,"mob/char.png"); //spawn a cow but steve skin (char.png)
Entity.setRenderType(custom,3); //change the rendertype to a player
clientMessage("<steve> hi"); //:) message appears
}
}
This works!
Put your custom skin on char.png example(zombie.png)