saveschems/init.lua

1238 lines
32 KiB
Lua
Raw Normal View History

-- Schematic file format version 4
2015-04-28 20:54:29 +02:00
local apple_tree_data = {
size = {x=5, y=7, z=5},
data = {-- -2
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:leaves", prob=223},
{name="default:leaves", prob=255},
{name="default:leaves", prob=223},
{name="air", prob=0},
{name="air", prob=0},
{name="default:leaves", prob=223},
{name="default:leaves", prob=223},
{name="default:leaves", prob=223},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
2015-04-28 20:54:29 +02:00
-- -1
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:leaves", prob=223},
{name="default:apple", prob=15},
{name="default:tree", prob=191, param2=8, force_place = true},
{name="default:apple", prob=15},
{name="default:leaves", prob=223},
{name="default:leaves", prob=223},
{name="default:leaves", prob=255},
{name="default:leaves", prob=255},
{name="default:leaves", prob=255},
{name="default:leaves", prob=223},
{name="air", prob=0},
{name="default:leaves", prob=223},
{name="default:leaves", prob=223},
{name="default:leaves", prob=223},
{name="air", prob=0},
2015-04-28 20:54:29 +02:00
-- 0
{name="air", prob=0},
{name="air", prob=0},
{name="default:tree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:tree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:tree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:tree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="default:leaves", prob=255},
{name="default:tree", prob=191, param2=16, force_place = true},
{name="default:tree", prob=255, force_place = true},
{name="default:tree", prob=191, param2=12, force_place = true},
{name="default:leaves", prob=255},
{name="default:leaves", prob=223},
{name="default:leaves", prob=255},
{name="default:tree", prob=191, force_place = true},
{name="default:leaves", prob=255},
{name="default:leaves", prob=223},
{name="air", prob=0},
{name="default:leaves", prob=223},
{name="default:leaves", prob=255},
{name="default:leaves", prob=223},
{name="air", prob=0},
2015-04-28 20:54:29 +02:00
-- 1
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:leaves", prob=223},
{name="default:apple", prob=15},
{name="default:tree", prob=191, param2=8, force_place = true},
{name="default:apple", prob=15},
{name="default:leaves", prob=223},
{name="default:leaves", prob=223},
{name="default:leaves", prob=255},
{name="default:leaves", prob=255},
{name="default:leaves", prob=255},
{name="default:leaves", prob=223},
{name="air", prob=0},
{name="default:leaves", prob=223},
{name="default:leaves", prob=223},
{name="default:leaves", prob=223},
{name="air", prob=0},
2015-04-28 20:54:29 +02:00
-- 2
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:leaves", prob=223},
{name="default:leaves", prob=255},
{name="default:leaves", prob=223},
{name="air", prob=0},
{name="air", prob=0},
{name="default:leaves", prob=223},
{name="default:leaves", prob=223},
{name="default:leaves", prob=223},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
2015-04-28 20:54:29 +02:00
},
yslice_prob = {
{ypos=1, prob=127},
},
}
local apple_tree_serialized = minetest.serialize_schematic(apple_tree_data, mts, {})
local path = minetest.get_modpath("saveschems") .. "/schematics"
2015-04-28 20:54:29 +02:00
local filename = path .. "/apple_tree.mts"
filename = filename:gsub("\"", "\\\""):gsub("\\", "\\\\") -- escape any nasty characters
os.execute("mkdir \"" .. path .. "\"") -- create directory if it does not already exist
2015-04-28 20:54:29 +02:00
local file, err = io.open(filename, "wb")
if err == nil then
file:write(apple_tree_serialized)
file:flush()
file:close()
end
local jungle_tree_data = {
size = {x=5, y=17, z=5},
data = {
-- -2
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungleleaves", prob=191},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=191},
{name="default:jungleleaves", prob=191},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=191},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungleleaves", prob=191},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=191},
{name="default:jungleleaves", prob=191},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=191},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
2015-04-28 20:54:29 +02:00
-- -1
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungletree", prob=255},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungletree", prob=255},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungletree", prob=127},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=255},
{name="default:jungletree", prob=191, param2=8, force_place = true},
{name="default:jungleleaves", prob=255},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=255},
{name="default:jungletree", prob=191, param2=8, force_place = true},
{name="default:jungleleaves", prob=255},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=255},
{name="default:jungleleaves", prob=255},
{name="default:jungleleaves", prob=255},
{name="default:jungleleaves", prob=223},
{name="air", prob=0},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="air", prob=0},
2015-04-28 20:54:29 +02:00
-- 0
{name="air", prob=0},
{name="default:jungletree", prob=255},
{name="default:jungletree", prob=255, force_place = true},
{name="default:jungletree", prob=255},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungletree", prob=255},
{name="default:jungletree", prob=255, force_place = true},
{name="default:jungletree", prob=255},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungletree", prob=127},
{name="default:jungletree", prob=255, force_place = true},
{name="default:jungletree", prob=127},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungletree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungletree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungletree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungletree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungletree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungletree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungleleaves", prob=223},
{name="default:jungletree", prob=191, param2=16, force_place = true},
{name="default:jungletree", prob=255, force_place = true},
{name="default:jungletree", prob=191, param2=12, force_place = true},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungletree", prob=255, force_place = true},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungletree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungletree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungletree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungleleaves", prob=223},
{name="default:jungletree", prob=191, param2=16, force_place = true},
{name="default:jungletree", prob=255, force_place = true},
{name="default:jungletree", prob=191, param2=12, force_place = true},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=255},
{name="default:jungletree", prob=191, force_place = true},
{name="default:jungleleaves", prob=255},
{name="default:jungleleaves", prob=223},
{name="air", prob=0},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="air", prob=0},
2015-04-28 20:54:29 +02:00
-- 1
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungletree", prob=255},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungletree", prob=255},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungletree", prob=127},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=255},
{name="default:jungletree", prob=191, param2=8, force_place = true},
{name="default:jungleleaves", prob=255},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=255},
{name="default:jungletree", prob=191, param2=8, force_place = true},
{name="default:jungleleaves", prob=255},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=255},
{name="default:jungleleaves", prob=255},
{name="default:jungleleaves", prob=255},
{name="default:jungleleaves", prob=223},
{name="air", prob=0},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="air", prob=0},
2015-04-28 20:54:29 +02:00
-- 2
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungleleaves", prob=191},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=191},
{name="default:jungleleaves", prob=191},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=191},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:jungleleaves", prob=191},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=191},
{name="default:jungleleaves", prob=191},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=223},
{name="default:jungleleaves", prob=191},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
2015-04-28 20:54:29 +02:00
},
yslice_prob = {
{ypos=3, prob=127},
{ypos=4, prob=127},
{ypos=11, prob=63},
},
}
local jungle_tree_serialized = minetest.serialize_schematic(jungle_tree_data, mts, {})
local path = minetest.get_modpath("saveschems") .. "/schematics"
2015-04-28 20:54:29 +02:00
local filename = path .. "/jungle_tree.mts"
filename = filename:gsub("\"", "\\\""):gsub("\\", "\\\\") -- escape any nasty characters
os.execute("mkdir \"" .. path .. "\"") -- create directory if it does not already exist
2015-04-28 20:54:29 +02:00
local file, err = io.open(filename, "wb")
if err == nil then
file:write(jungle_tree_serialized)
file:flush()
file:close()
end
local pine_tree_data = {
2015-04-28 20:54:29 +02:00
size = {x=5, y=14, z=5},
data = {-- -2
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
2015-04-28 20:54:29 +02:00
-- -1
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="default:pinetree", prob=191, param2=8, force_place = true},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=255},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="default:pinetree", prob=191, param2=8, force_place = true},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=255},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="default:pinetree", prob=191, param2=8, force_place = true},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=255},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
2015-04-28 20:54:29 +02:00
-- 0
{name="air", prob=0},
{name="air", prob=0},
{name="default:pinetree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pinetree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pinetree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pinetree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pinetree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pine_needles", prob=255},
{name="default:pinetree", prob=191, param2=16, force_place = true},
{name="default:pinetree", prob=255, force_place = true},
{name="default:pinetree", prob=191, param2=12, force_place = true},
{name="default:pine_needles", prob=255},
{name="air", prob=0},
{name="default:pine_needles", prob=255},
{name="default:pinetree", prob=255, force_place = true},
{name="default:pine_needles", prob=255},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pinetree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pine_needles", prob=255},
{name="default:pinetree", prob=191, param2=16, force_place = true},
{name="default:pinetree", prob=255, force_place = true},
{name="default:pinetree", prob=191, param2=12, force_place = true},
{name="default:pine_needles", prob=255},
{name="air", prob=0},
{name="default:pine_needles", prob=255},
{name="default:pinetree", prob=255, force_place = true},
{name="default:pine_needles", prob=255},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pinetree", prob=255, force_place = true},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pine_needles", prob=255},
{name="default:pinetree", prob=191, param2=16, force_place = true},
{name="default:pinetree", prob=255, force_place = true},
{name="default:pinetree", prob=191, param2=12, force_place = true},
{name="default:pine_needles", prob=255},
{name="air", prob=0},
{name="default:pine_needles", prob=255},
{name="default:pinetree", prob=255, force_place = true},
{name="default:pine_needles", prob=255},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pine_needles", prob=255},
{name="air", prob=0},
{name="air", prob=0},
-- 1
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="default:pinetree", prob=191, param2=8, force_place = true},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=255},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="default:pinetree", prob=191, param2=8, force_place = true},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=255},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="default:pinetree", prob=191, param2=8, force_place = true},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=255},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
-- 2
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=255},
{name="default:pine_needles", prob=223},
{name="default:pine_needles", prob=223},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
{name="air", prob=0},
},
yslice_prob = {
{ypos=0, prob=127},
{ypos=1, prob=127},
{ypos=7, prob=127},
{ypos=10, prob=127},
},
}
local pine_tree_serialized = minetest.serialize_schematic(pine_tree_data, mts, {})
local path = minetest.get_modpath("saveschems") .. "/schematics"
local filename = path .. "/pine_tree.mts"
filename = filename:gsub("\"", "\\\""):gsub("\\", "\\\\") -- escape any nasty characters
os.execute("mkdir \"" .. path .. "\"") -- create directory if it does not already exist
local file, err = io.open(filename, "wb")
if err == nil then
file:write(pine_tree_serialized)
file:flush()
file:close()
end