the-real-herowl
65762eebd0
Documentation update
2024-05-19 01:27:51 +00:00
the-real-herowl
9bdbf9c163
Support delayed drinking with new potions API
2024-05-19 01:27:51 +00:00
the-real-herowl
1d697f0713
Added effect stacking option to the potions API
...
Also:
* Frost and Food Poisoning potion now stack their effects
* fixed a crash related to tipped arrows
2024-05-19 01:27:51 +00:00
the-real-herowl
3669995f65
Plant placement and drop fixes
2024-05-19 01:27:51 +00:00
the-real-herowl
78abbc2b9c
Added on_save_effect support for mobs
2024-05-19 01:27:51 +00:00
the-real-herowl
f90ad21181
Fixed effects still being handled after mob death
2024-05-19 01:27:51 +00:00
the-real-herowl
04ca064d7c
Effects persist on loads for mobs too
2024-05-19 01:27:51 +00:00
the-real-herowl
2a56ab3a42
Remove unused function in mcl_hunger
2024-05-19 01:27:51 +00:00
the-real-herowl
ffd7dfcd8b
Added some potion recipes
...
Also:
* changed the duration of saturation and food poisoning potions
* minor code changes
2024-05-19 01:27:51 +00:00
the-real-herowl
96f6997ee0
Added the ominous potion
2024-05-19 01:27:51 +00:00
the-real-herowl
33c06caae4
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-05-19 01:27:51 +00:00
the-real-herowl
7596eb5ee2
Allowed infinite effect duration
2024-05-19 01:27:51 +00:00
the-real-herowl
d0419443c3
Added the option to remove and clear effects...
...
...with the /effect command.
Also made the API for clearing effects more robust.
2024-05-19 01:27:51 +00:00
the-real-herowl
3dee2936ba
Allowed giving effect without particles
...
...both with API and the /effect command
2024-05-19 01:27:51 +00:00
the-real-herowl
2cb4443bb1
Typos fixed
2024-05-19 01:27:51 +00:00
the-real-herowl
69af7ea7c2
Tooltip and color fixes
2024-05-19 01:27:51 +00:00
the-real-herowl
41539a7667
Expanded brewing recipe API
...
Added recipes using thick or mundane potion
2024-05-19 01:27:51 +00:00
the-real-herowl
5d7d2e86b2
Added potions for new effects
...
* also added some new brewing recipes
2024-05-19 01:27:51 +00:00
the-real-herowl
fa268e654e
Added strength and weakness potions
...
Also fixed potent slowness potion level
Also fixed slowness and swiftness effect descriptions
2024-05-19 01:27:51 +00:00
the-real-herowl
3fd761e79b
New brewing recipes registering API
...
Also migrated all recipes to the new system
2024-05-19 01:27:51 +00:00
the-real-herowl
3da82fd8c4
Brewing fully works with the new system
2024-05-19 01:27:51 +00:00
the-real-herowl
e919d3e436
Brewing somewhat works with the new API
2024-05-19 01:27:51 +00:00
the-real-herowl
0a45ad3f04
Added glowing effect
...
Also added on_save_effect callback to run cleanup
2024-05-19 01:27:51 +00:00
the-real-herowl
5aa4dde874
Fixed running on_end for effects that aren't ending
2024-05-19 01:27:51 +00:00
the-real-herowl
c0c8dc180f
Reserve some more keywords in register_effect()
2024-05-19 01:27:51 +00:00
the-real-herowl
f8e46984da
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-05-19 01:27:51 +00:00
the-real-herowl
dd2207b89f
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-05-19 01:27:51 +00:00
the-real-herowl
31d6266da8
Added mcl_luck API
...
Luck and Bad Luck effects use the mcl_luck API now
The API is unused for now
2024-05-19 01:27:51 +00:00
the-real-herowl
90a3db8e5e
Added luck and bad luck effects
...
They're no-op for now
2024-05-19 01:27:51 +00:00
the-real-herowl
83f97191d9
Added some effect descriptions
2024-05-19 01:27:51 +00:00
the-real-herowl
898abf3741
Added conduit power
2024-05-19 01:27:51 +00:00
the-real-herowl
c26776d59d
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-05-19 01:27:51 +00:00
the-real-herowl
7f5caedf63
Capped fatigue effect on punching
...
This fixes a crash, too
Also updates toolcaps on gamemode change
2024-05-19 01:27:51 +00:00
the-real-herowl
f9621df7c5
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-05-19 01:27:51 +00:00
the-real-herowl
d1844f9814
Added haste and fatigue
2024-05-19 01:27:51 +00:00
the-real-herowl
d4c7b036df
Added dolphin's grace
2024-05-19 01:27:51 +00:00
the-real-herowl
d53ff109c1
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-05-19 01:27:51 +00:00
the-real-herowl
502589ea25
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-05-19 01:27:51 +00:00
the-real-herowl
b8a816471a
Improved descriptions
2024-05-19 01:27:51 +00:00
the-real-herowl
d85b1862c3
Improved nausea
2024-05-19 01:27:51 +00:00
the-real-herowl
0f6fd8607c
Added time_override to FOV API
...
time_override can be used when applying or removing modifiers
2024-05-19 01:27:51 +00:00
the-real-herowl
1001236153
Improved the darkness effect
2024-05-19 01:27:51 +00:00
the-real-herowl
9ec241c227
Added darkness
2024-05-19 01:27:51 +00:00
the-real-herowl
f0960d48db
Added nausea
2024-05-19 01:27:51 +00:00
the-real-herowl
7235e2a377
Fixed graphical features of some effects
...
* loading fixed (by adding on_load)
* absorption bar never reaching end fixed
2024-05-19 01:27:51 +00:00
the-real-herowl
2fc4565095
Added blindness effect
...
(also improved TT descriptions of some effects)
2024-05-19 01:27:51 +00:00
the-real-herowl
9b260cc9de
Added frost effect
2024-05-19 01:27:51 +00:00
the-real-herowl
77a91d1893
Added HP hudbar look modifier API
...
(for now in mcl_potions)
2024-05-19 01:27:51 +00:00
the-real-herowl
2bb3e22c07
Add hero of the village effect
2024-05-19 01:27:51 +00:00
the-real-herowl
ce2436c9a6
Added food poisoning and saturation effects
2024-05-19 01:27:51 +00:00