This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
And when you tapple cobble stone it gives you a iron block.
But for some reason the cobble stone part of the code won't work here take a look:
var money=0;
function attackHook(attacker, victim)
{
if(getCarriedItem()==272)
{
money=money+10;
clientMessage("+10 PTS");
}
}
function useItem(x,y,z,itemId,blockId,side)
{
if(blockId==57)
{
if(money=10||money>10)
{
money=money-10
addItemInventory(268, 1)
clientMessage("You Got wooden sword")
}
else if(blockId==4)//this part isnt working
{
money=money-10
addItemInventory(267, 1)
clientMessage("You Got Iron sword")
}
}
}
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]
Also any of you guys wanna beta test a mod its almost done.