master
Emojigit 2021-04-24 17:09:39 +08:00
parent 13ea31ce12
commit fc1f4d478e
No known key found for this signature in database
GPG Key ID: 2443E5F619026B90
1 changed files with 4 additions and 5 deletions

View File

@ -35,7 +35,7 @@ function enchanting:get_tooltip(enchant, orig_caps, fleshy)
end
local specs = { -- not finished, to complete
durable = {"#00baff", " (+"..bonus.durable.."%)"},
durable = {"#00baff", " (+"..bonus.durable.."%)"},
fast = {"#74ff49", " (+"..bonus.efficiency.."%)"},
sharp = {"#ffff00", " (+"..bonus.damages.."%)"},
strong = {"#ff3d3d", ""},
@ -133,7 +133,7 @@ function enchanting.put(_, listname, _, stack)
if listname == "mese" and item == "mese_crystal" then
return stack:get_count()
elseif listname == "tool" and allowed(item) then
return 1
return 1
end
return 0
end
@ -222,7 +222,7 @@ minetest.register_entity(":xdecor:book_open", {
physical = false,
textures = {"book_open.png"},
on_activate = function(self)
local pos = self.object:getpos()
local pos = self.object:get_pos()
local pos_under = {x=pos.x, y=pos.y-1, z=pos.z}
if minetest.get_node(pos_under).name ~= "xdecor:enchantment_table" then
@ -313,7 +313,7 @@ enchanting:register_tools("default", {
materials = "steel, bronze, mese, diamond",
tools = {
axe = {enchants = "durable, fast"},
pick = {enchants = "durable, fast"},
pick = {enchants = "durable, fast"},
shovel = {enchants = "durable, fast"},
sword = {enchants = "sharp"}
}
@ -328,4 +328,3 @@ enchanting:register_tools("3d_armor", {
leggings = {enchants = "strong"}
}
})