Page 1 of 2

Mods problem whith minetest 4.5

PostPosted: Sun Mar 24, 2013 19:41
by Yvan43
Hello !

I have a problem with the mods, they don't work ! I have tried several mods but i always have the same problem !

Could not open file of texture: character.png
Loaded mesh: character.x
PNG warning: Interlace handling should be turned on when using png_read_image
Loaded texture: C:/Program Files/minetest/textures/base/pack/sunrisebg.png


I have the last version of minetest (0.4.5)

PostPosted: Sun Mar 24, 2013 19:55
by PilzAdam
The output from the console you posted isnt useful. Please create the debug output as described here: http://forum.minetest.net/viewtopic.php?id=5073

PostPosted: Sun Mar 24, 2013 20:57
by Yvan43
My OS is windows XP SP3
AMD Athlon 64x2 Dual
3800+
1.99 Ghz 1.00 Go Ram

ASUS EAH 4350 series

My minetest version is 0.4.5

I didn't succeed to post the output from debugg.txt. There is too many characters. What are the code tags of BBCode that i must use for that ?

The game don't crash, the mods symply don't work. Nothing happens !
Thanks

PostPosted: Sun Mar 24, 2013 21:21
by Jeija
If the game works normally but the mods don't appear to be there, where exactly did you put the mods?
Make sure the paths to the init.lua's are:
games\minetest_game\mods\<modname>\init.lua

So put all the mods you downloaded in the folder
games\minetest_game\mods\

You might also try to make a new world; make sure that you select "Minetest" when you are asked what game to use.

What mods did you try?

PostPosted: Sun Mar 24, 2013 21:29
by Traxie21
Jeija, I thought mods go in mods\minetest\<modname>

PostPosted: Sun Mar 24, 2013 21:33
by Yvan43
The path to the init.lua seems to be good :
minetest\mods\minetest\npc\init.lua

I have tried the npc mod and MOB Framework
I'm going to try a new world

PostPosted: Sun Mar 24, 2013 21:38
by Traxie21
Are you naming the folders correctly?
For example, MOB Framework's folder should be /mobf/

PostPosted: Sun Mar 24, 2013 21:41
by Jeija
Yvan43, how do you know for sure that the mods don't work? In mobf you may just not have seen any animal spawning.
For the npc mod, enable the creative mode and look for something called "spawnegg" in the creative inventory.

You can also try to install a mod that adds craft recipes; if crafting works, the mod is installed properly

PostPosted: Sun Mar 24, 2013 22:12
by Yvan43
Ok !
I have tried the creative mode and i finally sees the the animals (Ostrich, slim, rat, wolf, npc trader etc...).
I have tried again without the creative mode and it works too. I don't tunderstand. I had play 10 hours at least for 3 or 4 days without seing anything and suddenly , it works ?!?

Thanks

PostPosted: Sun Mar 24, 2013 22:39
by Yvan43
Ok ! i 've been killed by a wolf and i don't know how to find my way to my beautifull house !!!

Now there's sometimes a message on the screen :

error[ServerThread]: ServerEnvironment: Desactivate FarObjects<>: ia=9 m_static_exists=true but static data doesn't actually exists in <-16,3,-4>

What's the problem ?

PostPosted: Mon Mar 25, 2013 15:35
by dj22
try my elivator mod its not finished but it brings u up two blocks just punch it

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("blocks:elivator1", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.3, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.3, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator2"})
               
end,

     
})









minetest.register_node("blocks:elivator2", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.2, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.2, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator3"})
               
end,

     
})








minetest.register_node("blocks:elivator3", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.1, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.1, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator9"})
               
end,

     
})



minetest.register_node("blocks:elivator9", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator10"})
               
end,

     
})

minetest.register_node("blocks:elivator10", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.05, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.05, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator4"})
               
end,

     
})

minetest.register_node("blocks:elivator4", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.1, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.1, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator5"})
               
end,

     
})







minetest.register_node("blocks:elivator5", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.2, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.2, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator6"})
               
end,

     
})










minetest.register_node("blocks:elivator6", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.3, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.3, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator7"})
               
end,

     
})






minetest.register_node("blocks:elivator7", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.4, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.4, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator8"})
               
end,

     
})





