foliage changes

This commit is contained in:
IamPyu 2024-12-20 12:44:41 -06:00
parent 627d3c9f17
commit 556f976797
5 changed files with 22 additions and 4 deletions

View File

@ -10,6 +10,7 @@ PyuTest.FOLIAGE_TYPES = {
LIGHT = 8,
DEAD = 9,
OCEANIC = 10,
LUSH = 11,
}
local function on_construct(n)
@ -117,6 +118,20 @@ core.register_lbm({
end
})
core.register_abm({
nodenames = {"group:foliage"},
interval = 0,
chance = 1,
action = function (pos)
local n = core.get_node(pos)
local n2 = PyuTest.get_foliage_type(pos, n.name)
if n.param2 ~= n2.param2 then
core.set_node(pos, n2)
end
end
})
core.register_decoration({
deco_type = "simple",
place_on = { "group:grass_spawn" },

View File

@ -28,7 +28,7 @@ PyuTest.register_overworld_biome("Forest", PyuTest.BIOME_TYPES.NORMAL, {
weight = PyuTest.BIOME_WEIGHTS.big,
_pyutest_biome_flowering = true,
_pyutest_foliage_index = PyuTest.FOLIAGE_TYPES.NORMAL,
_pyutest_foliage_index = PyuTest.FOLIAGE_TYPES.LUSH,
})
PyuTest.register_overworld_biome("BirchForest", PyuTest.BIOME_TYPES.NORMAL, {
@ -80,7 +80,7 @@ PyuTest.register_overworld_biome("Meadow", PyuTest.BIOME_TYPES.NORMAL, {
_enable_beaches = false,
_pyutest_biome_flowering = true,
_pyutest_biome_flowering_extra = true,
_pyutest_foliage_index = PyuTest.FOLIAGE_TYPES.NORMAL,
_pyutest_foliage_index = PyuTest.FOLIAGE_TYPES.LUSH,
})
PyuTest.register_overworld_biome("CherryGrove", PyuTest.BIOME_TYPES.NORMAL, {

View File

@ -1,8 +1,11 @@
PyuTest.register_overworld_biome("MushroomGrotto", PyuTest.BIOME_TYPES.CAVE, {
PyuTest.register_overworld_biome("GlowingGrotto", PyuTest.BIOME_TYPES.CAVE, {
node_top = "pyutest_blocks:grass",
node_filler = "pyutest_blocks:dirt",
depth_filler = 2,
y_max = PyuTest.CAVE_TOP,
y_min = PyuTest.CAVE_BOTTOM,
_pyutest_cave_type = PyuTest.BIOME_TYPES.CHILLY,
_pyutest_foliage_index = PyuTest.FOLIAGE_TYPES.OCEANIC,
}, true)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 B

After

Width:  |  Height:  |  Size: 129 B