boost light values; use brighter texture for signs
|
@ -122,7 +122,7 @@ minetest.register_node("default:furnace_active", {
|
|||
}
|
||||
},
|
||||
paramtype2 = "facedir",
|
||||
light_source = 8,
|
||||
light_source = 13,
|
||||
drop = "default:furnace",
|
||||
groups = {cracky=2, not_in_creative_inventory=1},
|
||||
legacy_facedir_simple = true,
|
||||
|
|
|
@ -1144,7 +1144,7 @@ minetest.register_node("default:lava_source", {
|
|||
},
|
||||
},
|
||||
paramtype = "light",
|
||||
light_source = default.LIGHT_MAX - 1,
|
||||
light_source = 15,
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
|
@ -1190,7 +1190,7 @@ minetest.register_node("default:lava_flowing", {
|
|||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "flowingliquid",
|
||||
light_source = default.LIGHT_MAX - 1,
|
||||
light_source = 15,
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
|
@ -1250,7 +1250,7 @@ minetest.register_node("default:torch", {
|
|||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
light_source = default.LIGHT_MAX - 1,
|
||||
light_source = 14,
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},
|
||||
|
@ -1577,7 +1577,7 @@ minetest.register_node("default:meselamp", {
|
|||
is_ground_content = false,
|
||||
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
light_source = 12,
|
||||
light_source = 15,
|
||||
})
|
||||
|
||||
--
|
||||
|
|
|
@ -10,7 +10,7 @@ minetest.register_node("fake_fire:fake_fire", {
|
|||
{name="fake_fire_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=1.5}},
|
||||
},
|
||||
drawtype = "plantlike",
|
||||
light_source = 14,
|
||||
light_source = 15,
|
||||
drop = '',
|
||||
damage_per_second = 2*0.5,
|
||||
groups = {dig_immediate=3,attached_node=1},
|
||||
|
|
|
@ -87,7 +87,7 @@ minetest.register_node(":farming:pumpkin_face", {
|
|||
minetest.register_node(":farming:pumpkin_face_light", {
|
||||
description = S("Pumpkin Face With Light"),
|
||||
paramtype2 = "facedir",
|
||||
light_source = LIGHT_MAX-2,
|
||||
light_source = 15,
|
||||
tiles = {"farming_pumpkin_top.png", "farming_pumpkin_top.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_face_light.png"},
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, flammable=2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
|
@ -356,7 +356,7 @@ minetest.register_node(":farming:scarecrow_light", {
|
|||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
light_source = LIGHT_MAX-2,
|
||||
light_source = 15,
|
||||
tiles = {"farming_scarecrow_top.png", "farming_scarecrow_top.png", "farming_scarecrow_side.png", "farming_scarecrow_side.png", "farming_scarecrow_side.png", "farming_scarecrow_front_light.png"},
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
|
|
|
@ -10,7 +10,7 @@ minetest.register_node("fire:basic_flame", {
|
|||
animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1},
|
||||
}},
|
||||
inventory_image = "fire_basic_flame.png",
|
||||
light_source = 14,
|
||||
light_source = 15,
|
||||
groups = {igniter=2,dig_immediate=3},
|
||||
drop = '',
|
||||
walkable = false,
|
||||
|
|
|
@ -25,7 +25,7 @@ for i in ipairs(colours_list) do
|
|||
if colour == "white" then
|
||||
minetest.register_node("fireworks:white", {
|
||||
drawtype = "airlike",
|
||||
light_source = 14,
|
||||
light_source = 15,
|
||||
buildable_to = true,
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
|
@ -70,7 +70,7 @@ for i in ipairs(colours_list) do
|
|||
drawtype = "plantlike",
|
||||
description = desc,
|
||||
tiles = {"fireworks_"..colour..".png"},
|
||||
light_source = 14,
|
||||
light_source = 15,
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
is_ground_content = true,
|
||||
|
|
|
@ -97,7 +97,7 @@ local drop_item = function(pos, node)
|
|||
end
|
||||
|
||||
minetest.register_node("itemframes:frame",{
|
||||
description = "Item frame",
|
||||
description = "Item Frame",
|
||||
drawtype = "nodebox",
|
||||
node_box = { type = "fixed", fixed = {-0.5, -0.5, 7/16, 0.5, 0.5, 0.5} },
|
||||
selection_box = { type = "fixed", fixed = {-0.5, -0.5, 7/16, 0.5, 0.5, 0.5} },
|
||||
|
|
|
@ -49,7 +49,7 @@ minetest.register_node("mg_villages:torch", {
|
|||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
light_source = LIGHT_MAX-1,
|
||||
light_source = 14,
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},
|
||||
|
|
|
@ -17,7 +17,7 @@ minetest.register_node("mesecons_lamp:lamp_on", {
|
|||
legacy_wallmounted = true,
|
||||
sunlight_propagates = true,
|
||||
walkable = true,
|
||||
light_source = LIGHT_MAX,
|
||||
light_source = 15,
|
||||
node_box = mesecon_lamp_box,
|
||||
selection_box = mesecon_lamp_box,
|
||||
groups = {dig_immediate=3,not_in_creative_inventory=1, mesecon_effector_on = 1},
|
||||
|
|
|
@ -31,7 +31,7 @@ function mesecon.lightstone_add(name, base_item, texture_off, texture_on)
|
|||
tiles = {texture_on},
|
||||
groups = {cracky=2,not_in_creative_inventory=1, mesecon = 2},
|
||||
drop = "mesecons_lightstone:lightstone_" .. name .. "_off",
|
||||
light_source = LIGHT_MAX-1,
|
||||
light_source = 15,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
mesecons = {effector = {
|
||||
rules = lightstone_rules,
|
||||
|
|
|
@ -76,7 +76,7 @@ minetest.register_node("mesecons_torch:mesecon_torch_on", {
|
|||
paramtype2 = "wallmounted",
|
||||
selection_box = torch_selectionbox,
|
||||
groups = {dig_immediate=3},
|
||||
light_source = LIGHT_MAX-5,
|
||||
light_source = 7,
|
||||
description="Mesecon Torch",
|
||||
mesecons = {receptor = {
|
||||
state = mesecon.state.on,
|
||||
|
|
Before Width: | Height: | Size: 219 B After Width: | Height: | Size: 225 B |
Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 366 B |
Before Width: | Height: | Size: 206 B After Width: | Height: | Size: 346 B |
Before Width: | Height: | Size: 210 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 425 B |
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 402 B |
|
@ -402,7 +402,7 @@ minetest.register_node("nether:glowstone", {
|
|||
description = "Glowstone",
|
||||
tiles = {"nether_glowstone.png"},
|
||||
is_ground_content = true,
|
||||
light_source = 13,
|
||||
light_source = 15,
|
||||
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
|
|
@ -30,7 +30,7 @@ minetest.register_node("ocean:prismarine_bricks", {
|
|||
minetest.register_node("ocean:sea_lantern", {
|
||||
description = "Sea Lantern",
|
||||
tiles = {"sea_lantern.png"},
|
||||
light_source = 14,
|
||||
light_source = 15,
|
||||
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
|
|
@ -185,7 +185,7 @@ minetest.register_node("signs:sign_wall", {
|
|||
drawtype = "nodebox",
|
||||
node_box = {type = "fixed", fixed = {-0.45, -0.15, 0.4, 0.45, 0.45, 0.498}},
|
||||
selection_box = {type = "fixed", fixed = {-0.45, -0.15, 0.4, 0.45, 0.45, 0.498}},
|
||||
tiles = {"default_wood.png"},
|
||||
tiles = {"default_wood_pale.png"},
|
||||
groups = sign_groups,
|
||||
on_construct = function(pos)
|
||||
construct_sign(pos)
|
||||
|
@ -212,7 +212,7 @@ minetest.register_node("signs:sign_yard", {
|
|||
{-0.05, -0.5, -0.049, 0.05, -0.15, 0.049}
|
||||
}},
|
||||
selection_box = {type = "fixed", fixed = {-0.45, -0.15, -0.049, 0.45, 0.45, 0.049}},
|
||||
tiles = {"default_wood.png"},
|
||||
tiles = {"default_wood_pale.png"},
|
||||
groups = {choppy=2, dig_immediate=2},
|
||||
drop = "default:sign_wall",
|
||||
|
||||
|
|
After Width: | Height: | Size: 959 B |
|
@ -101,7 +101,7 @@ minetest.register_node("throwing:light", {
|
|||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
tiles = {"throwing_empty.png"},
|
||||
light_source = LIGHT_MAX-4,
|
||||
light_source = 15,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
|
|
|
@ -175,6 +175,49 @@ minetest.register_abm({
|
|||
end
|
||||
})
|
||||
|
||||
-- update lighting in areas with old torch light value
|
||||
minetest.register_abm({
|
||||
nodenames = {"torches:wand","torches:floor","torches:wall"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos)
|
||||
local n = minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z})
|
||||
local light = minetest.get_node_light({x=pos.x, y=pos.y+1, z=pos.z}, 0)
|
||||
if n.name == "air" and light < 13 then
|
||||
--print ("*** light update needed")
|
||||
local size = 40
|
||||
local minp, maxp = {x = math.floor(pos.x - size), y = math.floor(pos.y - size), z = math.floor(pos.z - size)}, {x = math.ceil(pos.x + size), y = math.ceil(pos.y + size), z = math.ceil(pos.z + size)}
|
||||
local vm = minetest.get_voxel_manip()
|
||||
vm:read_from_map(minp, maxp)
|
||||
vm:calc_lighting()
|
||||
vm:update_liquids()
|
||||
vm:write_to_map()
|
||||
vm:update_map()
|
||||
end
|
||||
end
|
||||
})
|
||||
-- update light in Nether too
|
||||
minetest.register_abm({
|
||||
nodenames = {"nether:glowstone"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos)
|
||||
local n = minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z})
|
||||
local light = minetest.get_node_light({x=pos.x, y=pos.y+1, z=pos.z}, 0)
|
||||
if n.name == "air" and light < 13 then
|
||||
--print ("*** light update needed")
|
||||
local size = 40
|
||||
local minp, maxp = {x = math.floor(pos.x - size), y = math.floor(pos.y - size), z = math.floor(pos.z - size)}, {x = math.ceil(pos.x + size), y = math.ceil(pos.y + size), z = math.ceil(pos.z + size)}
|
||||
local vm = minetest.get_voxel_manip()
|
||||
vm:read_from_map(minp, maxp)
|
||||
vm:calc_lighting()
|
||||
vm:update_liquids()
|
||||
vm:write_to_map()
|
||||
vm:update_map()
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
--node_boxes
|
||||
minetest.register_craftitem(":default:torch", {
|
||||
description = "Torch",
|
||||
|
@ -225,7 +268,7 @@ minetest.register_node("torches:floor", {
|
|||
sunlight_propagates = true,
|
||||
drop = "default:torch",
|
||||
walkable = false,
|
||||
light_source = 13,
|
||||
light_source = 14,
|
||||
groups = {choppy=2,dig_immediate=3,flammable=1,not_in_creative_inventory=1,torch=1},
|
||||
legacy_wallmounted = true,
|
||||
selection_box = {
|
||||
|
@ -292,7 +335,7 @@ minetest.register_node("torches:wand", {
|
|||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
light_source = 13,
|
||||
light_source = 14,
|
||||
groups = {choppy=2,dig_immediate=3,flammable=1,not_in_creative_inventory=1,torch=1},
|
||||
legacy_wallmounted = true,
|
||||
drop = "default:torch",
|
||||
|
@ -329,7 +372,7 @@ minetest.register_node("torches:wall", {
|
|||
paramtype2 = "wallmounted",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
light_source = 13,
|
||||
light_source = 14,
|
||||
groups = {choppy=2,dig_immediate=3,flammable=1,not_in_creative_inventory=1,torch=1},
|
||||
legacy_wallmounted = true,
|
||||
drop = "default:torch",
|
||||
|
|