It was found that in combat against mobs and/or players that tools and armor would suddenly have a durability. This fix changes the durability of all items this mod provides, now instead of setting durability to 0 it is set to 65535 the maximum durability any single item can obtain. This does mean that supposed unbreaking tools/armor can wear out and break... it's just in 65535 uses. (Thus it will appear unbreakable)
18 lines
685 B
Lua
18 lines
685 B
Lua
-- Settings
|
|
-- Mostly if particular groups of tools are "unbreakable"
|
|
unbreaking_pick = true
|
|
unbreaking_axe = true
|
|
unbreaking_shovel = true
|
|
unbreaking_sword = false -- Disabled to prevent PVP from being ruthless
|
|
unbreaking_hoe = true
|
|
unbreaking_shears = true -- Only used if MineClone2 is installed
|
|
unbreaking_armors = true -- Only used if 3d_armor or MineClone2 is installed
|
|
unbreaking_uses = 65535 -- In this case we actually will be be more of a pseudo unbreaking
|
|
|
|
-- Execute
|
|
dofile(minetest.get_modpath("unbreaking") .. "/tools.lua")
|
|
if unbreaking_armors then
|
|
dofile(minetest.get_modpath("unbreaking") .. "/armor.lua")
|
|
end
|
|
|
|
minetest.log("action", "[unbreaking] Load complete!") |