pos.y = pos.y + 1
minetest.add_node(pos, {name="beacon:bluebase"})
pos.y = pos.y + 1
minetest.add_node(pos, {name="beacon:bluebeam"})
pos.y = pos.y + 1
minetest.add_node(pos, {name="beacon:bluebeam"})
pos.y = pos.y + 1
minetest.add_node(pos, {name="beacon:bluebeam"})
pos.y = pos.y + 1
minetest.add_node(pos, {name="beacon:bluebeam"})
pos.y = pos.y + 1
minetest.add_node(pos, {name="beacon:bluebeam"})
pos.y = pos.y + 1
minetest.add_node(pos, {name="beacon:bluebeam"})
pos.y = pos.y + 1
minetest.add_node(pos, {name="beacon:bluebeam"})
pos.y = pos.y + 1
minetest.add_node(pos, {name="beacon:bluebeam"})
pos.y = pos.y + 1
minetest.add_node(pos, {name="beacon:bluebeam"})
pos.y = pos.y + 1
minetest.add_node(pos, {name="beacon:bluebeam"})
pos.y = pos.y + 1
minetest.add_node(pos, {name="beacon:bluebeam"})
pos.y = pos.y + 1
minetest.add_node(pos, {name="beacon:bluebeam"})
………
pos.y = pos.y + 1
minetest.add_node(pos, {name="beacon:bluebase"})
for i=1,150 do
minetest.add_node({x=pos.x, y=pos.y+i, z=pos.z}, {name="beacon:bluebeam"})
end
for i=1,151 do
minetest.remove_node({x=pos.x, y=pos.y+i, z=pos.z})
end
AgentNagel42 wrote:I am not all that good with Lua, I often tend to just copy code from other mods. This code is awesome! thanks this will probably be in the next update
AgentNagel42 wrote:I am not all that good with Lua, I often tend to just copy code from other mods. This code is awesome! thanks this will probably be in the next update
--Blue Beam
minetest.register_node("beacon:bluebase", {
visual_scale = 1.0,
drawtype = "plantlike",
tiles = {"bluebase.png"},
paramtype = "light",
walkable = false,
diggable = false,
pointable = false,
light_source = 13,
groups = {not_in_creative_inventory=1}
})
Wuzzy wrote:PS: wilkgr76, your avatar is … GRRR! xD
xisd wrote:I also tried to add a kind of force field around the blue beacon area but I deactivated to option for now because placement and removal doesn't work that well.
Users browsing this forum: Bing [Bot] and 57 guests