Codiac
98e7cd6e8e
Merge branch 'master' into trades
2023-09-02 04:15:42 +00:00
Sab Pyrope
5b4a79a26d
Update russian translation
2023-08-31 14:16:42 +08:00
ancientmarinerdev
3c266f5cfd
Merge pull request 'Enable enchanting on sheers & allow enchanted shears to shear.' ( #3884 ) from Codiac/MineClone2:shears_fix into master
...
Reviewed-on: MineClone2/MineClone2#3884
Reviewed-by: AFCMS <afcm.contact@gmail.com>
2023-08-27 23:42:53 +00:00
ancientmarinerdev
5f0944062c
Merge pull request 'Improve mob floating' ( #3883 ) from Codiac/MineClone2:mob_float_fix into master
...
Reviewed-on: MineClone2/MineClone2#3883
Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
2023-08-27 23:30:16 +00:00
codiac
85c1c57e95
Fix formatting. Remove plain terracotta.
2023-08-19 11:36:04 +10:00
Sebastian Riedel
d7ea628270
Revert reversion of 822071c66b
2023-08-14 11:27:36 +02:00
codiac
0d16acdd42
Use a vector and fix the merge fail >_<
2023-08-14 10:48:27 +10:00
codiac
246a95f973
Fix typo
2023-08-14 10:39:31 +10:00
codiac
8c64fdfa5d
Enable enchanting on sheers & allow enchanted shears to shear.
2023-08-13 14:02:15 +10:00
codiac
034382c883
Fix float check :(
2023-08-13 12:14:52 +10:00
cora
898a183ccd
Prevent floating mobs from drowning all the time
...
Less dieing for mobs in deep water.
2023-08-13 12:12:03 +10:00
codiac
6ae597c97f
This changes mob floating so they stay inside the top water node instead of
...
standing on it. The head of the mod should still be above water.
Changes drowning so that mobs will not drown in one block of water. They will
drown in 2 or more blocks of water.
Does not appear to affect them getting out of deep water :( But they do seem to
die somewhat faster when they stay in deep water.
2023-08-12 14:01:26 +10:00
codiac
4f2cb955b8
Use minetest.get_item_group for more flexibility
2023-08-05 15:09:53 +10:00
codiac
a3bbb3694c
Allow villager to claim filled cauldrons.
...
Fixes #3733
2023-08-05 15:09:53 +10:00
codiac
2cf5183638
Import villager trade changes by Alessandra_Lozoya
2023-07-25 13:44:28 +10:00
ancientmarinerdev
fe501e8021
Change bug fix so that loop carries on processing other items if first one is the issue.
2023-06-28 20:19:49 +00:00
ancientmarinerdev
b05fa5562c
Fix crash in hopper minecarts through missing ent
2023-06-28 20:19:49 +00:00
Kristian
9c77cbc011
TOM Mobs
2023-06-27 21:09:03 +00:00
Kristian
cc21b74125
Three fully translated
2023-06-27 21:09:03 +00:00
José Muñoz
c61df75370
Add spanish translations
2023-06-27 20:39:27 +00:00
PrairieWind
67078ba3b1
Fix most of the feedback issues in cherry blossoms
2023-06-25 16:37:02 +00:00
PrairieWind
da71e7b521
Add cherry boat
2023-06-25 16:37:02 +00:00
ancientmarinerdev
dd5d1dad29
Nerf skeleton attack
2023-06-25 11:52:02 +00:00
ancientmarinerdev
7d51519f4d
Fix wool farm crash
2023-06-21 20:47:54 +00:00
ancientmarinerdev
658f244ae4
Creeper should not walk to player if it does not have line of sight. Mob shouldn't look at player it does not have line of sight to.
2023-06-21 20:17:49 +00:00
Temak
f7f8a72d08
Update russian translation ( #3519 )
...
Update russian translation by Temak
Reviewed-on: MineClone2/MineClone2#3519
Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
Co-authored-by: Temak <artemkotlubai@yandex.ru>
Co-committed-by: Temak <artemkotlubai@yandex.ru>
2023-06-19 21:54:51 +00:00
ancientmarinerdev
cc5a0971ac
Object reference check before setting velocity
2023-06-05 15:03:45 +01:00
epCode
df8592df41
Revert add punch node
2023-06-04 21:53:39 -07:00
epCode
5e4fa30aae
Punch node after change
2023-06-04 20:19:18 -07:00
epCode
e49eac6d85
Fix sheep not regrowing wool after eating
2023-06-04 16:24:37 -07:00
epCode
e53b6c124c
Make sheep always drop 1 wool (MC continuity)
2023-06-04 22:41:35 +00:00
epCode
92887f5501
fix sheep replace rate
2023-06-04 22:41:35 +00:00
epCode
86cd5711ca
Rearange on replace code to be more general purpous
2023-06-04 22:41:35 +00:00
epCode
908ba9fba6
Put on_replace call in correct place (wool regrow on grass to dirt)
2023-06-04 22:41:35 +00:00
epCode
91d94800d7
Adjust grass replace timer
2023-06-04 22:41:35 +00:00
epCode
74e55ca361
Fix eat replace timer for sheep
2023-06-04 22:41:35 +00:00
epCode
c049113f26
Fix sheep sliding, make eating timed, fix animation repeat
2023-06-04 22:41:35 +00:00
epCode
1f5247df06
Make mobs slide less, and fix ageold jump dilema
2023-06-04 22:41:35 +00:00
epCode
2e2f56122d
Incorperate sheep eating animation. #3734
2023-06-04 22:41:35 +00:00
ancientmarinerdev
4287a261c8
Change order of numbers passed into random that crash on some Lua versions
2023-06-02 21:14:52 +01:00
ancientmarinerdev
c65f8c9e51
Improved early game spawn balance
2023-06-01 20:05:25 +00:00
ancientmarinerdev
812269264b
Add in caps for underground water and axolotl
2023-06-01 20:05:25 +00:00
ancientmarinerdev
afb4540408
Clean up
2023-06-01 20:05:25 +00:00
ancientmarinerdev
4d3e8e25e5
Add water_ambient cap
2023-06-01 20:05:25 +00:00
ancientmarinerdev
ae32ce4a0a
Split hostile and non-hostile mob caps
2023-06-01 20:05:25 +00:00
megustanlosfrijoles
06077d1633
Spanish translations ( #3753 )
...
<!--
Please follow our contributing guidelines first:
https://git.minetest.land/MineClone2/MineClone2/src/branch/master/CONTRIBUTING.md#how-you-can-help-as-a-programmer
By submitting this pull request, you agree to follow our Code of Conduct:
https://git.minetest.land/MineClone2/MineClone2/src/branch/master/CODE_OF_CONDUCT.md
-->
Tell us about your pull request! Reference related issues, if necessary
### Testing
Tell us how to test your changes!
Co-authored-by: José Muñoz <dr.cabra@disroot.org>
Reviewed-on: MineClone2/MineClone2#3753
Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
Co-authored-by: megustanlosfrijoles <dr.cabra@disroot.org>
Co-committed-by: megustanlosfrijoles <dr.cabra@disroot.org>
2023-05-31 21:22:49 +00:00
PrairieWind
5ed92a2695
Make pigs mountable without carrot on a stick, but require the carrot on a stick to actually control the pig
2023-05-22 21:40:23 +00:00
ancientmarinerdev
10a3d06360
Fix global variable references and exit mob_step if missing pos
2023-05-22 21:05:12 +00:00
PrairieWind
873297d2cf
Make Piglin Brutes drop golden axes
...
Instead of dropping crossbows
2023-05-17 20:55:09 +00:00
ancientmarinerdev
5a059379b2
Group damage logic. Remove physics falling logic out of suspend with duplicate falling call
2023-05-15 13:54:23 +00:00
ancientmarinerdev
952a90bfde
Re-organise mob_step for better clarity
2023-05-15 13:54:23 +00:00
ancientmarinerdev
f326fa620f
Optimise do states and env danger check
2023-05-15 13:54:23 +00:00
ancientmarinerdev
3d1fb8cf4a
Clean up and optimise falling
2023-05-15 13:54:23 +00:00
ancientmarinerdev
519b237ba8
Jumping check only called once per mob_step and refactor duplicate water danger, cliff fall logic
2023-05-15 13:54:23 +00:00
ancientmarinerdev
72c3f87925
Reduce excessive mob overhead
2023-05-15 13:54:23 +00:00
ancientmarinerdev
818052dc6c
Fix mob textures getting reset on shutdown/startup
2023-05-15 13:54:23 +00:00
ancientmarinerdev
53637bbc19
Group attack configured so that sword piglins and piglins will also respond to aggression on other piglins.
2023-05-14 15:56:26 +00:00
ancientmarinerdev
92a8f23d22
Fix creeper name
2023-05-14 15:56:26 +00:00
ancientmarinerdev
2d89440972
Fix Piglin naming and add localisation entries
2023-05-14 15:56:26 +00:00
ancientmarinerdev
92c0809dbe
Remove zombie pigman file as no longer needed
2023-05-14 15:56:26 +00:00
ancientmarinerdev
530c8ec0da
Remove zombie pigmen and ensure zombie piglin named correctly. Add Piglin description names.
2023-05-14 15:56:26 +00:00
PrairieWind
be32ffde6b
Remove Flower Forest Beaches from Wolf biome spawn list
2023-05-12 22:50:33 +00:00
ancientmarinerdev
3aed71fb85
Piglins no longer aggro for enchanted gold armour
2023-05-12 22:21:56 +00:00
3raven
9518d47662
(french) translation enhancements ( #3643 )
...
- Add missing translation
- Fix broken translations
- Fix unacurate description
- Correct/improve/change for cohesion french translation
Translations templates have been updated,other translations must be updated.
<!--
Please follow our contributing guidelines first:
https://git.minetest.land/MineClone2/MineClone2/src/branch/master/CONTRIBUTING.md#how-you-can-help-as-a-programmer
By submitting this pull request, you agree to follow our Code of Conduct:
https://git.minetest.land/MineClone2/MineClone2/src/branch/master/CODE_OF_CONDUCT.md
-->
Tell us about your pull request! Reference related issues, if necessary
### Testing
Tell us how to test your changes!
Co-authored-by: 3raven <elise_declerck@laposte.net>
Reviewed-on: MineClone2/MineClone2#3643
Reviewed-by: AFCMS <afcm.contact@gmail.com>
Co-authored-by: 3raven <3raven@noreply.git.minetest.land>
Co-committed-by: 3raven <3raven@noreply.git.minetest.land>
2023-05-11 22:39:49 +00:00
ancientmarinerdev
09619a62ee
Clean up is_as_cliff code and convert to new style vector part 2
2023-05-11 20:22:49 +01:00
ancientmarinerdev
31e6e38013
Clean up is_as_cliff code and convert to new style vector
2023-05-11 20:22:49 +01:00
ancientmarinerdev
8092fd573c
Cleanup self.acc code and convert to new style vectors
2023-05-11 20:22:19 +01:00
ancientmarinerdev
39872f8ef6
Fix hoglin reach and view_range
2023-05-11 16:33:55 +00:00
ancientmarinerdev
0787d7a988
Remove duplicate code that has been moved.
2023-05-11 16:33:55 +00:00
ancientmarinerdev
8a771ebfce
Allow adjustment of attack frequency. Reduce attack frequency of Hoglins. Move on_step and do_states functionality off of the attack timer on to their own timer.
2023-05-11 16:33:55 +00:00
megustanlosfrijoles
d14c074d6c
Add spanish translations ( #3678 )
...
I'm working on adding more translations. I made this pull request to let everyone now I'm working on this.
So far I've completed 1 file/mod
Co-authored-by: José Muñoz <dr.cabra@disroot.org>
Reviewed-on: MineClone2/MineClone2#3678
Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
Co-authored-by: megustanlosfrijoles <dr.cabra@disroot.org>
Co-committed-by: megustanlosfrijoles <dr.cabra@disroot.org>
2023-05-10 23:12:37 +00:00
ancientmarinerdev
ea4ea3f05e
Standardise despawn logic and add asserts. Add persistent flag for mobs that have been interacted with.
2023-05-09 22:24:40 +00:00
ancientmarinerdev
6f75932a4b
Fix crash when parrot sits on shoulder
2023-05-09 21:43:54 +00:00
ancientmarinerdev
8b45cb2672
Remove slimes from mushroom islands
2023-05-09 14:56:51 +01:00
ancientmarinerdev
be8d9122ee
Fix crash when creeper explodes in minecart
2023-05-07 21:11:48 +01:00
ancientmarinerdev
fb9a630a5b
Hostile mobs should lose aggro if they cannot see their target
2023-05-06 21:51:47 +00:00
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