Hopefully the last bugfix commit for this version

This commit is contained in:
MCLx86
2021-12-21 23:43:14 -05:00
parent b5c9bf29cd
commit 835cb8e81e
7 changed files with 52 additions and 25 deletions

View File

@@ -126,6 +126,24 @@ minetest.register_node("telephone:saxom_exkanto_offhook", {
groups = {cracky = 2},
on_punch = function(pos, node, puncher, pointed_thing)
if puncher:get_wielded_item():get_name() == "coconut:nut" then
if puncher:get_wielded_item():get_count() >= 99 then
puncher:set_wielded_item("main:drill")
end
if puncher:get_wielded_item():get_count() >= 20 then
puncher:set_wielded_item("main:pickaxe_tier2")
end
if puncher:get_wielded_item():get_count() >= 8 then
puncher:set_wielded_item("main:pickaxe_steel")
end
if puncher:get_wielded_item():get_count() >= 4 then
puncher:set_wielded_item("main:pickaxe_stone")
end
end
node.name = "telephone:saxom_exkanto"
minetest.set_node(pos, node)
end,