Skip to content

Instantly share code, notes, and snippets.

@PilzAdam
Created July 3, 2013 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PilzAdam/5921687 to your computer and use it in GitHub Desktop.
Save PilzAdam/5921687 to your computer and use it in GitHub Desktop.
minetest.after(5, function()
local tab = {
{pos={x=-1,y=8,z=-2}, prob=186},
{pos={x=0,y=8,z=-2}, prob=186},
{pos={x=1,y=8,z=-2}, prob=186},
{pos={x=1,y=9,z=-2}, prob=186},
{pos={x=0,y=9,z=-2}, prob=186},
{pos={x=-1,y=9,z=-2}, prob=186},
{pos={x=-1,y=10,z=-2}, prob=186},
{pos={x=0,y=10,z=-2}, prob=186},
{pos={x=1,y=10,z=-2}, prob=186},
{pos={x=2,y=8,z=-1}, prob=186},
{pos={x=2,y=8,z=0}, prob=186},
{pos={x=2,y=8,z=1}, prob=186},
{pos={x=2,y=9,z=1}, prob=186},
{pos={x=2,y=9,z=0}, prob=186},
{pos={x=2,y=9,z=-1}, prob=186},
{pos={x=2,y=10,z=-1}, prob=186},
{pos={x=2,y=10,z=0}, prob=186},
{pos={x=2,y=10,z=1}, prob=186},
{pos={x=1,y=8,z=2}, prob=186},
{pos={x=0,y=8,z=2}, prob=186},
{pos={x=-1,y=8,z=2}, prob=186},
{pos={x=-1,y=9,z=2}, prob=186},
{pos={x=0,y=9,z=2}, prob=186},
{pos={x=1,y=9,z=2}, prob=186},
{pos={x=1,y=10,z=2}, prob=186},
{pos={x=0,y=10,z=2}, prob=186},
{pos={x=-1,y=10,z=2}, prob=186},
{pos={x=-2,y=8,z=1}, prob=186},
{pos={x=-2,y=8,z=0}, prob=186},
{pos={x=-2,y=8,z=-1}, prob=186},
{pos={x=-2,y=9,z=-1}, prob=186},
{pos={x=-2,y=9,z=0}, prob=186},
{pos={x=-2,y=9,z=1}, prob=186},
{pos={x=-2,y=10,z=1}, prob=186},
{pos={x=-2,y=10,z=0}, prob=186},
{pos={x=-2,y=10,z=-1}, prob=186},
{pos={x=-2,y=8,z=-2}, prob=186},
{pos={x=-2,y=9,z=-2}, prob=186},
{pos={x=-2,y=10,z=-2}, prob=186},
{pos={x=-2,y=8,z=2}, prob=186},
{pos={x=-2,y=9,z=2}, prob=186},
{pos={x=-2,y=10,z=2}, prob=186},
{pos={x=2,y=8,z=2}, prob=186},
{pos={x=2,y=9,z=2}, prob=186},
{pos={x=2,y=10,z=2}, prob=186},
{pos={x=2,y=8,z=-2}, prob=186},
{pos={x=2,y=9,z=-2}, prob=186},
{pos={x=2,y=10,z=-2}, prob=186},
{pos={x=2,y=11,z=2}, prob=186},
{pos={x=1,y=11,z=2}, prob=186},
{pos={x=0,y=11,z=2}, prob=186},
{pos={x=-1,y=11,z=2}, prob=186},
{pos={x=-2,y=11,z=2}, prob=186},
{pos={x=-2,y=11,z=1}, prob=186},
{pos={x=-1,y=11,z=1}, prob=186},
{pos={x=0,y=11,z=1}, prob=186},
{pos={x=1,y=11,z=1}, prob=186},
{pos={x=2,y=11,z=1}, prob=186},
{pos={x=2,y=11,z=0}, prob=186},
{pos={x=1,y=11,z=0}, prob=186},
{pos={x=0,y=11,z=0}, prob=186},
{pos={x=-1,y=11,z=0}, prob=186},
{pos={x=-2,y=11,z=0}, prob=186},
{pos={x=-2,y=11,z=-1}, prob=186},
{pos={x=-1,y=11,z=-1}, prob=186},
{pos={x=0,y=11,z=-1}, prob=186},
{pos={x=1,y=11,z=-1}, prob=186},
{pos={x=2,y=11,z=-1}, prob=186},
{pos={x=2,y=11,z=-2}, prob=186},
{pos={x=1,y=11,z=-2}, prob=186},
{pos={x=0,y=11,z=-2}, prob=186},
{pos={x=-1,y=11,z=-2}, prob=186},
{pos={x=-2,y=11,z=-2}, prob=186},
}
for x=-2,2 do
for y=2,11 do
for z=-2,2 do
if minetest.get_node({x=x,y=y,z=z}).name == "air" then
table.insert(tab, {pos={x=x,y=y,z=z},prob=-1})
end
end
end
end
minetest.create_schematic({x=2, y=6, z=2}, {x=-2, y=11, z=-2}, tab, "/home/adam/Minetest/minetest/games/pilztest/mods/base/schematics/base_tree.mts")
--minetest.place_schematic({x=0,y=00,z=-18}, "/home/adam/Minetest/minetest/games/pilztest/mods/base/schematics/base_tree.mts")
print("Created Schematic")
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment