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

@ -268,6 +268,7 @@ artifact.register_node("forcefield_generator", {
1, 0.5, 0.5
}
},
sounds = artifact.sounds.metal,
on_construct = onload,
on_load = onload,
on_rightclick = artifact.debug and function(pos)
@ -284,8 +285,12 @@ artifact.register_node("forcefield_generator", {
local node = minetest.get_node(pos)
node.name = "forcefield_generator_off"
minetest.after(0, function()
minetest.set_node(pos, node)
minetest.set_node(pos, node)
end)
artifact.play_sound {
name = "artifact_forcefield_generator_destruct",
pos = pos,
}
minetest.add_particlespawner {
pos = pos,
vel = vector.zero(),
@ -338,6 +343,7 @@ artifact.register_node("forcefield_generator_off", {
1, 0.5, 0.5
}
},
sounds = artifact.sounds.metal,
on_impact = artifact.debug and function(pos)
local node = minetest.get_node(pos)
node.name = "forcefield_generator"