diff --git a/mods/ITEMS/pyutest_blocks/foliage.lua b/mods/ITEMS/pyutest_blocks/foliage.lua index 5d6c747..2da6cab 100644 --- a/mods/ITEMS/pyutest_blocks/foliage.lua +++ b/mods/ITEMS/pyutest_blocks/foliage.lua @@ -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" }, diff --git a/mods/WORLD/pyutest_overworld/biomes.lua b/mods/WORLD/pyutest_overworld/biomes.lua index 4c91168..ebce092 100644 --- a/mods/WORLD/pyutest_overworld/biomes.lua +++ b/mods/WORLD/pyutest_overworld/biomes.lua @@ -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, { diff --git a/mods/WORLD/pyutest_overworld/caves.lua b/mods/WORLD/pyutest_overworld/caves.lua index e1ed7a8..816f43e 100644 --- a/mods/WORLD/pyutest_overworld/caves.lua +++ b/mods/WORLD/pyutest_overworld/caves.lua @@ -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) diff --git a/textures/pyutest-foilage-palette.png b/textures/pyutest-foilage-palette.png deleted file mode 100644 index 0e40041..0000000 Binary files a/textures/pyutest-foilage-palette.png and /dev/null differ diff --git a/textures/pyutest-foliage-palette.png b/textures/pyutest-foliage-palette.png index 0e40041..178ad32 100644 Binary files a/textures/pyutest-foliage-palette.png and b/textures/pyutest-foliage-palette.png differ