Make pistons fully transparent to light

This commit is contained in:
Wuzzy 2017-06-13 14:26:50 +02:00
parent 7ac2abb0b8
commit 4002fe123c
1 changed files with 24 additions and 0 deletions

View File

@ -171,6 +171,8 @@ minetest.register_node("mesecons_pistons:piston_normal_off", {
"mesecons_piston_pusher_front.png"
},
groups = {handy = 1},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
after_place_node = piston_orientate,
@ -199,6 +201,7 @@ minetest.register_node("mesecons_pistons:piston_normal_on", {
wield_image = "mesecons_piston_top.png",
groups = {handy=1, not_in_creative_inventory = 1},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_normal_off",
@ -227,6 +230,7 @@ minetest.register_node("mesecons_pistons:piston_pusher_normal", {
"mesecons_piston_pusher_front.png"
},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
diggable = false,
@ -264,6 +268,8 @@ minetest.register_node("mesecons_pistons:piston_sticky_off", {
"mesecons_piston_pusher_front_sticky.png"
},
groups = {handy=1},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
after_place_node = piston_orientate,
@ -292,6 +298,7 @@ minetest.register_node("mesecons_pistons:piston_sticky_on", {
wield_image = "mesecons_piston_top.png",
groups = {handy=1, not_in_creative_inventory = 1},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_sticky_off",
@ -320,6 +327,7 @@ minetest.register_node("mesecons_pistons:piston_pusher_sticky", {
"mesecons_piston_pusher_front_sticky.png"
},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
diggable = false,
@ -373,6 +381,8 @@ minetest.register_node("mesecons_pistons:piston_up_normal_off", {
inventory_image = "mesecons_piston_top.png",
wield_image = "mesecons_piston_top.png",
groups = {handy=1, not_in_creative_inventory = 1},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_normal_off",
@ -401,6 +411,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal_on", {
wield_image = "mesecons_piston_top.png",
groups = {hanry=1, not_in_creative_inventory = 1},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_normal_off",
@ -429,6 +440,7 @@ minetest.register_node("mesecons_pistons:piston_up_pusher_normal", {
"mesecons_piston_pusher_top.png^[transformR180",
},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
diggable = false,
@ -466,6 +478,8 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_off", {
inventory_image = "mesecons_piston_top.png",
wield_image = "mesecons_piston_top.png",
groups = {handy=1, not_in_creative_inventory = 1},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_sticky_off",
@ -494,6 +508,7 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_on", {
wield_image = "mesecons_piston_top.png",
groups = {handy=1, not_in_creative_inventory = 1},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_sticky_off",
@ -522,6 +537,7 @@ minetest.register_node("mesecons_pistons:piston_up_pusher_sticky", {
"mesecons_piston_pusher_top.png^[transformR180",
},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
diggable = false,
@ -577,6 +593,8 @@ minetest.register_node("mesecons_pistons:piston_down_normal_off", {
inventory_image = "mesecons_piston_top.png",
wield_image = "mesecons_piston_top.png",
groups = {handy=1, not_in_creative_inventory = 1},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_normal_off",
@ -605,6 +623,7 @@ minetest.register_node("mesecons_pistons:piston_down_normal_on", {
wield_image = "mesecons_piston_top.png",
groups = {handy=1, not_in_creative_inventory = 1},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_normal_off",
@ -633,6 +652,7 @@ minetest.register_node("mesecons_pistons:piston_down_pusher_normal", {
"mesecons_piston_pusher_top.png",
},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
diggable = false,
@ -666,6 +686,8 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_off", {
inventory_image = "mesecons_piston_top.png",
wield_image = "mesecons_piston_top.png",
groups = {handy=1, not_in_creative_inventory = 1},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_sticky_off",
@ -694,6 +716,7 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_on", {
wield_image = "mesecons_piston_top.png",
groups = {handy=1, not_in_creative_inventory = 1},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_sticky_off",
@ -722,6 +745,7 @@ minetest.register_node("mesecons_pistons:piston_down_pusher_sticky", {
"mesecons_piston_pusher_top.png",
},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
is_ground_content = false,
diggable = false,