Unnamed Minor Update
This commit is contained in:
parent
699dd1c230
commit
6770730d38
@ -1,5 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## [Dec 1st] Unnamed Minor Update
|
||||
|
||||
- New Birch Log texture
|
||||
- Fix various biomes not generating
|
||||
- Oceans now use Sand instead of Gravel
|
||||
- Seperate code for small decorations from trees.lua into flowers.lua
|
||||
|
||||
## [Dec 1st] Bugfix Update
|
||||
|
||||
- Increase `normal` biome height
|
||||
|
@ -151,18 +151,18 @@ PyuTest.register_overworld_biome = function(name, type, opts, only_base)
|
||||
|
||||
nopts["node_water"] = nopts["node_water"] or "pyutest_blocks:water_source"
|
||||
nopts["node_river_water"] = nopts["node_river_water"] or "pyutest_blocks:river_water_source"
|
||||
nopts["node_riverbed"] = nopts["node_riverbed"] or "pyutest_blocks:gravel_block"
|
||||
nopts["node_riverbed"] = nopts["node_riverbed"] or "pyutest_blocks:sand_block"
|
||||
nopts["node_sand"] = nopts["node_sand"] or "pyutest_blocks:sand_block"
|
||||
nopts["node_sandstone"] = nopts["node_sandstone"] or "pyutest_blocks:sandstone_block"
|
||||
|
||||
nopts["_pyutest_biome_flowering"] = nopts["_pyutest_biome_flowering"] or false
|
||||
nopts["_pyutest_biome_flowering_extra"] = nopts["_pyutest_biome_flowering_extra"] or false
|
||||
|
||||
if nopts["enable_beaches"] == nil then
|
||||
nopts["enable_beaches"] = true
|
||||
if nopts["_enable_beaches"] == nil then
|
||||
nopts["_enable_beaches"] = true
|
||||
end
|
||||
|
||||
local y_min = (nopts["enable_beaches"] and not only_base) and nopts["y_min"] + 2 or nopts["y_min"]
|
||||
local y_min = (nopts["_enable_beaches"] and not only_base) and nopts["y_min"] + 2 or nopts["y_min"]
|
||||
|
||||
core.register_biome(PyuTest.util.tableconcat(nopts, {
|
||||
_pyutest_biome_type = type,
|
||||
@ -173,7 +173,7 @@ PyuTest.register_overworld_biome = function(name, type, opts, only_base)
|
||||
return
|
||||
end
|
||||
|
||||
if nopts["enable_beaches"] then
|
||||
if nopts["_enable_beaches"] then
|
||||
core.register_biome(PyuTest.util.tableconcat(nopts, {
|
||||
name = name .. "_beach",
|
||||
y_max = y_min,
|
||||
|
@ -13,6 +13,7 @@ if PyuTest.is_flat() then
|
||||
return
|
||||
end
|
||||
|
||||
-- "Just right"
|
||||
PyuTest.register_overworld_biome("Grassland", PyuTest.BIOME_TYPES.NORMAL, {
|
||||
node_top = "pyutest_grass:grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
@ -21,11 +22,81 @@ PyuTest.register_overworld_biome("Grassland", PyuTest.BIOME_TYPES.NORMAL, {
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 50,
|
||||
humidity_point = 40,
|
||||
humidity_point = 60,
|
||||
|
||||
_pyutest_biome_flowering = true
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("Forest", PyuTest.BIOME_TYPES.NORMAL, {
|
||||
node_top = "pyutest_grass:dark_grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 50,
|
||||
humidity_point = 66,
|
||||
|
||||
_pyutest_biome_flowering = true
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("BirchForest", PyuTest.BIOME_TYPES.NORMAL, {
|
||||
node_top = "pyutest_grass:grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 50,
|
||||
humidity_point = 68,
|
||||
|
||||
_pyutest_biome_flowering = true
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("OldGrowthBirchForest", PyuTest.BIOME_TYPES.NORMAL, {
|
||||
node_top = "pyutest_grass:grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 50,
|
||||
humidity_point = 70,
|
||||
|
||||
_pyutest_biome_flowering = true,
|
||||
_pyutest_biome_flowering_extra = true
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("Meadow", PyuTest.BIOME_TYPES.NORMAL, {
|
||||
node_top = "pyutest_grass:dark_grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
depth_filler = 4,
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 50,
|
||||
humidity_point = 65,
|
||||
|
||||
_pyutest_biome_flowering = true,
|
||||
_pyutest_biome_flowering_extra = true
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("CherryGrove", PyuTest.BIOME_TYPES.NORMAL, {
|
||||
node_top = "pyutest_grass:grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 50,
|
||||
humidity_point = 60,
|
||||
|
||||
_pyutest_biome_flowering = true,
|
||||
_pyutest_biome_flowering_extra = true
|
||||
})
|
||||
|
||||
-- Warm, Hot
|
||||
PyuTest.register_overworld_biome("Desert", PyuTest.BIOME_TYPES.HOT, {
|
||||
node_top = "pyutest_blocks:sand_block",
|
||||
node_filler = "pyutest_blocks:sandstone_block",
|
||||
@ -37,9 +108,106 @@ PyuTest.register_overworld_biome("Desert", PyuTest.BIOME_TYPES.HOT, {
|
||||
heat_point = 80,
|
||||
humidity_point = 10,
|
||||
|
||||
enable_beaches = false
|
||||
_enable_beaches = false
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("Savanna", PyuTest.BIOME_TYPES.WARM, {
|
||||
node_top = "pyutest_grass:savanna_grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 75,
|
||||
humidity_point = 10
|
||||
})
|
||||
|
||||
-- Decent
|
||||
PyuTest.register_overworld_biome("MushroomFields", PyuTest.BIOME_TYPES.NORMAL, {
|
||||
node_top = "pyutest_blocks:mycelium_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 30,
|
||||
humidity_point = 96,
|
||||
|
||||
_enable_beaches = false,
|
||||
_pyutest_fog_distance = 60,
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("LargeMushroomForest", PyuTest.BIOME_TYPES.NORMAL, {
|
||||
node_top = "pyutest_blocks:mycelium_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 30,
|
||||
humidity_point = 96,
|
||||
|
||||
_enable_beaches = false,
|
||||
_pyutest_fog_distance = 60,
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("Swamp", PyuTest.BIOME_TYPES.WETLAND, {
|
||||
node_top = "pyutest_grass:swampy_grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.lowland,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 30,
|
||||
humidity_point = 88,
|
||||
|
||||
_enable_beaches = false,
|
||||
_pyutest_fog_distance = 60,
|
||||
})
|
||||
|
||||
-- Chilly
|
||||
PyuTest.register_overworld_biome("Taiga", PyuTest.BIOME_TYPES.CHILLY, {
|
||||
node_top = "pyutest_grass:dark_grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 20,
|
||||
humidity_point = 42,
|
||||
|
||||
_pyutest_biome_flowering = true
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("AspenForest", PyuTest.BIOME_TYPES.CHILLY, {
|
||||
node_top = "pyutest_grass:aspen_grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 20,
|
||||
humidity_point = 50,
|
||||
|
||||
_pyutest_biome_flowering = true,
|
||||
_pyutest_fog_distance = 60,
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("RedwoodForest", PyuTest.BIOME_TYPES.CHILLY, {
|
||||
node_top = "pyutest_blocks:podzol_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 20,
|
||||
humidity_point = 58,
|
||||
|
||||
_pyutest_biome_flowering = true,
|
||||
_pyutest_fog_distance = 60,
|
||||
})
|
||||
|
||||
-- STUPID COLD, CANADA LEVELS OF COLD
|
||||
PyuTest.register_overworld_biome("FrozenPlains", PyuTest.BIOME_TYPES.COLD, {
|
||||
node_dust = "pyutest_blocks:snow_carpet",
|
||||
node_top = "pyutest_blocks:snow_block",
|
||||
@ -52,62 +220,10 @@ PyuTest.register_overworld_biome("FrozenPlains", PyuTest.BIOME_TYPES.COLD, {
|
||||
depth_water_top = 1,
|
||||
|
||||
heat_point = 5,
|
||||
humidity_point = 60,
|
||||
humidity_point = 69,
|
||||
_pyutest_fog_distance = 80,
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("Savanna", PyuTest.BIOME_TYPES.WARM, {
|
||||
node_top = "pyutest_grass:savanna_grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 70,
|
||||
humidity_point = 15
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("Forest", PyuTest.BIOME_TYPES.NORMAL, {
|
||||
node_top = "pyutest_grass:dark_grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 50,
|
||||
humidity_point = 60,
|
||||
|
||||
_pyutest_biome_flowering = true
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("MushroomFields", PyuTest.BIOME_TYPES.NORMAL, {
|
||||
node_top = "pyutest_blocks:mycelium_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 30,
|
||||
humidity_point = 90,
|
||||
|
||||
enable_beaches = false,
|
||||
_pyutest_fog_distance = 40,
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("LargeMushroomForest", PyuTest.BIOME_TYPES.NORMAL, {
|
||||
node_top = "pyutest_blocks:mycelium_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 30,
|
||||
humidity_point = 90,
|
||||
|
||||
enable_beaches = false,
|
||||
_pyutest_fog_distance = 40,
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("SnowyForest", PyuTest.BIOME_TYPES.COLD, {
|
||||
node_dust = "pyutest_blocks:snow_carpet",
|
||||
node_top = "pyutest_blocks:snow_block",
|
||||
@ -120,107 +236,10 @@ PyuTest.register_overworld_biome("SnowyForest", PyuTest.BIOME_TYPES.COLD, {
|
||||
depth_water_top = 5,
|
||||
|
||||
heat_point = 5,
|
||||
humidity_point = 60,
|
||||
humidity_point = 75,
|
||||
_pyutest_fog_distance = 80,
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("Taiga", PyuTest.BIOME_TYPES.CHILLY, {
|
||||
node_top = "pyutest_grass:dark_grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 20,
|
||||
humidity_point = 60,
|
||||
|
||||
_pyutest_biome_flowering = true
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("CherryGrove", PyuTest.BIOME_TYPES.NORMAL, {
|
||||
node_top = "pyutest_grass:grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 50,
|
||||
humidity_point = 70,
|
||||
|
||||
_pyutest_biome_flowering = true,
|
||||
_pyutest_biome_flowering_extra = true
|
||||
})
|
||||
|
||||
|
||||
PyuTest.register_overworld_biome("BirchForest", PyuTest.BIOME_TYPES.NORMAL, {
|
||||
node_top = "pyutest_grass:grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 50,
|
||||
humidity_point = 60,
|
||||
|
||||
_pyutest_biome_flowering = true
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("OldGrowthBirchForest", PyuTest.BIOME_TYPES.NORMAL, {
|
||||
node_top = "pyutest_grass:grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 50,
|
||||
humidity_point = 60,
|
||||
|
||||
_pyutest_biome_flowering = true,
|
||||
_pyutest_biome_flowering_extra = true
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("AspenForest", PyuTest.BIOME_TYPES.CHILLY, {
|
||||
node_top = "pyutest_grass:aspen_grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 20,
|
||||
humidity_point = 50,
|
||||
|
||||
_pyutest_biome_flowering = true,
|
||||
_pyutest_fog_distance = 40,
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("RedwoodForest", PyuTest.BIOME_TYPES.CHILLY, {
|
||||
node_top = "pyutest_blocks:podzol_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 20,
|
||||
humidity_point = 50,
|
||||
|
||||
_pyutest_biome_flowering = true,
|
||||
_pyutest_fog_distance = 40,
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("Swamp", PyuTest.BIOME_TYPES.WETLAND, {
|
||||
node_top = "pyutest_grass:swampy_grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.lowland,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 30,
|
||||
humidity_point = 80,
|
||||
|
||||
enable_beaches = false,
|
||||
_pyutest_fog_distance = 40,
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("IceSpikes", PyuTest.BIOME_TYPES.COLD, {
|
||||
node_top = "pyutest_blocks:ice_block",
|
||||
node_filler = "pyutest_blocks:ice_block",
|
||||
@ -232,20 +251,6 @@ PyuTest.register_overworld_biome("IceSpikes", PyuTest.BIOME_TYPES.COLD, {
|
||||
depth_water_top = 5,
|
||||
|
||||
heat_point = 5,
|
||||
humidity_point = 60
|
||||
})
|
||||
|
||||
PyuTest.register_overworld_biome("Meadow", PyuTest.BIOME_TYPES.NORMAL, {
|
||||
node_top = "pyutest_grass:dark_grass_block",
|
||||
node_filler = "pyutest_blocks:dirt_block",
|
||||
depth_filler = 4,
|
||||
|
||||
y_max = PyuTest.OVERWORLD_BIOME_TOPS.normal,
|
||||
y_min = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
|
||||
heat_point = 50,
|
||||
humidity_point = 60,
|
||||
|
||||
_pyutest_biome_flowering = true,
|
||||
_pyutest_biome_flowering_extra = true
|
||||
humidity_point = 62,
|
||||
_pyutest_fog_distance = 80,
|
||||
})
|
||||
|
72
mods/WORLD/pyutest_overworld/flowers.lua
Normal file
72
mods/WORLD/pyutest_overworld/flowers.lua
Normal file
@ -0,0 +1,72 @@
|
||||
core.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = { "group:grass" },
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.009,
|
||||
biomes = PyuTest.get_flowering_biomes(),
|
||||
decoration = PyuTest.registered_flowers
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = { "group:grass" },
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.032,
|
||||
biomes = PyuTest.get_extra_flowering_biomes(),
|
||||
decoration = PyuTest.registered_flowers
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = { "group:grass" },
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.0018,
|
||||
biomes = { "Grassland" },
|
||||
decoration = "pyutest_blocks:haybale_block"
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = { "pyutest_blocks:dirt_block", "pyutest_blocks:sand_block" },
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.019,
|
||||
biomes = { "Desert" },
|
||||
decoration = "pyutest_flowers:deadbush"
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = { "group:sand" },
|
||||
fill_ratio = 0.0009,
|
||||
sidelen = 16,
|
||||
biomes = { "Desert" },
|
||||
decoration = "pyutest_flowers:cactus",
|
||||
height = 2,
|
||||
height_max = 5
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
deco_type = "simple",
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.03,
|
||||
place_on = { "pyutest_blocks:water_source" },
|
||||
biomes = { "Swamp", "Swamp_ocean" },
|
||||
y_max = PyuTest.OVERWORLD_TOP,
|
||||
y_min = 0,
|
||||
decoration = "pyutest_flowers:lilypad",
|
||||
flags = "liquid_surface"
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
deco_type = "simple",
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.04,
|
||||
place_on = { "group:sugarcane_spawn_on" },
|
||||
decoration = "pyutest_flowers:sugarcane",
|
||||
y_max = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
y_min = 0,
|
||||
spawn_by = { "pyutest_blocks:water_source" },
|
||||
num_spawn_by = 1,
|
||||
height = 1,
|
||||
height_max = 4
|
||||
})
|
@ -6,4 +6,5 @@ if not PyuTest.is_flat() then
|
||||
dofile(modpath .. "/features.lua")
|
||||
dofile(modpath .. "/structures.lua")
|
||||
dofile(modpath .. "/trees.lua")
|
||||
dofile(modpath .. "/flowers.lua")
|
||||
end
|
||||
|
@ -1,87 +1,3 @@
|
||||
-- plants and other small decorations
|
||||
core.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = { "group:grass" },
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.009,
|
||||
biomes = PyuTest.get_flowering_biomes(),
|
||||
decoration = PyuTest.registered_flowers
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = { "group:grass" },
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.032,
|
||||
biomes = PyuTest.get_extra_flowering_biomes(),
|
||||
decoration = PyuTest.registered_flowers
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = { "group:grass" },
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.048,
|
||||
biomes = { "Grassland" },
|
||||
decoration = "pyutest_grass:grass_plant"
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = { "group:grass" },
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.0018,
|
||||
biomes = { "Grassland" },
|
||||
decoration = "pyutest_blocks:haybale_block"
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = { "pyutest_blocks:dirt_block", "pyutest_blocks:sand_block" },
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.019,
|
||||
biomes = { "Desert" },
|
||||
decoration = "pyutest_flowers:deadbush"
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = { "group:sand" },
|
||||
fill_ratio = 0.0009,
|
||||
sidelen = 16,
|
||||
biomes = { "Desert" },
|
||||
decoration = "pyutest_flowers:cactus",
|
||||
height = 2,
|
||||
height_max = 5
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
deco_type = "simple",
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.03,
|
||||
place_on = { "pyutest_blocks:water_source" },
|
||||
biomes = { "Swamp", "Swamp_ocean" },
|
||||
y_max = PyuTest.OVERWORLD_TOP,
|
||||
y_min = 0,
|
||||
decoration = "pyutest_flowers:lilypad",
|
||||
flags = "liquid_surface"
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
deco_type = "simple",
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.04,
|
||||
place_on = { "group:sugarcane_spawn_on" },
|
||||
decoration = "pyutest_flowers:sugarcane",
|
||||
y_max = PyuTest.OVERWORLD_SURFACE_BOTTOM,
|
||||
y_min = 0,
|
||||
spawn_by = { "pyutest_blocks:water_source" },
|
||||
num_spawn_by = 1,
|
||||
height = 1,
|
||||
height_max = 4
|
||||
})
|
||||
|
||||
-- trees
|
||||
core.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = { "group:grass" },
|
||||
@ -91,7 +7,6 @@ core.register_decoration({
|
||||
schematic = PyuTest.get_schematic_path("Tree"),
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
force_placement = true
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
@ -103,7 +18,6 @@ core.register_decoration({
|
||||
schematic = PyuTest.get_schematic_path("Tree"),
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
force_placement = true
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
@ -115,7 +29,6 @@ core.register_decoration({
|
||||
schematic = PyuTest.get_schematic_path("SavannaTree"),
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
force_placement = true,
|
||||
place_offset_y = 1
|
||||
})
|
||||
|
||||
@ -128,7 +41,6 @@ core.register_decoration({
|
||||
schematic = PyuTest.get_schematic_path("Mushroom"),
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
force_placement = true,
|
||||
place_offset_y = 1
|
||||
})
|
||||
|
||||
@ -141,7 +53,6 @@ core.register_decoration({
|
||||
schematic = PyuTest.get_schematic_path("TaigaTree"),
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
force_placement = true,
|
||||
place_offset_y = 1
|
||||
})
|
||||
|
||||
@ -154,7 +65,6 @@ core.register_decoration({
|
||||
schematic = PyuTest.get_schematic_path("BirchTree"),
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
force_placement = true
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
@ -166,7 +76,6 @@ core.register_decoration({
|
||||
schematic = PyuTest.get_schematic_path("TallBirchTree"),
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
force_placement = true
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
@ -178,7 +87,6 @@ core.register_decoration({
|
||||
schematic = PyuTest.get_schematic_path("CherryTree"),
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
force_placement = true,
|
||||
place_offset_y = 1
|
||||
})
|
||||
|
||||
@ -191,7 +99,6 @@ core.register_decoration({
|
||||
schematic = PyuTest.get_schematic_path("SnowyTree1"),
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
force_placement = true
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
@ -203,7 +110,6 @@ core.register_decoration({
|
||||
schematic = PyuTest.get_schematic_path("SnowyTree2"),
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
force_placement = true,
|
||||
place_offset_y = 1
|
||||
})
|
||||
|
||||
@ -216,7 +122,6 @@ core.register_decoration({
|
||||
schematic = PyuTest.get_schematic_path("SwampTree"),
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
force_placement = true
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
@ -228,7 +133,6 @@ core.register_decoration({
|
||||
schematic = PyuTest.get_schematic_path("VeryTallBirchTree"),
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
force_placement = true
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
@ -240,7 +144,6 @@ core.register_decoration({
|
||||
schematic = PyuTest.get_schematic_path("AspenTree1"),
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
force_placement = true
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
@ -252,7 +155,6 @@ core.register_decoration({
|
||||
schematic = PyuTest.get_schematic_path("AspenTree2"),
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
force_placement = true
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
@ -264,7 +166,6 @@ core.register_decoration({
|
||||
schematic = PyuTest.get_schematic_path("RedwoodTree"),
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
force_placement = true
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
@ -276,7 +177,6 @@ core.register_decoration({
|
||||
schematic = PyuTest.get_schematic_path("TallMushroom"),
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
force_placement = true
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
@ -289,7 +189,6 @@ core.register_decoration({
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
place_offset_y = 1,
|
||||
force_placement = true
|
||||
})
|
||||
|
||||
core.register_decoration({
|
||||
@ -302,5 +201,4 @@ core.register_decoration({
|
||||
rotation = "random",
|
||||
flags = "place_center_x, place_center_z",
|
||||
place_offset_y = 1,
|
||||
force_placement = true
|
||||
})
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 149 B After Width: | Height: | Size: 174 B |
Loading…
x
Reference in New Issue
Block a user