the-real-herowl
cc8ce6ec3a
Plant placement and drop fixes
2024-04-22 03:23:13 +02:00
the-real-herowl
4649f1ef81
Added on_save_effect support for mobs
2024-04-22 02:26:26 +02:00
the-real-herowl
05e8a88c66
Fixed effects still being handled after mob death
2024-04-22 02:16:56 +02:00
the-real-herowl
6771a6975d
Effects persist on loads for mobs too
2024-04-22 02:12:54 +02:00
the-real-herowl
c3ce9ba27f
Remove unused function in mcl_hunger
2024-04-21 19:19:42 +02:00
the-real-herowl
f78610080e
Added some potion recipes
...
Also:
* changed the duration of saturation and food poisoning potions
* minor code changes
2024-04-17 22:52:25 +02:00
the-real-herowl
7023e0836b
Added the ominous potion
2024-04-17 21:51:12 +02:00
the-real-herowl
9de40dee07
Improved API mob support
...
* various API functions now work with mobs properly
* the following effects don't work with mobs at all:
water breathing, dolphin's grace, leaping, swiftness,
slowness, slow falling, night vision, darkness, frost,
health boost, absorption, fire resistance, resistance,
luck, bad luck, blindness, nausea, hunger, saturation,
haste, fatigue, conduit power
* the following effects should work with mobs:
invisibility, regeneration, poison, withering,
strength, weakness, levitation, glowing
* the following effects have no effect on mobs
(but can be applied with the API):
bad omen, hero of the village
2024-04-14 07:48:10 +02:00
the-real-herowl
6c0d6cde5d
Allowed infinite effect duration
2024-04-14 07:48:10 +02:00
the-real-herowl
167a450295
Added the option to remove and clear effects...
...
...with the /effect command.
Also made the API for clearing effects more robust.
2024-04-14 07:48:10 +02:00
the-real-herowl
34114b0d87
Allowed giving effect without particles
...
...both with API and the /effect command
2024-04-14 07:48:10 +02:00
the-real-herowl
ccf3346000
Typos fixed
2024-04-14 07:48:10 +02:00
the-real-herowl
27eeb3a4d1
Tooltip and color fixes
2024-04-14 07:48:10 +02:00
the-real-herowl
c5238be52d
Expanded brewing recipe API
...
Added recipes using thick or mundane potion
2024-04-14 07:48:10 +02:00
the-real-herowl
3a258af77c
Added potions for new effects
...
* also added some new brewing recipes
2024-04-14 07:48:10 +02:00
the-real-herowl
3674e318a4
Added strength and weakness potions
...
Also fixed potent slowness potion level
Also fixed slowness and swiftness effect descriptions
2024-04-14 07:48:10 +02:00
the-real-herowl
ccf72ce106
New brewing recipes registering API
...
Also migrated all recipes to the new system
2024-04-14 07:48:10 +02:00
the-real-herowl
dc4920d9d9
Brewing fully works with the new system
2024-04-14 07:48:10 +02:00
the-real-herowl
a79fcdb60b
Brewing somewhat works with the new API
2024-04-14 07:48:10 +02:00
the-real-herowl
51ff0a2043
Added glowing effect
...
Also added on_save_effect callback to run cleanup
2024-04-14 07:48:10 +02:00
the-real-herowl
d0e9123078
Fixed running on_end for effects that aren't ending
2024-04-14 07:48:10 +02:00
the-real-herowl
aade0d19e7
Reserve some more keywords in register_effect()
2024-04-14 07:48:09 +02:00
the-real-herowl
b1146bf4d6
Further (mcl_)luck functionality
...
* XP from mob breeding impacted by luck
* eye of ender explosion chance impacted by luck
* fishing loot impacted by luck
* melee critical damage impacted by luck
* also fixed 2 scripts marked as "executable"
2024-04-14 07:48:09 +02:00
the-real-herowl
e8f9b19996
Made some random rolls affected by mcl_luck
...
* xp bottle
* bow and crossbow crits
* megacrits added for mcl_bows, achievable only by (mcl_)luck
2024-04-14 07:48:09 +02:00
the-real-herowl
2b29bad79a
Added mcl_luck API
...
Luck and Bad Luck effects use the mcl_luck API now
The API is unused for now
2024-04-14 07:48:09 +02:00
the-real-herowl
b0ba4e78a7
Added luck and bad luck effects
...
They're no-op for now
2024-04-14 07:48:09 +02:00
the-real-herowl
fef6c44627
Added some effect descriptions
2024-04-14 07:48:09 +02:00
the-real-herowl
2615556a2e
Added conduit power
2024-04-14 07:48:09 +02:00
the-real-herowl
5c832d27b1
Haste and fatigue expanded and improved
...
* abstracted and refactored some parts of haste and fatigue
* added and exposed new mcl_potions API functions
* fixed haste and fatigue not altering the hand
* mcl_meshhand now calls into mcl_potions when resetting the hand
2024-04-14 07:48:09 +02:00
the-real-herowl
cdb9a125b6
Capped fatigue effect on punching
...
This fixes a crash, too
Also updates toolcaps on gamemode change
2024-04-14 07:48:09 +02:00
the-real-herowl
c56a6764ad
Improved haste and fatigue effects
...
* fixed a few crashes related to unusual effect levels
* added haste and fatigue combat functionality
* added some cleanup to avoid hangover unstackable items
* capped the slowdown from fatigue at 5 minutes digging time
* (despite the above, if a tool has a longer time set in definition,
that still works)
* removed an unused "global" variable
2024-04-14 07:48:09 +02:00
the-real-herowl
ebfd6baf29
Added haste and fatigue
2024-04-14 07:48:09 +02:00
the-real-herowl
9ed4cb7cc4
Added dolphin's grace
2024-04-14 07:48:09 +02:00
the-real-herowl
2b705f4075
Added strength and weakness effects
...
* also highest effect level displayed in HUD set to 3000
* also improved indicating effects with strange factors in HUD
2024-04-14 07:48:09 +02:00
the-real-herowl
17a607147d
Renamed some functions and variables
...
* changed names referring to player where it does support mobs
* also added an is_player() check in one function
2024-04-14 07:48:09 +02:00
the-real-herowl
118f1875a2
Improved descriptions
2024-04-14 07:48:09 +02:00
the-real-herowl
08b359d50f
Improved nausea
2024-04-14 07:48:09 +02:00
the-real-herowl
b03a0c2432
Added time_override to FOV API
...
time_override can be used when applying or removing modifiers
2024-04-14 07:48:09 +02:00
the-real-herowl
9b3413f166
Improved the darkness effect
2024-04-14 07:48:09 +02:00
the-real-herowl
b404b14ad0
Added darkness
2024-04-14 07:48:09 +02:00
the-real-herowl
872d249169
Added nausea
2024-04-14 07:48:09 +02:00
the-real-herowl
d16ec11420
Fixed graphical features of some effects
...
* loading fixed (by adding on_load)
* absorption bar never reaching end fixed
2024-04-14 07:48:09 +02:00
the-real-herowl
684c3cc0c7
Added blindness effect
...
(also improved TT descriptions of some effects)
2024-04-14 07:48:09 +02:00
the-real-herowl
b788f12683
Added frost effect
2024-04-14 07:48:09 +02:00
the-real-herowl
1f9350be20
Added HP hudbar look modifier API
...
(for now in mcl_potions)
2024-04-14 07:48:09 +02:00
the-real-herowl
34a495ee57
Add hero of the village effect
2024-04-14 07:48:09 +02:00
the-real-herowl
0f2f470ade
Added food poisoning and saturation effects
2024-04-14 07:48:09 +02:00
the-real-herowl
cf09fcdaa4
Added some missing effects and improved API
...
* added a way to have a damage modifier relying on type instead of flag
* added Slow Falling
* added Levitation
* added Health Boost
* added Absorption
2024-04-14 07:48:09 +02:00
the-real-herowl
28ce8e15a9
Improved damage mods in effects, resistance effect
2024-04-14 07:48:09 +02:00
the-real-herowl
34397c049d
New effect icons
2024-04-14 07:48:09 +02:00