unlit torches have light level 3 to relight in dark

This commit is contained in:
TenPlus1 2017-09-11 15:34:54 +01:00
parent 2879a08bd0
commit 1ff0f15a2d
2 changed files with 4 additions and 0 deletions

1
2d.lua
View File

@ -13,6 +13,7 @@ minetest.register_node("real_torch:torch", {
wield_image = "real_torch_on_floor.png", wield_image = "real_torch_on_floor.png",
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
light_source = 3,
sunlight_propagates = true, sunlight_propagates = true,
is_ground_content = false, is_ground_content = false,
walkable = false, walkable = false,

3
3d.lua
View File

@ -12,6 +12,7 @@ minetest.register_node("real_torch:torch", {
}}, }},
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
light_source = 3,
sunlight_propagates = true, sunlight_propagates = true,
walkable = false, walkable = false,
liquids_pointable = false, liquids_pointable = false,
@ -65,6 +66,7 @@ minetest.register_node("real_torch:torch_wall", {
}}, }},
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
light_source = 3,
sunlight_propagates = true, sunlight_propagates = true,
walkable = false, walkable = false,
groups = {choppy=2, dig_immediate=3, flammable=1, not_in_creative_inventory=1, attached_node=1}, groups = {choppy=2, dig_immediate=3, flammable=1, not_in_creative_inventory=1, attached_node=1},
@ -91,6 +93,7 @@ minetest.register_node("real_torch:torch_ceiling", {
}}, }},
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
light_source = 3,
sunlight_propagates = true, sunlight_propagates = true,
walkable = false, walkable = false,
groups = {choppy=2, dig_immediate=3, flammable=1, not_in_creative_inventory=1, attached_node=1}, groups = {choppy=2, dig_immediate=3, flammable=1, not_in_creative_inventory=1, attached_node=1},