FossFanatic
fee4ccf096
Convert old player leaves into new system
...
This commit adds a couple of lines to the `mcl_mapgen_core:fix_foliage_palette_indexes"` LBM, which ensures that player leaves which were placed before this update get converted into the new player leaves.
I would have included mangrove leaves, but decided against it because of an issue where the `param2` of mangrove leaves was accidentally set to 1 (in the schematics?). This meant that if I included mangrove leaves, the LBM would have converted the natural leaves as well.
This would have made it very tedious to clean up the leaves after chopping down a mangrove tree, since these would not rot by themselves.
2023-02-14 11:20:00 +00:00
FossFanatic
f653f47f26
Improve the new code somewhat
2023-02-14 08:36:49 +00:00
FossFanatic
7b7e213925
Fix mcl_util.get_registered_biome_from_pos(pos)
...
Adds something which was missing from the function.
2023-02-14 08:12:55 +00:00
FossFanatic
aeddb7675f
Don't run LBMs at every load
...
This commit makes it so the LBMs don't run at every load.
This commit also adds some new `minetest.register_on_generated()` code, which should ensure that any newly generated mapblocks have the correct foliage colours.
2023-02-13 18:50:26 +00:00
FossFanatic
2ccfd89379
Add nil checks
2023-02-13 15:49:19 +00:00
FossFanatic
3a24903a01
Add nil check
2023-02-13 15:46:45 +00:00
FossFanatic
abdd5e11c0
Shorten code slightly
2023-02-13 15:46:08 +00:00
FossFanatic
e17fab385b
Add nil checks
2023-02-13 15:44:23 +00:00
FossFanatic
17cae6896e
Add back the logical code?
...
My gut feeling tells me that it is somehow a bad idea to have removed this.
2023-02-13 11:17:51 +00:00
FossFanatic
1c84bc6572
Put all affected grass blocks in a local
...
This commit puts all nodes which make use of the grass palette in a local, to make for less messy code.
2023-02-13 10:33:47 +00:00
FossFanatic
4d29fab932
Improve some trees code
2023-02-13 10:22:28 +00:00
FossFanatic
a2087b19a5
Delete rogue file
2023-02-13 10:20:48 +00:00
FossFanatic
c88f0047c1
Merge branch 'master' into biome_colored_foliage
2023-02-12 08:44:29 +00:00
FossFanatic
0400d9a2a5
Even further improvements to some foliage code
2023-02-12 08:28:21 +00:00
FossFanatic
3590ff6dfb
Improve some LBM code
2023-02-12 08:23:19 +00:00
FossFanatic
d1ceacf7ba
Improve some vines code
2023-02-12 08:22:07 +00:00
FossFanatic
a70a6ef13d
Improve some foliage code
2023-02-12 08:21:14 +00:00
FossFanatic
b4e84dadb0
Add new function
...
Adds the `get_registered_biome_from_pos` function, which does what the name says.
2023-02-12 07:57:04 +00:00
ancientmarinerdev
e7e0b082c4
Merge pull request 'Footer Annoyance Fix' ( #3431 ) from footer_annoyance_fix into master
...
Reviewed-on: MineClone2/MineClone2#3431
Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
2023-02-12 01:00:45 +00:00
FossFanatic
18b888da8b
Remove the thing above the "o" in "version"
2023-02-12 00:06:01 +00:00
ancientmarinerdev
15a15158b8
Merge pull request 'Pathfinding optimisations and villager has earlier bed time' ( #3410 ) from villager_tweaks into master
...
Reviewed-on: MineClone2/MineClone2#3410
2023-02-11 10:48:36 +00:00
ancientmarinerdev
9445e10834
Pathfinding optimisations and villager has earlier bed time
2023-02-11 10:36:56 +00:00
ancientmarinerdev
35a75491f4
Merge pull request 'Fix hungry sheep and hyrdophobic passive mobs' ( #3435 ) from drowning_and_hungry_mobs into master
...
Reviewed-on: MineClone2/MineClone2#3435
2023-02-11 10:26:19 +00:00
FossFanatic
81dbdaab94
Adjust palette foliage check
...
The excessive 128 blocks high check has been changed to now check only up to 30 blocks, since the tallest 2x2 jungle tree I seemed to get was only 29 blocks tall.
I also discovered that the search area wasn't wide enough, so sometimes the most outer leaves avoided the check. I also adjusted that.
2023-02-11 07:53:12 +00:00
ancientmarinerdev
2fd7f8c69f
Fix hungry sheep and hyrdophobic passive mobs
2023-02-11 00:37:16 +00:00
ancientmarinerdev
6a34a30941
Merge pull request 'Mob spawning improvements and balancing' ( #3356 ) from mob_cap_fixes into master
...
Reviewed-on: MineClone2/MineClone2#3356
2023-02-10 19:09:06 +00:00
ancientmarinerdev
d4c2802afb
Implement review/testing feedback
2023-02-10 19:01:29 +00:00
ancientmarinerdev
b2dbf48e92
Default setting fix
2023-02-10 19:01:29 +00:00
ancientmarinerdev
bf50a17f2e
Limit spawning of mobs outside y axis as well
2023-02-10 19:01:29 +00:00
ancientmarinerdev
b817c079ba
Improve balancing for early game
2023-02-10 19:01:29 +00:00
ancientmarinerdev
cfa276f722
Add settings for percentage of hostile and peaceful groups spawned
2023-02-10 19:01:29 +00:00
ancientmarinerdev
86b1d8bc3e
Add world gen limits to spawning to avoid things spawning past the world gen limits
2023-02-10 19:01:29 +00:00
ancientmarinerdev
9c2f43a242
Limit peaceful spawning and add configurable option
2023-02-10 19:01:29 +00:00
ancientmarinerdev
044a91e831
Change spawn cap groups to spawn_type to give water it's own spawn cap.
2023-02-10 19:01:29 +00:00
ancientmarinerdev
106979e64a
Clean up
2023-02-10 19:01:29 +00:00
ancientmarinerdev
4482068211
Nerf group spawning until group spawn is based on pack size, not per spawn attempt
2023-02-10 19:01:29 +00:00
ancientmarinerdev
1dc7cab6be
Add logging
2023-02-10 19:01:29 +00:00
ancientmarinerdev
634379dfe9
Retry if failing to find spawn position
2023-02-10 19:01:29 +00:00
ancientmarinerdev
c2ac33ac61
Mobs now can spawn in multiple positions around you per spawning cycle
2023-02-10 19:01:29 +00:00
ancientmarinerdev
b5c0830060
Restructure code and tidy
2023-02-10 19:01:29 +00:00
ancientmarinerdev
c43c723e08
Clean logging etc.
2023-02-10 19:01:29 +00:00
ancientmarinerdev
bd3a4ff0df
Clean up
2023-02-10 19:01:28 +00:00
ancientmarinerdev
0267ad2f31
Decrease change of groups spawning for peacefuls. Refresh total mobs check on spawn.
2023-02-10 19:01:28 +00:00
ancientmarinerdev
a2f9ea81cc
Fix mobs debug crash
2023-02-10 19:01:28 +00:00
ancientmarinerdev
7c7f4b930c
Move cap check out of spawn checks and reimplement close cap check
2023-02-10 19:01:28 +00:00
ancientmarinerdev
60529d3d5d
Add in constants for spawn zones
2023-02-10 19:01:28 +00:00
ancientmarinerdev
6ea4b43249
Limit group spawn to available cap space. Total mobs check once per spawn cycle.
2023-02-10 19:01:28 +00:00
FossFanatic
1fb300ef18
Fix leaves not dropping
...
Due to some renaming, leaves no longer dropped from any of the `mcl_core` trees.
This has now been fixed.
2023-02-10 18:40:35 +00:00
FossFanatic
b789845f62
Indentation improvements
2023-02-10 15:19:02 +00:00
FossFanatic
f368fb3e43
Indentation improvements
2023-02-10 15:17:46 +00:00