Edit: i was indeed unclear. The bug is the fact that without any light source near theses nodes, when i put one of them againt a wall or a corner, the lighting go up. Same when i pile them.
Here my code
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_node("test_mod:pos_debug", {
description = "Air Info Pos",
drawtype = "glasslike",
tiles = {"default_sign_wall.png"},
walkable = false,
is_ground_content = false,
light_propagates = true,
sunlight_propagates = true,
selection_box = {
type = "fixed",
fixed = {0, 0, 0, 0, 0, 0},
},
on_construct = function(pos)
local meta = minetest.env:get_meta(pos)
meta:set_string("infotext", "X:"..round(pos.x).."Y:"..round(pos.y).."Z:"..round(pos.z))
end,
groups = {not_in_creative_inventory=2,dig_immediate=2},
})
When i put 4 nodes in a square, i get this during night time :

I know that dont come from any mods currently installed.