2015-05-18 03:10:52 +02:00
|
|
|
-- 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
|
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="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
|
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="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
|
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
{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
|
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="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
|
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="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},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
local apple_tree_serialized = minetest.serialize_schematic(apple_tree_data, mts, {})
|
2015-04-29 20:57:56 +02:00
|
|
|
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
|
2015-05-18 03:10:52 +02:00
|
|
|
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
|
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="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
|
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
{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
|
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
{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
|
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
{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
|
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="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},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
local jungle_tree_serialized = minetest.serialize_schematic(jungle_tree_data, mts, {})
|
2015-04-29 20:57:56 +02:00
|
|
|
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
|
2015-05-18 03:10:52 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2015-04-29 20:57:56 +02:00
|
|
|
local pine_tree_data = {
|
2015-04-28 20:54:29 +02:00
|
|
|
size = {x=5, y=14, z=5},
|
|
|
|
data = {-- -2
|
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="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
|
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="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
|
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
{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},
|
2015-04-29 20:57:56 +02:00
|
|
|
|
2015-05-06 00:20:09 +02:00
|
|
|
-- 1
|
2015-04-29 20:57:56 +02:00
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="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-29 20:57:56 +02:00
|
|
|
|
2015-05-06 00:20:09 +02:00
|
|
|
-- 2
|
2015-04-29 20:57:56 +02:00
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="air", prob=0},
|
|
|
|
{name="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-29 20:57:56 +02:00
|
|
|
},
|
|
|
|
yslice_prob = {
|
|
|
|
{ypos=0, prob=127},
|
|
|
|
{ypos=1, prob=127},
|
|
|
|
{ypos=7, prob=127},
|
|
|
|
{ypos=10, prob=127},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2015-05-18 03:10:52 +02:00
|
|
|
local pine_tree_serialized = minetest.serialize_schematic(pine_tree_data, mts, {})
|
2015-04-29 20:57:56 +02:00
|
|
|
local path = minetest.get_modpath("saveschems") .. "/schematics"
|
2015-05-06 00:20:09 +02:00
|
|
|
local filename = path .. "/pine_tree.mts"
|
2015-04-29 20:57:56 +02:00
|
|
|
filename = filename:gsub("\"", "\\\""):gsub("\\", "\\\\") -- escape any nasty characters
|
2015-05-18 03:10:52 +02:00
|
|
|
os.execute("mkdir \"" .. path .. "\"") -- create directory if it does not already exist
|
2015-04-29 20:57:56 +02:00
|
|
|
local file, err = io.open(filename, "wb")
|
|
|
|
if err == nil then
|
2015-05-06 00:20:09 +02:00
|
|
|
file:write(pine_tree_serialized)
|
2015-04-29 20:57:56 +02:00
|
|
|
file:flush()
|
|
|
|
file:close()
|
|
|
|
end
|
|
|
|
|