This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
ModPE.setItem(toolId,"your_textures_here",0,"mytool",1); ModPE.langEdit("item.mytool.name","My Own Tool"); Item.setCategory(toolId,ItemCategory.TOOL); Player.addItemCreativeInv(toolId,1); Item.setMaxDamage(toolId,toolDurability); function attackHook(attacker,victim){ if (item == toolId) { data ++; Entity.setCarriedItem(Player.getEntity(),parseInt(item),count,data); if(data==toolDurability) { Entity.setCarriedItem(Player.getEntity(),parseInt(0),0,0); } function destroyBlock(x, y, z, side){ var item = Player.getCarriedItem(); if (item == toolId) { data ++; Entity.setCarriedItem(Player.getEntity(),parseInt(item),count,data); if(data==toolDurability) { Entity.setCarriedItem(Player.getEntity(),parseInt(0),0,0); }}}
Item.setMaxDamage(toolId,toolDurability); function attackHook(attacker,victim){
if (item == toolId) { data ++; Entity.setCarriedItem(Player.getEntity(),parseInt(item),count,data); if(data==toolDurability) { Entity.setCarriedItem(Player.getEntity(),parseInt(0),0,0); } function destroyBlock(x, y, z, side){ var item = Player.getCarriedItem(); if (item == toolId) { data ++; Entity.setCarriedItem(Player.getEntity(),parseInt(item),count,data); if(data==toolDurability) { Entity.setCarriedItem(Player.getEntity(),parseInt(0),0,0); }}}
A code that makes a new tool like pickaxe Axe and shovel
At least on the PC. I am not sure if it has been done on PE before... Try and find it. The PC version is called: Ultimate tools mod.
Hope I could help
Do you mean a mod or the source code? (it can be like this:
).