Add the rest of the game.
This commit is contained in:
parent
dd73665a23
commit
e3431d8de9
49 changed files with 855 additions and 57 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue