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

Torches are always mounted on ceiling

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

Torches are always mounted on ceiling

by lkjoel » Mon Apr 16, 2012 16:47

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
...
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

by lkjoel » Mon Apr 16, 2012 17:45

anyone?
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Mon Apr 16, 2012 17:50

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.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
kddekadenz
Member
 
Posts: 323
Joined: Mon Jun 27, 2011 17:21
GitHub: tinyworlds

by kddekadenz » Mon Apr 16, 2012 17:55

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.
 

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

by lkjoel » Mon Apr 16, 2012 17:57

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
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

by lkjoel » Mon Apr 16, 2012 18:01

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...
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Mon Apr 16, 2012 18:25

Just made one, no mapgen for it, just one node.

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

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
sdzen
Member
 
Posts: 1170
Joined: Fri Aug 05, 2011 22:33

by sdzen » Mon Apr 16, 2012 19:43

why not make it plantlike :P solve your issue from the looks of it and have an awesome torch
[h]Zen S.D.[/h] The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 127 guests

cron