1
0
Fork 0
Commit Graph

5397 Commits (potions_api_redo)

Author SHA1 Message Date
the-real-herowl 807f31c12e Updated Polish translation 2024-04-28 15:07:16 +00:00
the-real-herowl 84026893a5 Update template.txt 2024-04-28 15:07:16 +00:00
the-real-herowl 1fde77283d Improved compat alias visual 2024-04-28 15:07:16 +00:00
the-real-herowl e0fa57022b Legacy potion conversion extended 2024-04-28 15:07:16 +00:00
the-real-herowl dade37062e Legacy potions converter 2024-04-28 15:07:16 +00:00
the-real-herowl e13be8eb84 Add more sus stew effects 2024-04-28 15:07:16 +00:00
the-real-herowl 948e153a76 Migrated mobs to the new effects API 2024-04-28 15:07:16 +00:00
the-real-herowl d6a3ff46ec Migrated beacons to the new API
Also added more effects to them
2024-04-28 15:07:16 +00:00
the-real-herowl d4ec8ca86f Move most of the game to the new API 2024-04-28 15:07:16 +00:00
the-real-herowl d5c6d09e50 Documentation update 2024-04-28 15:07:16 +00:00
the-real-herowl 428cbee42f Support delayed drinking with new potions API 2024-04-28 15:07:16 +00:00
the-real-herowl c15319c59f 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-04-28 15:07:16 +00:00
the-real-herowl bb127da8cd Plant placement and drop fixes 2024-04-28 15:07:16 +00:00
the-real-herowl 641c3bee79 Fixed effects still being handled after mob death 2024-04-28 15:07:16 +00:00
the-real-herowl 6655722f0b Effects persist on loads for mobs too 2024-04-28 15:07:16 +00:00
the-real-herowl 931cf81546 Added some potion recipes
Also:
* changed the duration of saturation and food poisoning potions
* minor code changes
2024-04-28 15:07:16 +00:00
the-real-herowl 33bd9c34c6 Added the ominous potion 2024-04-28 15:07:16 +00:00
the-real-herowl bbcf0f71fa 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-28 15:07:16 +00:00
the-real-herowl 099f604253 Allowed infinite effect duration 2024-04-28 15:07:16 +00:00
the-real-herowl 0e76781b9b Added the option to remove and clear effects...
...with the /effect command.
Also made the API for clearing effects more robust.
2024-04-28 15:07:16 +00:00
the-real-herowl 671b115a70 Allowed giving effect without particles
...both with API and the /effect command
2024-04-28 15:07:16 +00:00
the-real-herowl 65d114a49e Typos fixed 2024-04-28 15:07:16 +00:00
the-real-herowl 6ac6637cf5 Tooltip and color fixes 2024-04-28 15:07:16 +00:00
the-real-herowl 9eb706a706 Expanded brewing recipe API
Added recipes using thick or mundane potion
2024-04-28 15:07:16 +00:00
the-real-herowl 028c3e74f5 Added potions for new effects
* also added some new brewing recipes
2024-04-28 15:07:16 +00:00
the-real-herowl 9d1fd7cecc Added strength and weakness potions
Also fixed potent slowness potion level
Also fixed slowness and swiftness effect descriptions
2024-04-28 15:07:16 +00:00
the-real-herowl dc9e069e1b New brewing recipes registering API
Also migrated all recipes to the new system
2024-04-28 15:07:16 +00:00
the-real-herowl 09f6b50fff Brewing fully works with the new system 2024-04-28 15:07:16 +00:00
the-real-herowl 4f0bb675d4 Brewing somewhat works with the new API 2024-04-28 15:07:16 +00:00
the-real-herowl 16cea8fff6 Added glowing effect
Also added on_save_effect callback to run cleanup
2024-04-28 15:07:16 +00:00
the-real-herowl 6ece76e4c9 Fixed running on_end for effects that aren't ending 2024-04-28 15:07:16 +00:00
the-real-herowl 623a3ada70 Reserve some more keywords in register_effect() 2024-04-28 15:07:16 +00:00
the-real-herowl b68dc03f88 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-28 15:07:16 +00:00
the-real-herowl c844157e3d 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-28 15:07:16 +00:00
the-real-herowl ad03d535d6 Added mcl_luck API
Luck and Bad Luck effects use the mcl_luck API now
The API is unused for now
2024-04-28 15:07:16 +00:00
the-real-herowl 476022b205 Added luck and bad luck effects
They're no-op for now
2024-04-28 15:07:16 +00:00
the-real-herowl 54f767b46b Added some effect descriptions 2024-04-28 15:07:16 +00:00
the-real-herowl 45321532c7 Added conduit power 2024-04-28 15:07:16 +00:00
the-real-herowl 2eca2018e3 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-28 15:07:16 +00:00
the-real-herowl ac679573f8 Capped fatigue effect on punching
This fixes a crash, too
Also updates toolcaps on gamemode change
2024-04-28 15:07:16 +00:00
the-real-herowl 2ccd988a6a 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-28 15:07:16 +00:00
the-real-herowl b4e229dac2 Added haste and fatigue 2024-04-28 15:07:16 +00:00
the-real-herowl c68edd9e25 Added dolphin's grace 2024-04-28 15:07:16 +00:00
the-real-herowl 663724674e 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-28 15:07:16 +00:00
the-real-herowl ae06803482 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-28 15:07:16 +00:00
the-real-herowl 74d03e70c2 Improved descriptions 2024-04-28 15:07:16 +00:00
the-real-herowl 8b2de1e33f Improved nausea 2024-04-28 15:07:16 +00:00
the-real-herowl 80d09918bf Improved the darkness effect 2024-04-28 15:07:16 +00:00
the-real-herowl 8d4f1575f1 Added darkness 2024-04-28 15:07:16 +00:00
the-real-herowl d73231ab4a Added nausea 2024-04-28 15:07:16 +00:00