Minecraft:Data component format/consumable/consume effect: Difference between revisions
From SAS Gaming Wiki
More actions
Sync: updated from Minecraft |
Sync: updated from Minecraft |
||
| Line 17: | Line 17: | ||
** {{nbt|float|diameter}}: The diameter that the consumer is teleported within. Defaults to 16.0. | ** {{nbt|float|diameter}}: The diameter that the consumer is teleported within. Defaults to 16.0. | ||
**; If '''type''' is <code>play_sound</code>: Plays a sound. Additional fields: | **; If '''type''' is <code>play_sound</code>: Plays a sound. Additional fields: | ||
** {{nbt|string}}{{nbt|compound|sound}}: {{json_ref|sound event|inline=1}} played once when consumed. | ** {{nbt|string}}{{nbt|compound|sound}}: {{json_ref|server-side sound event|inline=1}} played once when consumed. | ||
*** {{nbt inherit/sound event|sounds}} | *** {{nbt inherit/sound event|sounds}} | ||
</onlyinclude> | </onlyinclude> | ||
Latest revision as of 11:46, 20 July 2026
- Template:Nbt: The kind of consume effect. Must be one of Template:Cd.
- If type is
apply_effects - Applies effects on the consumer. Additional fields:
- If type is
- Template:Nbt: A list of Minecraft:effect instances applied once consumed.
- Template:Nbt: A single effect.
- Template:Nbt: The ID of the effect.
- Template:Nbt: The amplifier of the effect, with level I having value 0. Optional, defaults to 0.
- Template:Nbt: The duration of the effect in Minecraft:ticks. Value -1 is treated as infinity. Values 0 or less than -2 are treated as 1. Optional, defaults to 1 tick.
- Template:Nbt: Whether or not this is an effect provided by a beacon and therefore should be less intrusive on the screen. Optional, defaults to Template:Cd.
- Template:Nbt: Whether or not this effect produces particles. Optional, defaults to Template:Cd.
- Template:Nbt: Whether or not an icon should be shown for this effect. Optional, defaults to Template:Cd.
- Template:Nbt: A single effect.
- Template:Nbt: The chance for the above effects to be applied once consumed. Must be a positive float between 0.0 and 1.0. Defaults to 1.0.
- If type is
remove_effects - Removes a some of effects from the consumer. Additional fields:
- If type is
- Template:NbtTemplate:Nbt: A set of effects removed once consumed, as either a single ID or list of IDs.
- If type is
clear_all_effects - Clears all effects of the consumer. No additional fields.
- If type is
teleport_randomly - Teleports the consumer randomly within a given range. Additional fields:
- If type is
- Template:Nbt: The diameter that the consumer is teleported within. Defaults to 16.0.
- If type is
play_sound - Plays a sound. Additional fields:
- If type is
- Template:NbtTemplate:Nbt: Template:Json ref played once when consumed.
- Template:Nbt: The kind of consume effect. Must be one of Template:Cd.