-
-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework Potions #4183
base: dev/feature
Are you sure you want to change the base?
Rework Potions #4183
Conversation
Also makes changes to ExprPotionEffect and adds a new converter to try and keep some syntax working (it is also syntax that flows nicely)
Marking as a draft again as more in-depth changes are now planned |
Modules do not exist yet so it's not really one
I don't agree with PotionEffectType to PotionEffect as a converter because you can simply do What converter you would need is PotionEffect to PotionEffectType. |
I've now pushed my major changes that have been sitting locally for a while now. This PR depends on #4573, so there is currently some temporary stuff going on to register the potion stuff. |
skript.bukkit -> skriptbukkit
This can be obtained from the addon instance
Allows converting SyntaxInfos back into Builders
Fixes current test failures
Other miscellaneous fixes
Description
This PR makes changes to EffPotion to have it follow vanilla behavior. This was done by reworking the whole thing to only use the PotionEffect class that Skript now supports (as of 2.5.2 iirc)
I added two new syntax options to EffPotionEffect as well. This allows users to create PotionEffects from syntax such as
swiftness 2
I also added a converter that converts PotionEffectTypes into PotionEffects. This allows a user to do something like:
apply speed to player for 5 seconds
There are still some changes to be made, so I am opening this as a draft.
It is worth nothing that the default duration from the /effect command is 30 seconds, so we should probably change that internally too.
NOTE: This PR contains breaking syntax changes. It should be merged in a future version, such as 2.6.1 or even as far as 2.7 (that can be decided).
Target Minecraft Versions: Any
Requirements: None
Related Issues: #4178