Mods problem whith minetest 4.5

Yvan43
New member
 
Posts: 5
Joined: Sun Mar 24, 2013 19:33

Mods problem whith minetest 4.5

by Yvan43 » Sun Mar 24, 2013 19:41

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)
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Sun Mar 24, 2013 19:55

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
Last edited by PilzAdam on Sun Mar 24, 2013 19:55, edited 1 time in total.
 

Yvan43
New member
 
Posts: 5
Joined: Sun Mar 24, 2013 19:33

by Yvan43 » Sun Mar 24, 2013 20:57

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
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Sun Mar 24, 2013 21:21

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?
Last edited by Jeija on Sun Mar 24, 2013 21:21, edited 1 time in total.
Redstone for minetest: Mesecons (mesecons.net)
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48

by Traxie21 » Sun Mar 24, 2013 21:29

Jeija, I thought mods go in mods\minetest\<modname>
 

Yvan43
New member
 
Posts: 5
Joined: Sun Mar 24, 2013 19:33

by Yvan43 » Sun Mar 24, 2013 21:33

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
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48

by Traxie21 » Sun Mar 24, 2013 21:38

Are you naming the folders correctly?
For example, MOB Framework's folder should be /mobf/
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Sun Mar 24, 2013 21:41

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
Last edited by Jeija on Sun Mar 24, 2013 21:42, edited 1 time in total.
Redstone for minetest: Mesecons (mesecons.net)
 

Yvan43
New member
 
Posts: 5
Joined: Sun Mar 24, 2013 19:33

by Yvan43 » Sun Mar 24, 2013 22:12

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
 

Yvan43
New member
 
Posts: 5
Joined: Sun Mar 24, 2013 19:33

by Yvan43 » Sun Mar 24, 2013 22:39

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 ?
 

dj22
Member
 
Posts: 60
Joined: Wed Feb 27, 2013 18:37

by dj22 » Mon Mar 25, 2013 15:35

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,

     
})
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Mon Mar 25, 2013 15:39

Oh man... use the code tag of BBCode.
 

dj22
Member
 
Posts: 60
Joined: Wed Feb 27, 2013 18:37

by dj22 » Mon Mar 25, 2013 15:42

how
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Mon Mar 25, 2013 15:42

dj22 wrote:how

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

dj22
Member
 
Posts: 60
Joined: Wed Feb 27, 2013 18:37

by dj22 » Mon Mar 25, 2013 15:43

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,

     
})
 

dj22
Member
 
Posts: 60
Joined: Wed Feb 27, 2013 18:37

by dj22 » Mon Mar 25, 2013 15:46

yeah but i didnt know how to
 

dj22
Member
 
Posts: 60
Joined: Wed Feb 27, 2013 18:37

by dj22 » Mon Mar 25, 2013 16:11

ok
 

dj22
Member
 
Posts: 60
Joined: Wed Feb 27, 2013 18:37

by dj22 » Mon Mar 25, 2013 16:14

it doesnt work
 

dj22
Member
 
Posts: 60
Joined: Wed Feb 27, 2013 18:37

by dj22 » Mon Mar 25, 2013 16:21

cool
 

dj22
Member
 
Posts: 60
Joined: Wed Feb 27, 2013 18:37

by dj22 » Mon Mar 25, 2013 16:42

would an abm work under on_punch
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48

by Traxie21 » Mon Mar 25, 2013 17:23

The ABM would have to e registered separetly, but a function in it could be called or a variable updated.
 

dj22
Member
 
Posts: 60
Joined: Wed Feb 27, 2013 18:37

by dj22 » Mon Mar 25, 2013 19:44

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
 

dj22
Member
 
Posts: 60
Joined: Wed Feb 27, 2013 18:37

by dj22 » Tue Mar 26, 2013 12:29

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,

     
})
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48

by Traxie21 » Tue Mar 26, 2013 12:32

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!
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Tue Mar 26, 2013 12:34

What Traxie21 said, put your code in "code" tags (or just select it and click the "<>" icon).
 

dj22
Member
 
Posts: 60
Joined: Wed Feb 27, 2013 18:37

by dj22 » Tue Mar 26, 2013 12:44

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
 

dj22
Member
 
Posts: 60
Joined: Wed Feb 27, 2013 18:37

by dj22 » Tue Mar 26, 2013 13:00

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,

     
})
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48

by Traxie21 » Tue Mar 26, 2013 14:06

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)
 

dj22
Member
 
Posts: 60
Joined: Wed Feb 27, 2013 18:37

by dj22 » Tue Mar 26, 2013 15:11

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",
     
})
 

dj22
Member
 
Posts: 60
Joined: Wed Feb 27, 2013 18:37

by dj22 » Tue Mar 26, 2013 15:14

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,
})
 

Next

Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 7 guests

cron