This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
So I Am Working On A Mod That Has Tools And Armor so I Have One Question How Do I Set The Durablitlity To My Weapon Here Is The Code To The Weapon
function attackHook(attacker,victim){
if(Player.getCarriedItem() == 504){
var dmg = 6;
Entity.setHealth(victim,Entity.getHealth(victim) -dmg);
}
Any Help Is Great And Thx For Reading
So I Am Working On A Mod That Has Tools And Armor so I Have One Question How Do I Set The Durablitlity To My Weapon Here Is The Code To The Weapon
function attackHook(attacker,victim){
if(Player.getCarriedItem() == 504){
var dmg = 6;
Entity.setHealth(victim,Entity.getHealth(victim) -dmg);
}
}
Any Help Is Great And Thx For Reading