This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
INSTRUCTIONS Skins for monsters in this mod and give me the ID of zombie pigmen
Yes I am Noob and sorry my English
function useItem(x, y, z, itemId, block) { if(itemId == 461) { mob = Level.spawnMob(x, y+1, z, 15, 'mob/1.png') Entity.setHealth(mob, 50); Entity.setNameTag(mob, 'demon'); Entity.setRenderType(mob, 3); } } ModPE.setItem(461, 'spawn_egg',6, 'Spawn demon', 64); Item.addShapedRecipe(461, 1, 0, ['aoa', 'bbb', 'oco'], ['a', 280, 0, 'b', 4, 0, 'c', 260, 0]);
Semi-colons arent gonna mess it up and yes you did not define the mob and change the ' to ".
Shouldn't you set the item first before the useItem Function because doesn't Javascript read code from top to bottom.
INSTRUCTIONS Skins for monsters in this mod
and give me the ID of zombie pigmen
Yes I am Noob and sorry my English
function useItem(x, y, z, itemId, block)
{
if(itemId == 461)
{
mob = Level.spawnMob(x, y+1, z, 15, 'mob/1.png')
Entity.setHealth(mob, 50);
Entity.setNameTag(mob, 'demon');
Entity.setRenderType(mob, 3);
}
}
ModPE.setItem(461, 'spawn_egg',6, 'Spawn demon', 64);
Item.addShapedRecipe(461, 1, 0, ['aoa', 'bbb', 'oco'], ['a', 280, 0, 'b', 4, 0, 'c', 260, 0]);
Semi-colons arent gonna mess it up
and yes you did not define the mob and change the ' to ".
Shouldn't you set the item first before the useItem Function because doesn't Javascript read code from top to bottom.