This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
1
Item.setMaxDamage("your Item's ID", "your Item's Health/Durability");
function attackHook(a, v){ if(getCarriedItem()=="your Item's ID"){
if(Player.getCarriedItemData()<"your Item's Health/Durability"){ Entity.setCarriedItem(Player.getEntity(), "your Item's ID", Player.getCarriedItemCount(), Player.getCarriedItemData() + 1);
} else{ Level.playSound(x, y, z, "random.break", 100, 100); Player.clearInventorySlot(Player.getSelectedSlotId()); } } }
if it did'nt work, show me the code and tell me the problem of it.
or at least give us the name of the mod and the items.....
tell us whats the name of the weapons and armors..
+ + =
modpe's will always look awesome when you worked hard
and put an effort in it
1
Item.setMaxDamage("your Item's ID", "your Item's Health/Durability");
function attackHook(a, v){ if(getCarriedItem()=="your Item's ID"){
if(Player.getCarriedItemData()<"your Item's Health/Durability"){ Entity.setCarriedItem(Player.getEntity(), "your Item's ID", Player.getCarriedItemCount(), Player.getCarriedItemData() + 1);
} else{ Level.playSound(x, y, z, "random.break", 100, 100); Player.clearInventorySlot(Player.getSelectedSlotId()); } } }
if it did'nt work, show me the code and tell me the problem of it.
1
or at least give us the name of the mod and the items.....
tell us whats the name of the weapons and armors..
+ + =
1
modpe's will always look awesome when you worked hard
and put an effort in it