Entity format/potion contents

Minecraft Wiki article. Categories: Nbt_inherit_template_subpages, Top-level_data_pages

📌 Mirrored from Minecraft Wiki

This article is reproduced from Entity format/potion contents on the Minecraft Wiki. Mirrored from revision 3620348. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.

    • [String] potion: The ID of a potion type. Optional. See Potion#Item data.
    • [Int] custom_color: The overriding color of this potion texture, and/or the particles of the area effect cloud created.
    • [String] custom_name: An optional string used to generate containing stack name. The game uses the translation key item.minecraft.<item type>.effect.<value>. This name has a higher priority than the minecraft:item_name component, but lower than the minecraft:custom_name component.
    • [NBT List / JSON Array] custom_effects: A list of the additional effects that this item should apply.
      • [NBT Compound / JSON Object]: A single custom effect.
        • [String] id: The ID of the effect.
        • [Byte] amplifier: The amplifier of the effect, with level I having value 0. Optional, defaults to 0.
        • [Int] duration: The duration of the effect in ticks. Value -1 is treated as infinity. Values 0 or less than -2 are treated as 1. Optional, defaults to 1 tick.
        • [Boolean] ambient: Whether or not this is an effect provided by a beacon, conduit, or nautilus and therefore should be less intrusive on the screen. Optional, defaults to false.
        • [Boolean] show_particles: Whether or not this effect produces particles. Optional, defaults to true.
        • [Boolean] show_icon: Whether or not an icon should be shown for this effect. Optional, defaults to true.

Sources