Open justaureus opened 3 years ago
That is a little bit more complicated than I had expected. I think my parser will not be able to parse the nested effects, I need to read more about the options in the effects.
EDIT: do you have a tutorial or more examples?
Hmm.. I'm not entirely sure about a tutorial but there is this very intuitive website for generating area effect clouds: https://mcstacker.net/
Navigate to the /summon page of the website (see image for location).
From there you can generate an area effect cloud and see all of the different options, including Effects:
McStacker is great for generating commandblock effects, but it doesn't quite work the same way internally within the API. Especially across multiple versions.
This is a list of things the API can get. https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/AreaEffectCloud.html
I will add the effects to the entities and a the support for potion effects
Pushed a new version with support for effects to github
Hello! I'm attempting to spawn an area effect cloud where the projectile hits, but it seems amplifier and show particles aren't supported with cannons. (I could live without show particles, but amplifier is required for having potion effects)
Console "error"(?):![image](https://user-images.githubusercontent.com/20129879/117749624-17803180-b1e0-11eb-9489-db3210a92c45.png)
My effect cloud:
Having the ability to set potion effects through the Effects tag of Area Effect Clouds is very handy for setting per-potion effect amplifiers and duration, as well as utilizing effects that aren't in potion form.