Name | potion_effects |
Object | ItemTag |
Input | ListTag |
Related Tags | <ItemTag.effects_data> Returns a list of all potion effects on this item, in the same format as the MapTag input to the mechanism. (...)
<server.potion_types> Returns a list of all potion types known to the server. (...)
<server.potion_effect_types> Returns a list of all potion effects known to the server. (...)
|
Description | Sets the item's potion effect(s).
This applies to Potion items, Tipped Arrow items, and Suspicious Stews. For potions or tipped arrows (not suspicious stew), the first item in the list must be a MapTag with keys: "base_type" - from https://minecraft.wiki/w/Potion#Item_data (optional, becomes an uncraftable potion when unset). "translation_id" - controls the translation key used for the default item display name. The translation key used is "item.minecraft.<item type>.effect.<id>" (optional). For example: [base_type=strong_swiftness] This example produces an item labeled as "Potion of Swiftness - Speed II (1:30)" Each following item in the list are potion effects, which must be a MapTag in Potion Effect Format. A very short full default potion item would be: potion[potion_effects=[base_type=regeneration] A (relatively) short full potion item would be: potion[potion_effects=<list[[base_type=regeneration]|[effect=speed;duration=10s]]>] (Note the list constructor to force data format interpretation, as potion formats can be given multiple ways and the system will get confused without a constructor) |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemPotion.java#L277 |