test
This commit is contained in:
+30
-19
@@ -1,4 +1,15 @@
|
||||
|
||||
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}
|
||||
local ptgwsc={
|
||||
{"weightedstoragecube.png","portalgun_presplat.png","(blue)"},
|
||||
{"weightedstoragecube2.png","portalgun_presplat2.png","(orange)"},
|
||||
@@ -26,9 +37,9 @@ end,
|
||||
|
||||
minetest.register_node("portalgun:wscspawner2_" .. ii, {
|
||||
description = "Weighted storage cube spawner2 " ..ptgwsc[ii][3],
|
||||
tiles = {"default_steel_block.png","default_steel_block.png","default_steel_block.png","default_steel_block.png","default_steel_block.png",ptgwsc[ii][1]},
|
||||
tiles = {"steel.png","steel.png","steel.png","steel.png","steel.png",ptgwsc[ii][1]},
|
||||
groups = {cracky=2,mesecon_receptor_off = 1, mesecon_effector_off = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
sounds = glass_sounds,
|
||||
is_ground_content = false,
|
||||
paramtype2 = "facedir",
|
||||
mesecons = {receptor = {state = "off"}, effector = {
|
||||
@@ -98,8 +109,8 @@ minetest.register_node("portalgun:wscspawner"..ii, {
|
||||
paramtype = "light",
|
||||
paramtype2="facedir",
|
||||
sunlight_propagates = true,
|
||||
light_source = default.LIGHT_MAX - 1,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
light_source = 14,
|
||||
sounds = stone_sounds,
|
||||
drawtype="nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@@ -129,12 +140,12 @@ minetest.register_node("portalgun:wscspawner"..ii, {
|
||||
|
||||
minetest.register_node("portalgun:plantform1_" ..ii, {
|
||||
description = "Pressure platform " .. ptgwsc[ii][3],
|
||||
tiles = {ptgwsc[ii][2],"default_cloud.png","default_cloud.png","default_cloud.png","default_cloud.png","default_cloud.png"},
|
||||
tiles = {ptgwsc[ii][2],"cloud.png","cloud.png","cloud.png","cloud.png","cloud.png"},
|
||||
groups = {mesecon = 2,cracky = 1, not_in_creative_inventory=0},
|
||||
mesecons = {receptor = {state = "off"}},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
sounds = stone_sounds,
|
||||
drawtype="nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@@ -166,14 +177,14 @@ minetest.register_node("portalgun:plantform1_" ..ii, {
|
||||
|
||||
minetest.register_node("portalgun:plantform2_"..ii, {
|
||||
description = "Pressure platform",
|
||||
tiles = {ptgwsc[ii][2],"default_cloud.png","default_cloud.png","default_cloud.png","default_cloud.png","default_cloud.png"},
|
||||
tiles = {ptgwsc[ii][2],"cloud.png","cloud.png","cloud.png","cloud.png","cloud.png"},
|
||||
drop="portalgun:plantform1_"..ii,
|
||||
groups = {mesecon = 2,cracky = 1, not_in_creative_inventory=1},
|
||||
mesecons = {receptor = {state = "on"}},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
light_source = default.LIGHT_MAX - 1,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
light_source = 14,
|
||||
sounds = stone_sounds,
|
||||
drawtype="nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@@ -207,12 +218,12 @@ end -- of for #
|
||||
|
||||
minetest.register_node("portalgun:plantform_nu1", {
|
||||
description = "Pressure platform (player or cube)",
|
||||
tiles = {"portalgun_presplat5.png","default_cloud.png","default_cloud.png","default_cloud.png","default_cloud.png","default_cloud.png"},
|
||||
tiles = {"portalgun_presplat5.png","cloud.png","cloud.png","cloud.png","cloud.png","cloud.png"},
|
||||
groups = {mesecon = 2,cracky = 1, not_in_creative_inventory=0},
|
||||
mesecons = {receptor = {state = "off"}},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
sounds = stone_sounds,
|
||||
drawtype="nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@@ -244,14 +255,14 @@ minetest.register_node("portalgun:plantform_nu1", {
|
||||
|
||||
minetest.register_node("portalgun:plantform_nu2", {
|
||||
description = "Pressure platform",
|
||||
tiles = {"portalgun_presplat5.png","default_cloud.png","default_cloud.png","default_cloud.png","default_cloud.png","default_cloud.png"},
|
||||
tiles = {"portalgun_presplat5.png","cloud.png","cloud.png","cloud.png","cloud.png","cloud.png"},
|
||||
drop="portalgun:plantform_nu1",
|
||||
groups = {mesecon = 2,cracky = 1, not_in_creative_inventory=1},
|
||||
mesecons = {receptor = {state = "on"}},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
light_source = default.LIGHT_MAX - 1,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
light_source = 14,
|
||||
sounds = stone_sounds,
|
||||
drawtype="nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@@ -282,12 +293,12 @@ minetest.register_node("portalgun:plantform_nu2", {
|
||||
|
||||
minetest.register_node("portalgun:planthole", {
|
||||
description = "Plathole (activate by any cube, 2 blocks under)",
|
||||
tiles = {"default_cloud.png"},
|
||||
tiles = {"cloud.png"},
|
||||
groups = {mesecon = 2,cracky = 1},
|
||||
mesecons = {receptor = {state = "off"}},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
sounds = stone_sounds,
|
||||
drawtype="nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@@ -324,7 +335,7 @@ minetest.register_node("portalgun:objdestroyer_1", {
|
||||
description = "Object destroyer (destroys on active)",
|
||||
tiles = {"portalgun_testblock.png^[colorize:#FF0000aa"},
|
||||
groups = {cracky = 2,mesecon=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
sounds = stone_sounds,
|
||||
mesecons = {effector = {
|
||||
action_on = function (pos, node)
|
||||
minetest.set_node(pos, {name ="portalgun:objdestroyer_2"})
|
||||
@@ -343,7 +354,7 @@ minetest.register_node("portalgun:objdestroyer_2", {
|
||||
sunlight_propagates = true,
|
||||
drop="portalgun:objdestroyer_1",
|
||||
paramtype="light",
|
||||
light_source = default.LIGHT_MAX - 1,
|
||||
light_source = 14,
|
||||
mesecons = {conductor = {
|
||||
state = mesecon.state.on,
|
||||
offstate = "portalgun:objdestroyer_1",
|
||||
|
||||
Reference in New Issue
Block a user