Add the rest of the game.

This commit is contained in:
Signal 2025-11-29 17:24:33 -05:00
parent dd73665a23
commit 9096c33a48
49 changed files with 855 additions and 57 deletions

View file

@ -73,7 +73,7 @@ minetest.register_entity(":artifact:door", {
if e._locked then
e._no_interact = true
end
if e.inverted then e:invert() end
if e.inverted or nm:get("inverted") == "true" then e:invert() end
doors[e.object:get_pos():round():to_string()] = e
end,
on_deactivate = function(e)
@ -200,6 +200,10 @@ minetest.register_entity(":artifact:door", {
texture = "artifact_door_wood.png^[sheet:2x8:0,3",
time = 0.1
}
artifact.play_sound {
name = "artifact_door_break",
pos = pos
}
return true
end
end