saveschems/init.lua

1248 lines
45 KiB
Lua
Raw Normal View History

2015-04-28 20:54:29 +02:00
local apple_tree_data = {
size = {x=5, y=7, z=5},
data = {-- -2
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:leaves", param1=255, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
-- -1
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:apple", param1=15, param2=0},
{name="default:tree", param1=127, param2=8},
{name="default:apple", param1=15, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:leaves", param1=255, param2=0},
{name="default:leaves", param1=255, param2=0},
{name="default:leaves", param1=255, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
-- 0
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:tree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:tree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:tree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:tree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:leaves", param1=255, param2=0},
{name="default:tree", param1=127, param2=16},
{name="default:tree", param1=255, param2=0},
{name="default:tree", param1=127, param2=12},
{name="default:leaves", param1=255, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:leaves", param1=255, param2=0},
{name="default:tree", param1=191, param2=0},
{name="default:leaves", param1=255, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:leaves", param1=255, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
-- 1
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:apple", param1=15, param2=0},
{name="default:tree", param1=127, param2=4},
{name="default:apple", param1=15, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:leaves", param1=255, param2=0},
{name="default:leaves", param1=255, param2=0},
{name="default:leaves", param1=255, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
-- 2
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:leaves", param1=255, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="default:leaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
},
yslice_prob = {
{ypos=1, prob=127},
},
}
local apple_tree_serialized = minetest.serialize_schematic(
apple_tree_data,
mts,
{register_after_load = false}
)
local path = minetest.get_modpath("saveschems") .. "/schems"
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
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="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
-- -1
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=127, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=255, param2=0},
{name="default:jungletree", param1=127, param2=8},
{name="default:jungleleaves", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=255, param2=0},
{name="default:jungletree", param1=127, param2=8},
{name="default:jungleleaves", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=255, param2=0},
{name="default:jungleleaves", param1=255, param2=0},
{name="default:jungleleaves", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
-- 0
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=127, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="default:jungletree", param1=127, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungletree", param1=127, param2=16},
{name="default:jungletree", param1=255, param2=0},
{name="default:jungletree", param1=127, param2=12},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungletree", param1=127, param2=16},
{name="default:jungletree", param1=255, param2=0},
{name="default:jungletree", param1=127, param2=12},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=255, param2=0},
{name="default:jungletree", param1=191, param2=0},
{name="default:jungleleaves", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
-- 1
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungletree", param1=127, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=255, param2=0},
{name="default:jungletree", param1=127, param2=4},
{name="default:jungleleaves", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=255, param2=0},
{name="default:jungletree", param1=127, param2=4},
{name="default:jungleleaves", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=255, param2=0},
{name="default:jungleleaves", param1=255, param2=0},
{name="default:jungleleaves", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
-- 2
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="default:jungleleaves", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
},
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,
{register_after_load = false}
)
local path = minetest.get_modpath("saveschems") .. "/schems"
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
local file, err = io.open(filename, "wb")
if err == nil then
file:write(jungle_tree_serialized)
file:flush()
file:close()
end
pine_tree_data = {
size = {x=5, y=14, z=5},
data = {-- -2
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
-- -1
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pinetree", param1=127, param2=8},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pinetree", param1=127, param2=8},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pinetree", param1=127, param2=8},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
-- 0
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pinetree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pinetree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pinetree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pinetree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pinetree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pinetree", param1=127, param2=16},
{name="default:pinetree", param1=255, param2=0},
{name="default:pinetree", param1=127, param2=12},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="default:pinetree", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pinetree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pinetree", param1=127, param2=16},
{name="default:pinetree", param1=255, param2=0},
{name="default:pinetree", param1=127, param2=12},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="default:pinetree", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pinetree", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pinetree", param1=127, param2=16},
{name="default:pinetree", param1=255, param2=0},
{name="default:pinetree", param1=127, param2=12},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="default:pinetree", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
-- 1
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pinetree", param1=127, param2=4},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pinetree", param1=127, param2=4},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pinetree", param1=127, param2=4},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="default:pine_needles", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
-- 2
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="default:pine_needles", param1=223, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=0},
{name="ignore", param1=255, param2=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,
{register_after_load = false}
)
local path = minetest.get_modpath("saveschems") .. "/schems"
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