minetest.register_node("blocks:elivator8", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator11"})
               
end,

     
})



minetest.register_node("blocks:elivator11", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.6, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.6, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator12"})
               
end,

     
})






minetest.register_node("blocks:elivator12", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.7, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.7, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator13"})
               
end,

     
})






minetest.register_node("blocks:elivator13", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.8, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.8, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator14"})
               
end,

     
})





minetest.register_node("blocks:elivator14", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.9, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.9, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator15"})
               
end,

     
})











minetest.register_node("blocks:elivator15", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator16"})
               
end,

     
})







minetest.register_node("blocks:elivator16", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.1, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.1, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator17"})
               
end,

     
})




minetest.register_node("blocks:elivator17", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.2, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.2, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator18"})
               
end,

     
})





minetest.register_node("blocks:elivator18", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.3, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.3, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator19"})
               
end,

     
})






minetest.register_node("blocks:elivator19", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.4, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.4, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator20"})
               
end,

     
})







minetest.register_node("blocks:elivator20", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
               
end,

     
})

PostPosted: Mon Mar 25, 2013 15:39
by PilzAdam
Oh man... use the code tag of BBCode.

PostPosted: Mon Mar 25, 2013 15:42
by dj22
how

PostPosted: Mon Mar 25, 2013 15:42
by PilzAdam
dj22 wrote:how

Click the "BBCode" link at the top right of the textbox, it links to a help page.

PostPosted: Mon Mar 25, 2013 15:43
by dj22
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("blocks:elivator1", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.3, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.3, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator2"})
               
end,

     
})









minetest.register_node("blocks:elivator2", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.2, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.2, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator3"})
               
end,

     
})








minetest.register_node("blocks:elivator3", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.1, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.1, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator9"})
               
end,

     
})



minetest.register_node("blocks:elivator9", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator10"})
               
end,

     
})

minetest.register_node("blocks:elivator10", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.05, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.05, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator4"})
               
end,

     
})

minetest.register_node("blocks:elivator4", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.1, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.1, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator5"})
               
end,

     
})







minetest.register_node("blocks:elivator5", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.2, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.2, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator6"})
               
end,

     
})










minetest.register_node("blocks:elivator6", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.3, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.3, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator7"})
               
end,

     
})






minetest.register_node("blocks:elivator7", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.4, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.4, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator8"})
               
end,

     
})





minetest.register_node("blocks:elivator8", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator11"})
               
end,

     
})



minetest.register_node("blocks:elivator11", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.6, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.6, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator12"})
               
end,

     
})






minetest.register_node("blocks:elivator12", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.7, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.7, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator13"})
               
end,

     
})






minetest.register_node("blocks:elivator13", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.8, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.8, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator14"})
               
end,

     
})





minetest.register_node("blocks:elivator14", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.9, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.9, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator15"})
               
end,

     
})











minetest.register_node("blocks:elivator15", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator16"})
               
end,

     
})







minetest.register_node("blocks:elivator16", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.1, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.1, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator17"})
               
end,

     
})




minetest.register_node("blocks:elivator17", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.2, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.2, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator18"})
               
end,

     
})





minetest.register_node("blocks:elivator18", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.3, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.3, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator19"})
               
end,

     
})






minetest.register_node("blocks:elivator19", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.4, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.4, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator20"})
               
end,

     
})







minetest.register_node("blocks:elivator20", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
               
end,

     
})

PostPosted: Mon Mar 25, 2013 15:46
by dj22
yeah but i didnt know how to

PostPosted: Mon Mar 25, 2013 16:11
by dj22
ok

PostPosted: Mon Mar 25, 2013 16:14
by dj22
it doesnt work

PostPosted: Mon Mar 25, 2013 16:21
by dj22
cool

PostPosted: Mon Mar 25, 2013 16:42
by dj22
would an abm work under on_punch

PostPosted: Mon Mar 25, 2013 17:23
by Traxie21
The ABM would have to e registered separetly, but a function in it could be called or a variable updated.

PostPosted: Mon Mar 25, 2013 19:44
by dj22
could u make the code in reverce cuz ive tryed and nothing seems to work for me so it can go down insted of up so i can abm it with on_punch when u hit the last function and also abm it to change when u hit the last function going down thats how we will make the elivator

