forked from VoxeLibre/VoxeLibre
master #5
|
@ -107,3 +107,8 @@ tt.register_snippet(function(itemstring)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
tt.register_snippet(function(itemstring, _, itemstack)
|
||||||
|
if itemstring:sub(1, 23) == "mcl_fishing:fishing_rod" or itemstring:sub(1, 12) == "mcl_bows:bow" then
|
||||||
|
return S("Durability: @1 uses", mcl_util.calculate_durability(itemstack or ItemStack(itemstring)))
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
Loading…
Reference in New Issue