How To Set Skin For Zombie Pigman,That We Spawn With Custom Item?
I try this,in my mod:
function useItem(x,y,z,itemId,blockId,side)
{
if(itemId==500)
{
var setan = Level.spawnMob(x, y+1, z, 36, "mob/skin.png");
}
}
And doesnt work..
Please Help Me.. _/\_
function useItem (x,y,z,itemId,blockId,side)
{
if(itemId==500)
{
var setan = Level.spawnMob(x,y+1,z,36,"mob/skin.png");
Entity.setRenderType(setan,3);
Entity.setHealth(setan,5);
clientMessage("You have now spawned Your own mob");
}
But,More Detailed:
How To Set Skin For Zombie Pigman,That We Spawn With Custom Item?
I try this,in my mod:
function useItem(x,y,z,itemId,blockId,side)
{
if(itemId==500)
{
var setan = Level.spawnMob(x, y+1, z, 36, "mob/skin.png");
}
}
And doesnt work..
Please Help Me.. _/\_
function useItem (x,y,z,itemId,blockId,side)
{
if(itemId==500)
{
var setan = Level.spawnMob(x,y+1,z,36,"mob/skin.png");
Entity.setRenderType(setan,3);
Entity.setHealth(setan,5);
clientMessage("You have now spawned Your own mob");
}
This should work
Yuugen0127
|MCPE Modder, Mapmaker, Mediocre Skinmaker, Update Maniac, Problem-Solver, and Texture-Pack Beginner|
Biggest Update thread for MCPE 0.12.x :
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-recent-upcoming-pe-updates/2436094-minecraft-pe-the-upcoming-0-12-0-minecraft-peits
Biggest Update thread for MCPE 0.13.0 :
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-recent-upcoming-pe-updates/2504717-topic-updated-minecraft-pe-the-upcoming-0-13-0
Contact: @GenBrianSuzuki (Twitter), email address on request.