diff --git a/mapgen.lua b/mapgen.lua index bd14cf1..100f294 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -30,6 +30,7 @@ dofile(path .. "willow.lua") dofile(path .. "bigtree.lua") dofile(path .. "redwood_tree.lua") dofile(path .. "vinetree.lua") +dofile(path .. "sakura.lua") dofile(path .. "igloo.lua") --= Biomes @@ -280,7 +281,7 @@ if ethereal.glacier then end --sakura tree -add_schem({"ethereal:bamboo_dirt"}, 0.01, {"sakura"}, 7, 100, path .. "sakura.mts", ethereal.sakura) +add_schem({"ethereal:bamboo_dirt"}, 0.01, {"sakura"}, 7, 100, ethereal.sakura_tree, ethereal.sakura) -- redwood tree add_schem({"default:dirt_with_dry_grass"}, 0.0025, {"mesa"}, 1, 100, ethereal.redwood_tree, ethereal.mesa) diff --git a/sapling.lua b/sapling.lua index 9e2b8c0..904177c 100644 --- a/sapling.lua +++ b/sapling.lua @@ -124,9 +124,10 @@ end function ethereal.grow_sakura_tree(pos) if math.random(10) == 1 then - add_tree(pos, 4, 0, 3, path .. "sakura2.mts") + add_tree(pos, 4, 0, 3, ethereal.sakura_tree, + {{"ethereal:sakura_leaves", "ethereal:sakura_leaves2"}}) else - add_tree(pos, 4, 0, 3, path .. "sakura.mts") + add_tree(pos, 4, 0, 3, ethereal.sakura_tree) end end diff --git a/schematics/sakura.lua b/schematics/sakura.lua new file mode 100644 index 0000000..70a5271 --- /dev/null +++ b/schematics/sakura.lua @@ -0,0 +1,96 @@ +local T = {name = "ethereal:sakura_trunk", param1 = 255} +local P = {name = "ethereal:sakura_leaves", param1 = 255} +local W = {name = "ethereal:sakura_leaves2", param1 = 255} +local _ = {name = "air", param1 = 255} + +ethereal.sakura_tree = { + + size = {x=10, y=10, z=7}, + + yslice_prob = { + {ypos = 0, prob = 127}, + {ypos = 3, prob = 127}, + {ypos = 8, prob = 127}, + }, + + data = { + +_,_,_,_,_,_,_,_,_,_, +_,_,_,_,_,_,_,_,_,_, +_,_,_,_,_,_,_,_,_,_, +_,_,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,_,_, +_,_,_,_,_,_,_,_,_,_, +_,_,_,_,P,_,_,_,_,_, +_,_,_,P,P,P,_,_,_,_, +_,_,_,P,T,P,_,_,_,_, +_,_,P,P,T,P,P,P,P,_, +_,_,P,P,P,P,P,P,P,_, +_,_,P,P,P,P,_,P,P,_, +_,_,_,_,P,_,_,_,_,_, + +_,_,_,_,_,_,_,_,_,_, +_,_,_,_,_,_,_,_,_,_, +_,_,_,_,_,_,_,_,_,_, +_,_,_,_,_,_,_,_,_,_, +_,_,_,_,P,_,_,_,_,_, +_,_,_,P,P,P,_,_,_,_, +_,_,_,P,P,P,_,_,_,_, +_,_,_,P,P,P,_,_,_,_, +_,_,_,_,P,_,_,_,_,_, +_,_,_,_,_,_,_,_,_,_, + + }, +} diff --git a/schematics/sakura.mts b/schematics/sakura.mts deleted file mode 100644 index 27fe6c3..0000000 Binary files a/schematics/sakura.mts and /dev/null differ diff --git a/schematics/sakura2.mts b/schematics/sakura2.mts deleted file mode 100644 index dff812d..0000000 Binary files a/schematics/sakura2.mts and /dev/null differ