Table of Contents

minecraft:set_potion

The minecraft:set_potion item modifier now allows multiple potions in the id field. If more than one potion is present, it will pick one randomly.

Fields

Name Description Type Default Value
id The potion to set on the minecraft:potion_contents data component. If multiple potions are present, a random one is picked. If no potion is present, no changes are made. A potion, list of potions or hash-prefixed potion tag

Example

{
  "function": "minecraft:set_potion",
  "id": "#minecraft:tradeable"
}