#(Iketatu) How to use potion_effects PotionEffectType on arrows?

15 messages · Page 1 of 1 (latest)

gray tusk
#

Potion effects can be applied to arrow entities like;

entity_tipped_arrow:
    type: entity
    entity_type: arrow
    mechanisms:
        potion: potion[potion_effects=<map[type=SLOWNESS;upgraded=true;extended=false]>]

However the first potion effect must a map with type from https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionType.html instead of https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html

Then adding the PotionEffectType as second like;

entity_tipped_arrow:
    type: entity
    entity_type: arrow
    mechanisms:
        potion: potion[potion_effects=<map[type=SLOWNESS;upgraded=true;extended=false]>|<map[type=CONFUSION;amplifier=2;duration=200t;ambient=false;particles=true;icon=true]>]

Doesn't seem to work. How can the potion effects from the bukkit PotionEffectType be used with potion effects mech?

delicate meteorBOT
#

(Iketatu) How to use potion_effects on arrow entity?

#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

gray tusk
#

!m itemtag.potion_effects

sonic nebulaBOT
# gray tusk !m itemtag.potion_effects

Sets the potion's potion effect(s).
The first item in the list must be a MapTag with keys:
"type" - from https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionType.html
"upgraded" - boolean, true means level 2 and false means level 1
"extended" - true means longer, false means shorter
"color" - optional, ColorTag

For example: [type=SPEED;upgraded=true;extended=false;color=RED]
This example produces an item labeled as "Potion of Swiftness - Speed II (1:30)"

Each followin...

Object

ItemTag

Input

ListTag

Tags

<ItemTag.effects_data> Returns a list of all potion effects on this item, in the same format as th...
<server.potion_types> Returns a list of all potion types known to the server. This is only their B...
<server.potion_effect_types> Returns a list of all potion effects known to the server. Can be used...

gray tusk
#

(Iketatu) How to use potion_effects PotionEffectType on arrows?

lethal briar
#

duplicate of #1030893107018993715