Add gearboxes and improve the operation of shafts.

This commit is contained in:
Signal 2026-05-12 23:19:59 -04:00
parent 9011835cf4
commit 613b92f541
5 changed files with 125 additions and 96 deletions

View file

@ -426,6 +426,15 @@ Player = {
p:hud_set_hotbar_image("[combine:"..(21 *slots +1).."x22"..list)
p:hud_set_hotbar_selected_image("rgt_hotbar_selected.png")
end,
try_rightclick = function(m, s, p, pt)
if m.pointed_node and m.pointed_node.node_under then
local rc = minetest.registered_nodes[m.pointed_node.node_under.name].on_rightclick
if rc then
rc(m.pointed_node.under, m.pointed_node.node_under, p, s, pt)
return true
end
end
end,
deinit = function(m)
m:dispatch("deinit")
m.health_display:remove()