ancientmarinerdev
81a258d33b
Clean up and reorder code
2023-03-19 02:44:35 +00:00
ancientmarinerdev
bd579314ba
Remove logging and clean up
2023-03-19 02:44:35 +00:00
ancientmarinerdev
e7449a65d8
Fix check_position and change spawn check to stages
2023-03-19 02:44:35 +00:00
ancientmarinerdev
b8b47e55e1
Add in slime chunks
2023-03-19 02:44:35 +00:00
ancientmarinerdev
ef633ce617
Do not throw XP if in creative
2023-03-17 20:36:53 +00:00
ancientmarinerdev
c6db032674
Rework sculk to be off the xp_step and triggered by events
2023-03-17 20:36:53 +00:00
ancientmarinerdev
ff1b941d19
Clean and improve profiler info
2023-03-17 15:20:51 +00:00
ancientmarinerdev
be269b2034
Make error handling safe in case pos is missing
2023-03-17 15:20:51 +00:00
ancientmarinerdev
97091de67f
Log pos info only prior to crash
2023-03-17 15:20:51 +00:00
ancientmarinerdev
ae7cfdff69
Ensure conditional doesn't mask bug crash issue
2023-03-17 15:20:50 +00:00
ancientmarinerdev
0dee7792f4
Log where map unloaded before light damage code. #3430 debugging
2023-03-17 15:20:50 +00:00
Johannes Fritz
150222583a
clearmobs command: nametagged/tamed is exclusive
2023-03-15 13:22:35 -05:00
Johannes Fritz
a3e6f90b09
clearmobs command improvement
2023-03-15 16:25:28 +00:00
ancientmarinerdev
270820125d
Add in a default for improved clearmobs command.
2023-03-14 02:45:33 +00:00
ancientmarinerdev
fc7eb135e6
Comment out leftover logging
2023-03-14 02:45:33 +00:00
ancientmarinerdev
c97fef03b9
Comment out logging, and add in the destruction
2023-03-14 02:45:33 +00:00
ancientmarinerdev
37ca0efe05
New, improved, safe clearmobs command
2023-03-14 02:45:33 +00:00
ancientmarinerdev
0f7efcf9c1
Fix error handling compatibility with Minetest bundled Lua
2023-03-12 21:52:35 +00:00
ancientmarinerdev
547973877a
Fix old burning storage crash and log any relevent info.
2023-03-12 21:08:24 +00:00
ancientmarinerdev
994f720385
Merge pull request 'Improve French translation' ( #3531 ) from syl/MineClone2:master into master
...
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3531
Reviewed-by: AFCMS <afcm.contact@gmail.com>
2023-03-12 20:55:36 +00:00
ancientmarinerdev
038d9ec014
Do not need to create new vector each time
2023-03-11 00:05:53 +00:00
ancientmarinerdev
6097dacbab
Only check herd if in range
2023-03-11 00:05:53 +00:00
ancientmarinerdev
5b7132ac5e
Fix duplicate call for jump check
2023-03-11 00:05:53 +00:00
ancientmarinerdev
5fc78bf6b0
Use unique name for function. Add development flag to enable crashing locally
2023-03-11 00:05:53 +00:00
ancientmarinerdev
b47ef9275b
Fix whoops
2023-03-11 00:05:53 +00:00
ancientmarinerdev
ce6d9d561f
When mob out of range, avoid processing expensive or unneccessary things
2023-03-11 00:05:53 +00:00
syl
96b2f6a01d
Improve French translation
2023-03-10 22:48:46 +01:00
ancientmarinerdev
655c130956
Remove aggro for iron golem when out of range
2023-03-10 03:03:53 +00:00
ancientmarinerdev
e15d0cd5a0
Merge pull request 'Make enderman hostile towards endermites and fix it's behavior on other dimensions' ( #3501 ) from anarquimico/MineClone2:enderman_hostile_endermite into master
...
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3501
Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
2023-03-08 21:47:40 +00:00
ancientmarinerdev
a25cced40e
Remove comment now resolved
2023-03-04 02:18:36 +00:00
ancientmarinerdev
86a85bb487
Fix spawn egg crashes in different dimensions
2023-03-04 01:38:51 +00:00
anarquimico
8c4f2fdd7b
TP to dark spots only on the overworld
2023-03-03 21:55:56 -03:00
ancientmarinerdev
48fa2608ed
Merge pull request 'spawn-egg-crash-fix' ( #3492 ) from GuyLiner/MineClone2:spawn-egg-crash-fix into master
...
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3492
2023-03-04 00:34:45 +00:00
anarquimico
a3ab67cb55
Better fix for enderman behavior
2023-03-03 10:03:26 -03:00
anarquimico
7cbeae00cc
Fix enderman behaviour for other dimesions
2023-03-02 10:22:08 -03:00
anarquimico
16a4448c5f
Performance improvement 2
2023-03-02 09:57:33 -03:00
anarquimico
5093f31f28
Performance improvement
2023-03-02 09:20:00 -03:00
anarquimico
8825fb9860
Removes unnecessary commentary
2023-03-02 08:32:52 -03:00
anarquimico
d0022db2a5
Make enderman hostile towards endermites
2023-03-02 08:28:06 -03:00
epCode
dc9407701e
fix crash skeleton jockey code
2023-02-28 17:46:21 +00:00
epCode
e48dabc8be
Create the Jockey api and use it on Skel/Spid
2023-02-28 17:46:21 +00:00
GuyLiner
cafc16c41c
Fix #3484
...
If a mob was not found in the spawn_dictionary or the non_spawn
dictionary and you tried to use a spawn egg to spawn that mob, the game
would crash. This commit prevents that from happening by adding a check
for mobs that don't exist, and minetest.log throws an error.
2023-02-26 11:22:21 -05:00
GuyLiner
14039290a9
Added mobs that were missing from non_spawn_specific()
2023-02-26 11:06:38 -05:00
GuyLiner
f39cec2442
Added slime_big to non_spawn_specific instead of creating an exception for them in spawning.lua
2023-02-16 20:48:30 -05:00
GuyLiner
cd1c8bd92e
Refactored logic for getting light levels for mobs
...
Removed mob_light_table, simplied loop, changed return values and
fixed dimension priority error in loop. Slimes also don't have a
hardcoded exception for their light levels anymore, and instead
are apart of spawn specific.
2023-02-16 20:48:28 -05:00
GuyLiner
3830171347
Adjusted mob_light_lvl for changed return value
2023-02-16 19:43:50 -05:00
GuyLiner
0a9be4b79c
Added light level parameters to the mobs_mcl.setup_spawner() function, fixing #221
...
There is now a call to mcl_mobs:mob_light_lvl that returns a table for the name of the mob that you pass to it that contains
the light levels for that mob.
2023-02-16 19:43:50 -05:00
GuyLiner
540319d948
Added non_spawn_dictionary and function for getting mob light levels
...
The non_spawn_dictionary will cover all mobs that don't spawn naturally, and holds the the minimum and maximum light values for each of them.
A function has also been created that will go through both the spawn_dictionary and the non_spawn_dictionary and determine which one
a mob exists in, with the execption of slimes which cannot spawn from a custom spawner at the moment.
Mobs who don't have light levels for the world that you are currently trying to set your custom spawner in will default to their overworld values
2023-02-16 19:43:50 -05:00
GuyLiner
fbb2923a0b
Added mcl_mobs:non_spawn_specific function for mobs that don't naturally spawn and for mobs that don't spawn in the overworld
2023-02-16 19:43:50 -05:00
ancientmarinerdev
4d61e32021
Clean up error handling
2023-02-16 23:15:55 +00:00