[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4866: Undefined array key "database_gc"
FOSS gamedev and creative worlds • View topic - Torches are always mounted on ceiling
Page 1 of 1

Torches are always mounted on ceiling

PostPosted: Mon Apr 16, 2012 16:47
by lkjoel
The title says it all :). I'm trying to make a mod (nether) that will create a structure (throne of hades) that has torches in it, but they always think that they are mounted on the wall.
Since pics are worth a thousand and 5 words, I'll attach one:
Image
And 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
...
{pos={x=4,y=4,z=0}, block="nether:nether_torch"},
    {pos={x=4,y=4,z=1}, block="nether:nether_torch"},
    {pos={x=5,y=4,z=0}, block="nether:nether_torch"},
    {pos={x=5,y=4,z=1}, block="nether:nether_torch"},
    {pos={x=4,y=4,z=4}, block="nether:nether_torch"},
    {pos={x=4,y=4,z=5}, block="nether:nether_torch"},
    {pos={x=5,y=4,z=4}, block="nether:nether_torch"},
    {pos={x=5,y=4,z=5}, block="nether:nether_torch"},
    {pos={x=0,y=4,z=0}, block="nether:nether_torch"},
    {pos={x=0,y=4,z=1}, block="nether:nether_torch"},
    {pos={x=1,y=4,z=0}, block="nether:nether_torch"},
    {pos={x=1,y=4,z=1}, block="nether:nether_torch"},
    {pos={x=0,y=4,z=4}, block="nether:nether_torch"},
    {pos={x=0,y=4,z=5}, block="nether:nether_torch"},
    {pos={x=1,y=4,z=4}, block="nether:nether_torch"},
    {pos={x=1,y=4,z=5}, block="nether:nether_torch"},
...
-- Nether torch
minetest.register_node("nether:nether_torch", {
    description = "Nether Torch",
    drawtype = "torchlike",
    tile_images = {"nether_torch_on_floor.png", "nether_torch_on_ceiling.png", "nether_torch.png"},
    inventory_image = "nether_torch_on_floor.png",
    wield_image = "nether_torch_on_floor.png",
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
    walkable = false,
    light_source = LIGHT_MAX - 1,
    selection_box = {
        type = "wallmounted",
        wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},
        wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1},
        wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1},
    },
    groups = {choppy=2, dig_immediate=3},
    legacy_wallmounted = true,
    sounds = default.node_sound_defaults(),
})
...
-- Pass 3: Throne of Hades
        for i,v in ipairs(HADES_THRONE_ABS) do
            minetest.env:add_node(v.pos, {name=v.block})
        end
...

PostPosted: Mon Apr 16, 2012 17:45
by lkjoel
anyone?

PostPosted: Mon Apr 16, 2012 17:50
by Jordach
I think torches are always like that. You could try FACEDIR, however, I think this wont work. Try making a special type of node for lighting. Mainly a cube.

PostPosted: Mon Apr 16, 2012 17:55
by kddekadenz
Jordach wrote:I think torches are always like that. You could try FACEDIR, however, I think this wont work. Try making a special type of node for lighting. Mainly a cube.

Or lava_source blocks surrounded by glass nodes.

PostPosted: Mon Apr 16, 2012 17:57
by lkjoel
kddekadenz wrote:
Jordach wrote:I think torches are always like that. You could try FACEDIR, however, I think this wont work. Try making a special type of node for lighting. Mainly a cube.

Or lava_source blocks surrounded by glass nodes.

yeah, but they burn the glass (I tried this) lol

PostPosted: Mon Apr 16, 2012 18:01
by lkjoel
Jordach wrote:I think torches are always like that. You could try FACEDIR, however, I think this wont work. Try making a special type of node for lighting. Mainly a cube.

Thanks, I'll make a new torch node for this...

PostPosted: Mon Apr 16, 2012 18:25
by Jordach
Just made one, no mapgen for it, just one node.

http://ompldr.org/vZGVlNQ/glow.zip

PostPosted: Mon Apr 16, 2012 19:43
by sdzen
why not make it plantlike :P solve your issue from the looks of it and have an awesome torch