PostPosted: Tue Mar 26, 2013 12:29
by dj22
here is the elivator in reverse

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("blocks:elivator1", {

    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.3, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.3, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
               
end,

     
})









minetest.register_node("blocks:elivator2", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.2, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.2, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator1"})
               
end,

     
})








minetest.register_node("blocks:elivator3", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.1, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.1, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator2"})
               
end,

     
})



minetest.register_node("blocks:elivator9", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator3"})
               
end,

     
})

minetest.register_node("blocks:elivator10", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.05, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.05, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator9"})
               
end,

     
})

minetest.register_node("blocks:elivator4", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.1, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.1, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator10"})
               
end,

     
})







minetest.register_node("blocks:elivator5", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.2, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.2, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator4"})
               
end,

     
})










minetest.register_node("blocks:elivator6", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.3, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.3, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator5"})
               
end,

     
})






minetest.register_node("blocks:elivator7", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.4, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.4, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator6"})
               
end,

     
})





minetest.register_node("blocks:elivator8", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator7"})
               
end,

     
})



minetest.register_node("blocks:elivator11", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.6, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.6, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator8"})
               
end,

     
})






minetest.register_node("blocks:elivator12", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.7, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.7, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator11"})
               
end,

     
})






minetest.register_node("blocks:elivator13", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.8, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.8, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator12"})
               
end,

     
})





minetest.register_node("blocks:elivator14", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.9, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.9, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator13"})
               
end,

     
})











minetest.register_node("blocks:elivator15", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator14"})
               
end,

     
})







minetest.register_node("blocks:elivator16", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.1, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.1, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator15"})
               
end,

     
})




minetest.register_node("blocks:elivator17", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.2, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.2, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator16"})
               
end,

     
})





minetest.register_node("blocks:elivator18", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.3, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.3, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator17"})
               
end,

     
})






minetest.register_node("blocks:elivator19", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.4, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.4, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator18"})
               
end,

     
})







minetest.register_node("blocks:elivator20", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator19"})
               
end,

     
})

PostPosted: Tue Mar 26, 2013 12:32
by Traxie21
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
Use code tags please!

PostPosted: Tue Mar 26, 2013 12:34
by Calinou
What Traxie21 said, put your code in "code" tags (or just select it and click the "<>" icon).

PostPosted: Tue Mar 26, 2013 12:44
by dj22
now every one abm it and make it one elivator its easy just abm the first and last node each it has to be working yo

PostPosted: Tue Mar 26, 2013 13:00
by dj22
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("blocks:elivator1", {

    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.3, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.3, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
               
end,

     
})









minetest.register_node("blocks:elivator2", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.2, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.2, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator1"})
               
end,

     
})








minetest.register_node("blocks:elivator3", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.1, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, -0.1, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator2"})
               
end,

     
})



minetest.register_node("blocks:elivator9", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator3"})
               
end,

     
})

minetest.register_node("blocks:elivator10", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.05, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.05, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator9"})
               
end,

     
})

minetest.register_node("blocks:elivator4", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.1, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.1, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator10"})
               
end,

     
})







minetest.register_node("blocks:elivator5", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.2, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.2, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator4"})
               
end,

     
})










minetest.register_node("blocks:elivator6", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.3, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.3, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator5"})
               
end,

     
})






minetest.register_node("blocks:elivator7", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.4, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.4, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator6"})
               
end,

     
})





minetest.register_node("blocks:elivator8", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator7"})
               
end,

     
})



minetest.register_node("blocks:elivator11", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.6, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.6, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator8"})
               
end,

     
})






minetest.register_node("blocks:elivator12", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.7, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.7, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator11"})
               
end,

     
})






minetest.register_node("blocks:elivator13", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.8, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.8, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator12"})
               
end,

     
})





minetest.register_node("blocks:elivator14", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.9, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.9, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator13"})
               
end,

     
})











minetest.register_node("blocks:elivator15", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator14"})
               
end,

     
})







minetest.register_node("blocks:elivator16", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.1, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.1, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator15"})
               
end,

     
})




