foliage changes
This commit is contained in:
parent
627d3c9f17
commit
556f976797
@ -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" },
|
||||
|
@ -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, {
|
||||
|
@ -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 |
Loading…
x
Reference in New Issue
Block a user