1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-09-22 20:00:17 +02:00

Make some nodes let light pass through

This commit is contained in:
Calinou 2012-12-16 18:37:16 +01:00
parent 73d078fd27
commit 9c7a68acd6

View File

@ -869,6 +869,7 @@ minetest.register_node("default:junglegrass", {
wield_image = "default_junglegrass.png", wield_image = "default_junglegrass.png",
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
sunlight_propagates = true,
groups = {snappy=3,flammable=2,attached_node=1}, groups = {snappy=3,flammable=2,attached_node=1},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
}) })
@ -915,6 +916,7 @@ minetest.register_node("default:papyrus", {
paramtype = "light", paramtype = "light",
is_ground_content = true, is_ground_content = true,
walkable = false, walkable = false,
sunlight_propagates = true,
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
@ -951,6 +953,7 @@ minetest.register_node("default:fence_wood", {
wield_image = "default_fence.png", wield_image = "default_fence.png",
paramtype = "light", paramtype = "light",
is_ground_content = true, is_ground_content = true,
sunlight_propagates = true,
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}, fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
@ -968,6 +971,7 @@ minetest.register_node("default:rail", {
paramtype = "light", paramtype = "light",
is_ground_content = true, is_ground_content = true,
walkable = false, walkable = false,
sunlight_propagates = true,
selection_box = { selection_box = {
type = "fixed", type = "fixed",
-- but how to specify the dimensions for curved and sideways rails? -- but how to specify the dimensions for curved and sideways rails?
@ -987,6 +991,7 @@ minetest.register_node("default:ladder", {
is_ground_content = true, is_ground_content = true,
walkable = false, walkable = false,
climbable = true, climbable = true,
sunlight_propagates = true,
selection_box = { selection_box = {
type = "wallmounted", type = "wallmounted",
--wall_top = = <default> --wall_top = = <default>
@ -1101,6 +1106,7 @@ minetest.register_node("default:lava_flowing", {
pointable = false, pointable = false,
diggable = false, diggable = false,
buildable_to = true, buildable_to = true,
sunlight_propagates = true,
liquidtype = "flowing", liquidtype = "flowing",
liquid_alternative_flowing = "default:lava_flowing", liquid_alternative_flowing = "default:lava_flowing",
liquid_alternative_source = "default:lava_source", liquid_alternative_source = "default:lava_source",
@ -1127,6 +1133,7 @@ minetest.register_node("default:lava_source", {
pointable = false, pointable = false,
diggable = false, diggable = false,
buildable_to = true, buildable_to = true,
sunlight_propagates = true,
liquidtype = "source", liquidtype = "source",
liquid_alternative_flowing = "default:lava_flowing", liquid_alternative_flowing = "default:lava_flowing",
liquid_alternative_source = "default:lava_source", liquid_alternative_source = "default:lava_source",
@ -1557,6 +1564,7 @@ minetest.register_node("default:sapling", {
wield_image = "default_sapling.png", wield_image = "default_sapling.png",
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
sunlight_propagates = true,
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
@ -1592,6 +1600,7 @@ minetest.register_node("default:dry_shrub", {
wield_image = "default_dry_shrub.png", wield_image = "default_dry_shrub.png",
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
sunlight_propagates = true,
groups = {snappy=3,flammable=3,attached_node=1}, groups = {snappy=3,flammable=3,attached_node=1},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {