Mods problem whith minetest 4.5

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

by dj22 » Post

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 » Post

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
Location: McKinney, Texas U.S.A.
Contact:

by Traxie21 » Post

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 » Post

this is the needle lamp mod sorry for not spelling it corectly




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 » Post

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

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

by dj22 » Post

trap door mod


Code: Select all

minetest.register_node("blocks:trap_door", {
    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="trap door",
on_punch = function(pos,node)
            minetest.env:add_node(pos, {name="blocks:trap_door1"})
    end, 

      
})









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

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

      
})

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

by dj22 » Post

my growable apple plant just punch it



Code: Select all

minetest.register_node("blocks:elivator1", {
    drawtype = "plantlike",
    tiles = {"grass.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="apple plant",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator2"})
                
end, 

      
})









minetest.register_node("blocks:elivator2", {
    drawtype = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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 = "plantlike",
    tiles = {"grass.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)
pos.y=pos.y+1
minetest.env:add_node(pos, {name="default:apple"})
                
end, 

      
})

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

by dj22 » Post

my animated growing plant mod

try it plz



Code: Select all

minetest.register_node("blocks:elivator1", {
    drawtype = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
    visual_scale = 0.3,
    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="apple plant",
on_punch = function(pos,node)
minetest.env:add_node(pos, {name="blocks:elivator2"})
                
end, 

      
})









minetest.register_node("blocks:elivator2", {
    drawtype = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
visual_scale = 0.4,
    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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
visual_scale = 0.5,
      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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
visual_scale = 0.6,
    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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
visual_scale = 0.7,
    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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
visual_scale = 0.8,
    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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
visual_scale = 0.9,
    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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
visual_scale = 1.0,
      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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
visual_scale = 1.0,
    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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
visual_scale = 1.0,
      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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
visual_scale = 1.0,
      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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
visual_scale = 1.0,
    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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
visual_scale = 1.0,
      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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
visual_scale = 1.0,
      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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
visual_scale = 1.0,
      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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
visual_scale = 1.0,
    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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
visual_scale = 1.0,
    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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
visual_scale = 1.0,
      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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
visual_scale = 1.0,
    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 = "plantlike",
    tiles = {"grass.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
visual_scale = 1.0,
      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)
pos.y=pos.y+1 
minetest.env:add_node(pos, {name="default:apple"})
                
end, 

      
})
Last edited by dj22 on Tue Mar 26, 2013 19:46, edited 1 time in total.

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

by dj22 » Post

my lamp mod it has the boddom and the lamp then a nother lamp to turn on and off lamp






Code: Select all

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

      }    
    },

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


    groups = {cracky=3},
      description="lamp boddom",
on_punch = function(pos,node)
pos.y=pos.y+1
minetest.env:add_node(pos, {name="blocks:lamp18"})
                
end, 

      
})










minetest.register_node("blocks:lamp18", {
    drawtype = "nodebox",
    tiles = {"default_steel_block.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      
visual_scale = 1.0,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {{ -0.2, -0.2, -0.2, 0.2, 0.3, 0.2},
    
                    { -0.1, -0.5, -0.1, 0.1, 1, 0.1}

      }    
    },

node_box = {
        type = "fixed",
        fixed = {{ -0.2, -0.2, -0.2, 0.2, 0.3, 0.2},
    
                    { -0.1, -0.5, -0.1, 0.1, 1, 0.1}
      }    
    },


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

      
})






minetest.register_node("blocks:lamp19", {
    drawtype = "nodebox",
    tiles = {"default_steel_block.png"},
    paramtype = "light",
    paramtype2 = "wallmounted",
    sunlight_propagates = true,
      light_source = 20,
visual_scale = 1.0,
    walkable = true,
      selection_box = {
        type = "fixed",
        fixed = {{ -0.2, -0.2, -0.2, 0.2, 0.3, 0.2},
    
                    { -0.1, -0.5, -0.1, 0.1, 1, 0.1}

      }    
    },

node_box = {
        type = "fixed",
        fixed = {{ -0.2, -0.2, -0.2, 0.2, 0.3, 0.2},
    
                    { -0.1, -0.5, -0.1, 0.1, 1, 0.1}
      }    
    },


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

      
})

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

by dj22 » Post

this is all my mods




[url][https://dbabcock.egnyte.com/SimpleUI/home.do#Files/0/Shared/Documentsnewultramineingbutton.zip[/url]
Last edited by dj22 on Sun Mar 31, 2013 14:37, edited 1 time in total.

rarkenin
Member
Posts: 668
Joined: Tue Nov 20, 2012 20:48

by rarkenin » Post

That link requires a login. Please use some free hosting space or something.
Admin pro tempore on 0gb.us:30000. Ask me if you have a problem, or just want help.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.

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

by dj22 » Post


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

by dj22 » Post

sorry people ive seen that the link requires u to sighn in but not any more



https://www.filesanywhere.com/fs/v.aspx ... 6571ae9ca5

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 8 guests