Add forcefields, and start building the map.

This commit is contained in:
Signal 2025-11-20 03:15:30 -05:00
parent 5fd67703c0
commit b5bc0a34ea
12 changed files with 509 additions and 15 deletions

View file

@ -165,6 +165,22 @@ minetest.register_entity(":artifact:door", {
collisionbox = box
}
end,
on_hover = function(e, m)
if e.type == "wood" and e._locked then
m._whack_hud = m.object:hud_add {
type = "image_waypoint",
world_pos = e.object:get_pos():offset(0, 0.5, 0),
scale = {x=3,y=3},
text = "artifact_icon_whack.png"
}
end
end,
on_unhover = function(e, m)
if m._whack_hud then
m.object:hud_remove(m._whack_hud)
m._whack_hud = nil
end
end,
on_whack = function(e)
if e.type == "wood" then
local pos = e.object:get_pos():round()