minetest.register_node("blocks:elivator17", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.2, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.2, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator16"})
               
end,

     
})





minetest.register_node("blocks:elivator18", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.3, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.3, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator17"})
               
end,

     
})






minetest.register_node("blocks:elivator19", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.4, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.4, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator18"})
               
end,

     
})







minetest.register_node("blocks:elivator20", {
    drawtype = "nodebox",
    tiles = {"default_stone.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5}
    },
node_box = {
        type = "fixed",
        fixed = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5}
    },

    groups = {cracky=3},
      description="elivator",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator19"})
               
end,

     
})

PostPosted: Tue Mar 26, 2013 14:06
by Traxie21
Well, for starters, it's spelled 'elevator', not 'elivator'
Anyhow, there would be a much easier way to do this, although it is hard to tell from the code what you're trying to do.
Also, use minetest.env:add_node(pos, 'mod:node'), not (pos, {name='mod:node'})
I don't think the table works there.
(Correct me if I'm wrong)

PostPosted: Tue Mar 26, 2013 15:11
by dj22
this is the needle lamp mod sorry for not spelling it corectly





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("blocks:lamp4", {
    drawtype = "nodebox",
    tiles = {"block5.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed =    { -0.05, -0.5, -0.1, 0.05, 0.5, 0.001}
         
    },

node_box = {
        type = "fixed",
        fixed =     { -0.05, -0.5, -0.1, 0.05, 0.5, 0.001}
         
    },

    groups = {cracky=3},
      description="pole",
       })




minetest.register_node("blocks:lamp5", {
    drawtype = "nodebox",
    tiles = {"block5.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed =    { -0.1, -0.5, -0.1, 0.1, 0.5, 0.1}
         
    },

node_box = {
        type = "fixed",
        fixed =     { -0.1, -0.5, -0.1, 0.1, 0.5, 0.1}
         
    },

    groups = {cracky=3},
      description="pole",

       })








minetest.register_node("blocks:lamp6", {
    drawtype = "nodebox",
    tiles = {"block6.png"},
    inventory_image = "block6.png",
    wield_image = "block6.png",
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.01, -0.5, -0.01, 0.01, 0.5, 0.01}
    },
node_box = {
        type = "fixed",
        fixed = {-0.01, -0.5, -0.01, 0.01, 0.5, 0.01}
    },

    groups = {cracky=3},
      description="lamp",
     
})

PostPosted: Tue Mar 26, 2013 15:14
by dj22
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("blocks:lamp4", {
    drawtype = "nodebox",
    tiles = {"block5.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed =    { -0.05, -0.5, -0.1, 0.05, 0.5, 0.001}
         
    },

node_box = {
        type = "fixed",
        fixed =     { -0.05, -0.5, -0.1, 0.05, 0.5, 0.001}
         
    },

    groups = {cracky=3},
      description="pole",
       })




minetest.register_node("blocks:lamp5", {
    drawtype = "nodebox",
    tiles = {"block5.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed =    { -0.1, -0.5, -0.1, 0.1, 0.5, 0.1}
         
    },

node_box = {
        type = "fixed",
        fixed =     { -0.1, -0.5, -0.1, 0.1, 0.5, 0.1}
         
    },

    groups = {cracky=3},
      description="pole",

       })








minetest.register_node("blocks:lamp6", {
    drawtype = "nodebox",
    tiles = {"block6.png"},
    inventory_image = "block6.png",
    wield_image = "block6.png",
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {-0.01, -0.5, -0.01, 0.01, 0.5, 0.01}
    },
node_box = {
        type = "fixed",
        fixed = {-0.01, -0.5, -0.01, 0.01, 0.5, 0.01}
    },

    groups = {cracky=3},
      description="lamp",
     
})






minetest.register_abm(
    {nodenames = {"blocks:lamp4"},
    interval = 1,
    chance = 2,
    action = function(pos)
            pos.y=pos.y+1
            minetest.env:add_node(pos, {name="blocks:lamp5"})

    end,
})





minetest.register_abm(
    {nodenames = {"blocks:lamp5"},
    interval = 1,
    chance = 2,
    action = function(pos)
            pos.y=pos.y+1
            minetest.env:add_node(pos, {name="blocks:lamp6"})

    end,
})