forked from Mirrorlandia_minetest/portalgun
test
This commit is contained in:
parent
15640770f3
commit
dec116cc5e
@ -1,8 +1,20 @@
|
|||||||
|
stone_sounds = {}
|
||||||
|
stone_sounds.footstep = {name="stone_walk", gain=1.0}
|
||||||
|
stone_sounds.dug = {name="stone_break", gain=1.0}
|
||||||
|
stone_sounds.place = {name="block_place", gain=1.0}
|
||||||
|
glass_sounds = {}
|
||||||
|
glass_sounds.footstep = {name="glass_walk", gain=1.0}
|
||||||
|
glass_sounds.dug = {name="glass_break", gain=1.0}
|
||||||
|
glass_sounds.place = {name="block_place", gain=1.0}
|
||||||
|
wood_sounds = {}
|
||||||
|
wood_sounds.footstep = {name="wood_walk", gain=1.0}
|
||||||
|
wood_sounds.dug = {name="wood_break", gain=1.0}
|
||||||
|
wood_sounds.place = {name="block_place", gain=1.0}
|
||||||
minetest.register_node("portalgun:powerballspawner", {
|
minetest.register_node("portalgun:powerballspawner", {
|
||||||
description = "Power ball spawner" ,
|
description = "Power ball spawner" ,
|
||||||
tiles = {"default_steel_block.png","default_steel_block.png","default_steel_block.png","default_steel_block.png","default_steel_block.png","portalgun_powerballspawner.png"},
|
tiles = {"steel.png","steel.png","steel.png","steel.png","steel.png","portalgun_powerballspawner.png"},
|
||||||
groups = {cracky=2},
|
groups = {cracky=2},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = glass_sounds,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
@ -29,9 +41,9 @@ minetest.register_node("portalgun:powerballspawner", {
|
|||||||
|
|
||||||
minetest.register_node("portalgun:powerballspawner2", {
|
minetest.register_node("portalgun:powerballspawner2", {
|
||||||
description = "Power ball spawner (spawn on activate)" ,
|
description = "Power ball spawner (spawn on activate)" ,
|
||||||
tiles = {"default_steel_block.png","default_steel_block.png","default_steel_block.png","default_steel_block.png","default_steel_block.png","portalgun_powerballspawner.png^[colorize:#aaaa0055"},
|
tiles = {"steel.png","steel.png","steel.png","steel.png","steel.png","portalgun_powerballspawner.png^[colorize:#aaaa0055"},
|
||||||
groups = {cracky=2,mesecon=1},
|
groups = {cracky=2,mesecon=1},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = glass_sounds,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
@ -125,7 +137,7 @@ minetest.register_node("portalgun:powerballtarget", {
|
|||||||
tiles = {"portalgun_powerballstarget.png"},
|
tiles = {"portalgun_powerballstarget.png"},
|
||||||
groups = {mesecon = 2,cracky=2},
|
groups = {mesecon = 2,cracky=2},
|
||||||
mesecons = {receptor = {state = "off"}},
|
mesecons = {receptor = {state = "off"}},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = stone_sounds,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
on_timer = function (pos, elapsed)
|
on_timer = function (pos, elapsed)
|
||||||
mesecon.receptor_off(pos)
|
mesecon.receptor_off(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user