mirror of
https://github.com/minetest-mods/saveschems.git
synced 2024-12-23 01:10:32 +01:00
Add conversion of large cactus. Add apple tree corner nodes. Cover branch ends on jungletree and vary thickness of lower branches
This commit is contained in:
parent
85e8ed8f40
commit
d0d8bfe247
@ -1,4 +1,9 @@
|
||||
saveschems 0.1.3 by paramat
|
||||
saveschems 0.1.4 by paramat
|
||||
For Minetest 0.4.12dev and later
|
||||
Depends default
|
||||
Licenses: Code WTFPL. Schematics CC BY-SA
|
||||
|
||||
Add conversion of large cactus to mts
|
||||
Add corner nodes to apple tree
|
||||
Cover branch ends on jungletree and
|
||||
vary thickness of lower branches
|
||||
|
105
init.lua
105
init.lua
@ -28,17 +28,17 @@
|
||||
{name="air", prob=0},
|
||||
{name="air", prob=0},
|
||||
|
||||
{name="air", prob=0},
|
||||
{name="default:leaves", prob=191},
|
||||
{name="default:leaves", prob=223},
|
||||
{name="default:leaves", prob=255},
|
||||
{name="default:leaves", prob=223},
|
||||
{name="air", prob=0},
|
||||
{name="default:leaves", prob=191},
|
||||
|
||||
{name="air", prob=0},
|
||||
{name="default:leaves", prob=191},
|
||||
{name="default:leaves", prob=223},
|
||||
{name="default:leaves", prob=223},
|
||||
{name="default:leaves", prob=223},
|
||||
{name="air", prob=0},
|
||||
{name="default:leaves", prob=191},
|
||||
|
||||
{name="air", prob=0},
|
||||
{name="air", prob=0},
|
||||
@ -204,17 +204,17 @@
|
||||
{name="air", prob=0},
|
||||
{name="air", prob=0},
|
||||
|
||||
{name="air", prob=0},
|
||||
{name="default:leaves", prob=191},
|
||||
{name="default:leaves", prob=223},
|
||||
{name="default:leaves", prob=255},
|
||||
{name="default:leaves", prob=223},
|
||||
{name="air", prob=0},
|
||||
{name="default:leaves", prob=191},
|
||||
|
||||
{name="air", prob=0},
|
||||
{name="default:leaves", prob=191},
|
||||
{name="default:leaves", prob=223},
|
||||
{name="default:leaves", prob=223},
|
||||
{name="default:leaves", prob=223},
|
||||
{name="air", prob=0},
|
||||
{name="default:leaves", prob=191},
|
||||
|
||||
{name="air", prob=0},
|
||||
{name="air", prob=0},
|
||||
@ -230,8 +230,7 @@
|
||||
local apple_tree_serialized = minetest.serialize_schematic(apple_tree_data, mts, {})
|
||||
local path = minetest.get_modpath("saveschems") .. "/schematics"
|
||||
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
|
||||
filename = filename:gsub("\"", "\\\""):gsub("\\", "\\\\")
|
||||
local file, err = io.open(filename, "wb")
|
||||
if err == nil then
|
||||
file:write(apple_tree_serialized)
|
||||
@ -301,7 +300,7 @@ end
|
||||
|
||||
{name="default:jungleleaves", prob=191},
|
||||
{name="default:jungleleaves", prob=223},
|
||||
{name="default:jungleleaves", prob=223},
|
||||
{name="default:jungleleaves", prob=255},
|
||||
{name="default:jungleleaves", prob=223},
|
||||
{name="default:jungleleaves", prob=191},
|
||||
|
||||
@ -331,7 +330,7 @@ end
|
||||
|
||||
{name="default:jungleleaves", prob=191},
|
||||
{name="default:jungleleaves", prob=223},
|
||||
{name="default:jungleleaves", prob=223},
|
||||
{name="default:jungleleaves", prob=255},
|
||||
{name="default:jungleleaves", prob=223},
|
||||
{name="default:jungleleaves", prob=191},
|
||||
|
||||
@ -507,11 +506,11 @@ end
|
||||
{name="air", prob=0},
|
||||
{name="air", prob=0},
|
||||
|
||||
{name="default:jungleleaves", prob=223},
|
||||
{name="default:jungleleaves", prob=255},
|
||||
{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=255},
|
||||
|
||||
{name="default:jungleleaves", prob=223},
|
||||
{name="default:jungleleaves", prob=223},
|
||||
@ -537,11 +536,11 @@ end
|
||||
{name="air", prob=0},
|
||||
{name="air", prob=0},
|
||||
|
||||
{name="default:jungleleaves", prob=223},
|
||||
{name="default:jungleleaves", prob=255},
|
||||
{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=255},
|
||||
|
||||
{name="default:jungleleaves", prob=223},
|
||||
{name="default:jungleleaves", prob=255},
|
||||
@ -717,7 +716,7 @@ end
|
||||
|
||||
{name="default:jungleleaves", prob=191},
|
||||
{name="default:jungleleaves", prob=223},
|
||||
{name="default:jungleleaves", prob=223},
|
||||
{name="default:jungleleaves", prob=255},
|
||||
{name="default:jungleleaves", prob=223},
|
||||
{name="default:jungleleaves", prob=191},
|
||||
|
||||
@ -747,7 +746,7 @@ end
|
||||
|
||||
{name="default:jungleleaves", prob=191},
|
||||
{name="default:jungleleaves", prob=223},
|
||||
{name="default:jungleleaves", prob=223},
|
||||
{name="default:jungleleaves", prob=255},
|
||||
{name="default:jungleleaves", prob=223},
|
||||
{name="default:jungleleaves", prob=191},
|
||||
|
||||
@ -766,15 +765,15 @@ end
|
||||
yslice_prob = {
|
||||
{ypos=3, prob=127},
|
||||
{ypos=4, prob=127},
|
||||
{ypos=11, prob=63},
|
||||
{ypos=10, prob=127},
|
||||
{ypos=11, prob=127},
|
||||
},
|
||||
}
|
||||
|
||||
local jungle_tree_serialized = minetest.serialize_schematic(jungle_tree_data, mts, {})
|
||||
local path = minetest.get_modpath("saveschems") .. "/schematics"
|
||||
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
|
||||
filename = filename:gsub("\"", "\\\""):gsub("\\", "\\\\")
|
||||
local file, err = io.open(filename, "wb")
|
||||
if err == nil then
|
||||
file:write(jungle_tree_serialized)
|
||||
@ -1216,8 +1215,8 @@ end
|
||||
{name="air", prob=0},
|
||||
},
|
||||
yslice_prob = {
|
||||
{ypos=0, prob=127},
|
||||
{ypos=1, prob=127},
|
||||
{ypos=2, prob=127},
|
||||
{ypos=7, prob=127},
|
||||
{ypos=10, prob=127},
|
||||
},
|
||||
@ -1226,8 +1225,7 @@ end
|
||||
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
|
||||
filename = filename:gsub("\"", "\\\""):gsub("\\", "\\\\")
|
||||
local file, err = io.open(filename, "wb")
|
||||
if err == nil then
|
||||
file:write(pine_tree_serialized)
|
||||
@ -1235,3 +1233,62 @@ if err == nil then
|
||||
file:close()
|
||||
end
|
||||
|
||||
|
||||
local large_cactus_data = {
|
||||
size = {x=5, y=7, z=1},
|
||||
data = {
|
||||
{name="air", prob=0},
|
||||
{name="air", prob=0},
|
||||
{name="default:cactus", param2=20},
|
||||
{name="air", prob=0},
|
||||
{name="air", prob=0},
|
||||
|
||||
{name="air", prob=0},
|
||||
{name="air", prob=0},
|
||||
{name="default:cactus", param2=20},
|
||||
{name="air", prob=0},
|
||||
{name="air", prob=0},
|
||||
|
||||
{name="air", prob=0},
|
||||
{name="air", prob=0},
|
||||
{name="default:cactus", param2=20},
|
||||
{name="air", prob=0},
|
||||
{name="air", prob=0},
|
||||
|
||||
{name="default:cactus", param2=20},
|
||||
{name="default:cactus", param2=20},
|
||||
{name="default:cactus", param2=20},
|
||||
{name="default:cactus", param2=20},
|
||||
{name="default:cactus", param2=20},
|
||||
|
||||
{name="default:cactus", param2=20},
|
||||
{name="air", prob=0},
|
||||
{name="default:cactus", param2=20},
|
||||
{name="air", prob=0},
|
||||
{name="default:cactus", param2=20},
|
||||
|
||||
{name="default:cactus", prob=127, param2=20},
|
||||
{name="air", prob=0},
|
||||
{name="default:cactus", param2=20},
|
||||
{name="air", prob=0},
|
||||
{name="default:cactus", prob=127, param2=20},
|
||||
|
||||
{name="air", prob=0},
|
||||
{name="air", prob=0},
|
||||
{name="default:cactus", param2=20},
|
||||
{name="air", prob=0},
|
||||
{name="air", prob=0},
|
||||
},
|
||||
}
|
||||
|
||||
local large_cactus_serialized = minetest.serialize_schematic(large_cactus_data, mts, {})
|
||||
local path = minetest.get_modpath("saveschems") .. "/schematics"
|
||||
local filename = path .. "/large_cactus.mts"
|
||||
filename = filename:gsub("\"", "\\\""):gsub("\\", "\\\\")
|
||||
local file, err = io.open(filename, "wb")
|
||||
if err == nil then
|
||||
file:write(large_cactus_serialized)
|
||||
file:flush()
|
||||
file:close()
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user