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
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
Michieal
e9c202ae45
Added Bamboo Biomes to spawning.lua.
2023-01-15 15:30:34 -05:00
ancientmarinerdev
4fd4425aae
Improved mob debug
2023-01-11 01:07:18 +00:00
ancientmarinerdev
01c8009c6a
Tidy on_step function
2023-01-11 01:07:18 +00:00
kabou
6756ee340c
Mob spawning chatcommand refactoring.
...
* Put calculations that are only used conditionally inside the
related `if` block.
* Make code logic more explicit.
* Take logging statement out of return value assignment.
* Remove duplicate assignment.
* Fix a typo in the function's description.
2022-12-29 02:13:57 +00:00
kabou
0c454a34c9
Use vectors in get_next_mob_spawn_pos()
2022-12-29 02:13:57 +00:00
cora
ebf214c043
Check if spawndef exists when spawning
2022-11-27 14:53:17 +01:00
cora
2b691dea07
Fix some more global var warnings
2022-11-27 14:53:16 +01:00
cora
faa38ffab8
Fix some warnings
2022-11-27 14:53:16 +01:00
cora
5e177c61f6
Move on_step despawning to separate function
2022-11-27 14:53:16 +01:00
cora
646a341f52
Fix mob api can_spawn callback
2022-11-02 03:47:23 +01:00
cora
672e44bbb1
Don't spawn multiple mobs at the same position
...
this was originally intended to simulate group spawning i think
2022-10-29 11:50:45 +02:00
cora
c044cf8e74
Fix debug line
2022-10-14 02:31:23 +02:00
cora
93f8f2aa3b
only count despawnable mobs for global caps
2022-10-14 02:31:23 +02:00
cora
c146124a2c
spawning: check for room accrd. to collisionbox
2022-10-14 02:31:23 +02:00
cora
ea48be3f4c
Add global and per-player mob caps
2022-10-14 02:31:23 +02:00
cora
cd862888d1
Fix indentation
2022-10-14 02:31:23 +02:00
cora
ba25e57eac
don't run on_spawn twice
2022-10-14 02:31:23 +02:00
cora
5db7680cd1
mitigate high cpu usage due to excessive mob counting
...
This was caused by the mob caps being checked too frequently
2022-10-14 02:31:23 +02:00
cora
97f9614818
Log the node a mob spawns on
2022-10-14 02:31:23 +02:00
cora
39a0353a49
Add spawn counts per mob to /mobstats
2022-10-14 02:31:23 +02:00
epCode
22a5856b46
make spawn_mob able to change values in a mob
2022-10-13 01:54:38 +02:00
cora
611d8808ac
Fix a variable typo causing crashes with prot. mod
2022-09-16 15:11:52 +02:00
cora
8c16b8c7ee
Make mob caps configurable
2022-09-13 14:18:29 +02:00
cora
51e244fe35
Make logging of mob spawning configurable
2022-09-13 13:43:57 +02:00
cora
786cea122d
Remove some unsused settings from mcl_mobs
2022-09-13 13:39:14 +02:00
PrairieWind
186059ae13
spawn_mob logging and pillager npc attack
2022-09-09 20:30:26 -06:00
cora
3093462ee3
Fix despawning
2022-09-10 01:56:37 +00:00
cora
97cab0d91f
Use api spawn command for natural spawn
2022-09-10 01:56:37 +00:00
cora
8c3ada1e11
Fix spawn command
2022-09-10 01:56:37 +00:00
cora
962425faa5
Don't spawn structure mobs in peaceful mode
2022-09-07 11:58:16 +02:00
PrairieWind
fc362f0e9c
Add Loggin Actions to mob spawning, and fixed log message for spawn egg use
2022-09-02 10:06:10 +00:00
cora
77e11713d3
Remove superfluous bed check for villagers
2022-08-30 21:52:47 +02:00
cora
2f0ca063e9
Make monsters less likely to spawn in groups
2022-08-30 21:52:47 +02:00