ancientmarinerdev
938ee7a832
Pick highest y and kick it up a little for visual spice and to fix occassional drop falling into floor
2023-05-01 16:53:00 -05:00
ancientmarinerdev
c48510244e
Before merging same stacks, move to middle to show merging occurs.
2023-05-01 16:53:00 -05:00
ancientmarinerdev
52e64a6f75
Fix issue with drops turning black due to clipping into walls and floors
2023-05-01 16:53:00 -05:00
cora
13df9ec46c
Fix crash when using a named spawn egg
2023-04-27 21:16:19 +00:00
megustanlosfrijoles
7dc09e3ebd
Add spanish translations ( #3659 )
...
I just added some translations to Spanish that were missing
Co-authored-by: José Muñoz <dr.cabra@disroot.org>
Reviewed-on: MineClone2/MineClone2#3659
Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
Co-authored-by: megustanlosfrijoles <dr.cabra@disroot.org>
Co-committed-by: megustanlosfrijoles <dr.cabra@disroot.org>
2023-04-27 19:50:10 +00:00
ancientmarinerdev
7fe1be2c18
Add error handling to sunlight checking to prevent crashing and improve diagnosis.
2023-04-06 13:35:38 +00:00
ancientmarinerdev
6817a8535b
Get item name correctly.
2023-04-03 17:50:48 +01:00
ancientmarinerdev
c83574802f
Ensure enchanted netherite armour is fire immune to lava etc.
2023-04-03 02:06:58 +01:00
ancientmarinerdev
53923dd5fa
Move on_step code to functions to help see profiling impact
2023-03-31 13:40:36 -05:00
ancientmarinerdev
59f4a62fd6
Move hopper minecarts off item entity. Do not run every on_step. Use more accurate object search location. Cut down object search distance.
2023-03-31 13:40:36 -05:00
ancientmarinerdev
3bdc77a1aa
Hoglins should only spawn in crimson forest
2023-03-26 13:03:46 +00:00
ancientmarinerdev
7f3734b6cb
Ensure hoglins and piglins aren't faster than player.
2023-03-26 13:03:46 +00:00
ancientmarinerdev
b7079e8b19
Fix slime and some nether mob speeds
2023-03-26 13:03:46 +00:00
ancientmarinerdev
049406162e
Fix crash when skeleton tries to jock when there is no pos, maybe because pos is unloaded.
2023-03-25 01:55:52 +00:00
ancientmarinerdev
41882e9e1f
Adjust speeds to make it less ridiculous
2023-03-23 00:38:18 +00:00
ancientmarinerdev
2440b73e67
Bundled lua with 5.7 crashes when you right click a farmer villager. math.random needs correct order
2023-03-22 03:55:27 +00:00
ancientmarinerdev
ecf72db684
Fix ooops
2023-03-20 13:37:26 +00:00
ancientmarinerdev
bcd7f38fa7
Use new style vectors
2023-03-20 13:37:25 +00:00
ancientmarinerdev
3eab946889
Make death check less frequent. Load passenger in minecart at shutdown.
2023-03-20 13:37:25 +00:00
anarquimico
f817fe7f72
Fix performance issues and better check for mobs death
2023-03-20 13:37:25 +00:00
anarquimico
d5f01e88c4
Make mobs ride minecarts
2023-03-20 13:37:25 +00:00
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
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟
150222583a
clearmobs command: nametagged/tamed is exclusive
2023-03-15 13:22:35 -05:00
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟
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: MineClone2/MineClone2#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: MineClone2/MineClone2#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: MineClone2/MineClone2#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
ancientmarinerdev
7c602ce82c
Tidy up error handling.
2023-02-16 23:15:55 +00:00
ancientmarinerdev
ae92c51155
Adding error handling to the mob step function
2023-02-16 23:15:55 +00:00
Michieal
f05e976d18
changed comment.
2023-02-14 01:50:05 +00:00
Michieal
5533ec7bac
fix mobs losing their textures.
2023-02-14 01:50:05 +00:00
Michieal
8bfa55fa7a
Changed Salmon, Glow Squid, Cod, Cartography Table, Awards_Axolotl, Armor_Stand_Item. Glow-Ink_sac.
2023-02-14 01:43:16 +00:00
ancientmarinerdev
9445e10834
Pathfinding optimisations and villager has earlier bed time
2023-02-11 10:36:56 +00:00
ancientmarinerdev
2fd7f8c69f
Fix hungry sheep and hyrdophobic passive mobs
2023-02-11 00:37:16 +00:00
ancientmarinerdev
d4c2802afb
Implement review/testing feedback
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
SmokeyDope
71671f8b5f
Make minecart rails unable to be broken with lava
2023-02-09 01:53:52 +00:00
SmokeyDope
c4d60e50cc
Make minecart rails unable to be broken with water
2023-02-09 01:53:52 +00:00