ModPE.setItem(404, 6, 12, "Taser");
ModPE.setFoodItem(187, 8, 12, 5, "Grub");
function useItem(x,y,z,itemId,blockId) //the hook we will use
{
if (itemId==405)//if item we use is a neather brick
{
var bb = Level.spawnMob (x, y, z, 36, "mob/bb.png");//spawns a zombie with its id being bb, and skin being boba fett.
Entity.setHealth(bb, 1955); //set boba fetts health that was spawned to 400 half hearts.
Entity.setCarriedItem (bb, 276, 1, 0);
clientMessage("<Boba_Fett> Scum Bag!"); //Bobas Message to player
}
else if(itemId==280)//If our item is a stick
{
var jg = Level.spawnMob (x, y, z, 36, "mob/jg.png");//spawns a zombie with its id being jg and skin being boba fett.
Entity.setHealth(jg, 2055); //set boba fetts health that was spawned to 400 half hearts.
Entity.setCarriedItem (jg, 276, 1, 0);
clientMessage("<Jango_Fett> My Son You !!!"); //Message to player
}
else if(itemId==406)//if our item is a quartz
{
addItemInventory(404,1);//Add 1 cusroms to your inventory.
}
else if (itemId==344)//if item is an egg
{
addItemInventory(187,1);//Add 1 cusroms to your inventory.
}
}
Please don't litter this topic with these mods.
Do I get my cookie?
ModPE!?
function useItem(x,y,z,itemId,blockId,side) { if(itemId==280)//if item is a damn stick { var cow = Level.spawnMob (x, y, z, 11, "mob/creeper.png");//lolz Entity.setHealth(cow, 1955); //lolz Entity.setCarriedItem (cow, 276, 1, 0); clientMessage("<Cow_ Creeper> Moooo?"); //lolz } }XDXDXDXD
ModPE!?
ModPE.setItem(404, 6, 12, "Taser"); ModPE.setFoodItem(187, 8, 12, 5, "Grub"); function useItem(x,y,z,itemId,blockId) //the hook we will use { if (itemId==405)//if item we use is a neather brick { var bb = Level.spawnMob (x, y, z, 36, "mob/bb.png");//spawns a zombie with its id being bb, and skin being boba fett. Entity.setHealth(bb, 1955); //set boba fetts health that was spawned to 400 half hearts. Entity.setCarriedItem (bb, 276, 1, 0); clientMessage("<Boba_Fett> Scum Bag!"); //Bobas Message to player } else if(itemId==280)//If our item is a stick { var jg = Level.spawnMob (x, y, z, 36, "mob/jg.png");//spawns a zombie with its id being jg and skin being boba fett. Entity.setHealth(jg, 2055); //set boba fetts health that was spawned to 400 half hearts. Entity.setCarriedItem (jg, 276, 1, 0); clientMessage("<Jango_Fett> My Son You !!!"); //Message to player } else if(itemId==406)//if our item is a quartz { addItemInventory(404,1);//Add 1 cusroms to your inventory. } else if (itemId==344)//if item is an egg { addItemInventory(187,1);//Add 1 cusroms to your inventory. } }ModPE!?
here is the download
It came up saying that there was a syntax error. can you fix your mod first please?
Also, TWO THIRDS OF THE WAY TO HOT!
Still doesn't work. :/
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]