Mods problem whith minetest 4.5
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,
})
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)
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)
My Essential Server Modpack: ServerExtended
Maintainer of the Minitest Game
[0.4.6-git] SunriseTest Minecraft-Like Hardcore Server
My Kindle broke... Online time will drop significantly.
Maintainer of the Minitest Game
[0.4.6-git] SunriseTest Minecraft-Like Hardcore Server
My Kindle broke... Online time will drop significantly.
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",
})
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,
})
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,
})
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,
})
my animated growing plant mod
try it plz
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.
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,
})
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.
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.
sorry people ive seen that the link requires u to sighn in but not any more
https://www.filesanywhere.com/fs/v.aspx ... 6571ae9ca5
https://www.filesanywhere.com/fs/v.aspx ... 6571ae9ca5
Who is online
Users browsing this forum: Google [Bot] and 8 guests