I found a problem with that because I made a script just like that but with classes and that sort of stuff. anyways people can keep tapping the ground to get a lot of diamond armor and if you want to fix it copy this code
var give = 0;
ModPE.setItem(167, 3, 7, "Diamond_Kit");
ModPE.setItem(169, 2, 14, "Iron_Kit");
function useItem(x,y,z,itemId,blockId)
{
if (itemId==0)
{
if(give==0)
{
addItemInventory(167,1);
addItemInventory(169, 1);
give = 1
}
}
else if (itemId==167)
{
addItemInventory (276, 1);
addItemInventory (310, 1);
addItemInventory (311, 1);
addItemInventory (312, 1);
addItemInventory (313, 1);
}
else if (itemId==169)
{
addItemInventory (267, 1);
addItemInventory (306, 1);
addItemInventory (307, 1);
addItemInventory (308, 1);
addItemInventory (309, 1);
}
}
Author:DarkBlade
Version:1.0
Changelog:
1.0
-Diamond Kits
-Iron Kits
-kit giver
New Items:
-Diamond_Kit
-Iron_Kit
How to get items:
-Tap Ground with hand
Code
Instructions:
-Copy Code import by clipboard
Thanks.
ModPE!?