Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Java Edition protocol/Slot data

From SAS Gaming Wiki

The Slot data structure defines how an item is represented when inside an inventory window of any kind, such as a chest or furnace.

This page presents the new Slot data structure, using structured components. You can find the documentation of the old structure, that utilizes raw NBT data, here.

Format

Name Type Meaning
Item Count Template:Type The item count. Every following field is only present if this value is greater than zero.
Item ID Template:Type Template:Type The item ID. Item IDs are distinct from block IDs; see Data Generators for more information.
Number of components to add Template:Type Template:Type Number of elements present in the first data component array
Number of components to remove Template:Type Template:Type Number of elements present in the second data component array. This serve as a way to remove the default component values that are present on some items.
Components to add Component type Template:Type Template:Type Template:Type Template:Type The type of component. See Structured components for more detail.
Component data Varies The component-dependent data. See Structured components for more detail.
Components to remove Component type Template:Type Template:Type Template:Type Template:Type The type of component. See Structured components for more detail.


Hashed Format

Similar to the usual slot format, but with the notable difference that data component values are encoded as CRC32C (note: CRC32C is not the same thing as CRC32) checksums. The way the checksum is generated is currently undocumented. It's currently only used in the click container packet.

Name Type Meaning
Has Item Template:Type Every following field is only present if this value is true.
Item ID Template:Type Template:Type The item ID. Item IDs are distinct from block IDs; see Data Generators for more information.
Item Count Template:Type Template:Type The item count.
Components to add Component type Template:Type Template:Type Template:Type Template:Type The type of component. See Structured components for more detail.
Component data hash Template:Type A CRC32C (note: CRC32C is not the same thing as CRC32) checksum of the component data. Currently undocumented.
Components to remove Component type Template:Type Template:Type Template:Type Template:Type The type of component. See Structured components for more detail.

Structured components

The complete list of available components is described below.

For a more in-depth description, and information on how the items below are encoded with the NBT format, check here.

Type Name Description Data
0 minecraft:custom_data Customizable data that doesn't fit any specific component. As follows:
Name Type Description
Data Template:Type Always a Compound Tag.
1 minecraft:max_stack_size Maximum stack size for the item. As follows:
Name Type Description
Max Stack Size Template:Type Ranges from 1 to 99.
2 minecraft:max_damage The maximum damage the item can take before breaking. As follows:
Name Type Description
Max Damage Template:Type
3 minecraft:damage The current damage of the item. As follows:
Name Type Description
Damage Template:Type
4 minecraft:unbreakable Marks the item as unbreakable. no fields
5 minecraft:custom_name Item's custom name.
Normally shown in italic, and changeable at an anvil.
As follows:
Name Type Description
Name Template:Type
6 minecraft:item_name Override for the item's default name.
Shown when the item has no custom name.
As follows:
Name Type Description
Name Template:Type
7 minecraft:item_model Item's model. As follows:
Name Type Description
Model Template:Type
8 minecraft:lore Item's lore. As follows:
Name Type Description
Lines Template:Type of Template:Type
9 minecraft:rarity Item's rarity.
This affects the default color of the item's name.
As follows:
Name Type Description
Rarity Template:Type Template:Type Can be one of the following:
  • 0 - Common (white)
  • 1 - Uncommon (yellow)
  • 2 - Rare (aqua)
  • 3 - Epic (pink)
10 minecraft:enchantments The enchantments of the item. As follows:
Name Type Description
Enchantment Type ID Template:Type Template:Type Template:Type The ID of the enchantment in the minecraft:enchantment registry.
Level Template:Type The level of the enchantment.
11 minecraft:can_place_on List of blocks this block can be placed on when in adventure mode. As follows:
Name Type Description
Block Predicates Template:Type of Block Predicate See Block Predicate.
12 minecraft:can_break List of blocks this item can break when in adventure mode. As follows:
Name Type Description
Block Predicates Template:Type of Block Predicate See Block Predicate.
13 minecraft:attribute_modifiers The attribute modifiers of the item. As follows:
Name Type Description
Attribute Modifier Attribute ID Template:Type Template:Type The attribute to be modified (ID in the minecraft:attribute registry).
Modifier ID Template:Type The modifier's unique ID.
Value Template:Type The modifier's value.
Operation Template:Type Template:Type The operation to be applied upon the value. Can be one of the following:
  • 0 - Add
  • 1 - Multiply base
  • 2 - Multiply total
Slot Template:Type Template:Type The item slot placement required for the modifier to have effect.
Can be one of the following:
  • 0 - Any
  • 1 - Main hand
  • 2 - Off hand
  • 3 - Hand
  • 4 - Feet
  • 5 - Legs
  • 6 - Chest
  • 7 - Head
  • 8 - Armor
  • 9 - Body
14 minecraft:custom_model_data Value for the item predicate when using custom item models.
More info can be found here.
As follows:
Name Type Description
Floats Template:Type of Template:Type
Flags Template:Type of Template:Type
Strings Template:Type of Template:Type
Colors Template:Type of Template:Type
15 minecraft:tooltip_display Allows you to hide all or parts of the item tooltip. As follows:
Name Type Description
Hide tooltip Template:Type Whether to hide the tooltip entirely.
Hidden components Template:Type of Template:Type Template:Type The IDs of data components in the minecraft:data_component_type registry to hide.
16 minecraft:repair_cost Accumulated anvil usage cost. The client displays "Too Expensive" if the value is greater than 40 and the player is not in creative mode (more specifically, if they don't have the insta-build flag enabled).
This behavior can be overridden by setting the level with the Set Container Property packet.
As follows:
Name Type Description
Cost Template:Type
17 minecraft:creative_slot_lock Marks the item as non-interactive on the creative inventory (the first 5 rows of items).
This is used internally by the client on the paper icon in the saved hot-bars tab.
no fields
18 minecraft:enchantment_glint_override Overrides the item glint resulted from enchantments As follows:
Name Type Description
Has Glint Template:Type
19 minecraft:intangible_projectile Marks the projectile as intangible (cannot be picked-up). As follows:
Name Type Description
Empty Template:Type Always an empty Compound Tag.
20 minecraft:food Makes the item restore the player's hunger bar when consumed. As follows:
Name Type Description
Nutrition Template:Type Non-negative
Saturation Modifier Template:Type How much saturation will be given after consuming the item.
Can Always Eat Template:Type Whether the item can always be eaten, even at full hunger.
21 minecraft:consumable Makes the item consumable. As follows:
Name Type Description
Consume seconds Template:Type How long it takes to consume the item.
Animation Template:Type Template:Type 0: none, 1: eat, 2: drink, 3: block, 4: bow, 5: spear, 6: crossbow, 7: spyglass, 8: toot_horn, 9: brush
Sound Template:Type Template:Type ID in the minecraft:sound_event registry, or an inline definition.
Has consume particles Template:Type
Effects Template:Type of Consume Effect Effects to apply on consumption. See Consume Effect.
22 minecraft:use_remainder This specifies the item produced after using the current item. In the Notchian server, this is used for stews, which turn into bowls. As follows:
Name Type Description
Remainder Template:Type
23 minecraft:use_cooldown Cooldown to apply on use of the item. As follows:
Name Type Description
Seconds Template:Type
Cooldown group Template:Type Template:Type Group of items to apply the cooldown to. If absent defaults to the item's identifier.
24 minecraft:damage_resistant Marks this item as damage resistant.
The client won't render the item as being on-fire if this component is present.
As follows:
Name Type Description
Types Template:Type Tag specifying damage types the item is immune to. Not prefixed by '#'!.
25 minecraft:tool Alters the speed at which this item breaks certain blocks As follows:
Name Type Description
Rule Blocks Template:Type Template:Type The blocks this rule applies to (IDs in the minecraft:block registry).
Speed Template:Type Template:Type The speed at which the tool breaks this rules' blocks.
Correct Drop For Blocks Template:Type Template:Type Whether items should drop only if this is the correct tool.
Default Mining Speed Template:Type The mining speed in case none of the previous rule were matched.
Damage Per Block Template:Type The amount of damage the item takes per block break.
Can Destroy Blocks In Creative Template:Type If false, this tool prevents the player from breaking blocks in creative mode.
26 minecraft:weapon Item treated as a weapon As follows:
Name Type Description
Damage Per Attack Template:Type
Disable Blocking For Template:Type In Seconds
27 minecraft:enchantable Allows the item to be enchanted by an enchanting table. As follows:
Name Type Description
Value Template:Type Opaque internal value controlling how expensive enchantments may be offered.
28 minecraft:equippable Allows the item to be equipped by the player. As follows:
Name Type Description
Slot Template:Type Template:Type 0: mainhand, 1: feet, 2: legs, 3: chest, 4: head, 5: offhand, 6: body
Equip sound Template:Type Template:Type ID in the minecraft:sound_event registry, or an inline definition.
Model Template:Type Template:Type
Camera overlay Template:Type Template:Type
Allowed entities Template:Type Template:Type IDs in the minecraft:entity_type registry.
Dispensable Template:Type
Swappable Template:Type
Damage on hurt Template:Type
Can be sheared Template:Type
Shearing sound Template:Type Template:Type ID in the minecraft:sound_event registry, or an inline definition.
29 minecraft:repairable Items that can be combined with this item in an anvil to repair it. As follows:
Name Type Description
Items Template:Type IDs in the minecraft:item registry.
30 minecraft:glider Makes the item function like elytra. no fields
31 minecraft:tooltip_style Custom textures for the item tooltip. As follows:
Name Type Description
Style Template:Type
32 minecraft:death_protection Makes the item function like a totem of undying. As follows:
Name Type Description
Effects Template:Type of Consume Effect Effects to apply on consumption. See Consume Effect.
33 minecraft:blocks_attacks Makes the item act like a shield. As follows:
Name Type Description
Block delay seconds Template:Type
Disable cooldown scale Template:Type
Damage reductions Horizontal blocking angle Template:Type Template:Type
Type Template:Type Template:Type IDs in the minecraft:damage_type registry.
Base Template:Type
Factor Template:Type
Item damage threshold Template:Type
Item damage base Template:Type
Item damage factor Template:Type
Bypassed by Template:Type Template:Type
Block sound Template:Type Template:Type Template:Type
Disable sound Template:Type Template:Type Template:Type
34 minecraft:stored_enchantments The enchantments stored in this enchanted book. As follows:
Name Type Description
Enchantment Type ID Template:Type Template:Type Template:Type The ID of the enchantment in the minecraft:enchantment registry.
Level Template:Type The level of the enchantment.
35 minecraft:dyed_color Color of dyed leather armor. As follows:
Name Type Description
Color Template:Type The RGB components of the color, encoded as an integer.
36 minecraft:map_color Color of the markings on the map item model. As follows:
Name Type Description
Color Template:Type The RGB components of the color, encoded as an integer.
37 minecraft:map_id The ID of the map. As follows:
Name Type Description
ID Template:Type
38 minecraft:map_decorations Icons present on a map. As follows:
Name Type Description
Data Template:Type Always a Compound Tag.
39 minecraft:map_post_processing Used internally by the client when expanding or locking a map. Display extra information on the item's tooltip when the component is present. As follows:
Name Type Description
Type Template:Type Template:Type Type of post processing. Can be either:
  • 0 - Lock
  • 1 - Scale
40 minecraft:charged_projectiles Projectiles loaded into a charged crossbow. As follows:
Name Type Description
Projectiles Template:Type of Template:Type The projectiles.
41 minecraft:bundle_contents Contents of a bundle. As follows:
Name Type Description
Items Template:Type of Template:Type The contained items.
42 minecraft:potion_contents Visual and effects of a potion item. As follows:
Name Type Description
Potion ID Template:Type Template:Type The ID of the potion type in the minecraft:potion registry. If present, the potion has the default effects associated with the potion type.
Custom Color Template:Type Template:Type The RGB components of the color, encoded as an integer. If absent, it uses the default color associated with the potion type.
Custom Effects Template:Type of Potion Effect Any custom effects the potion might have. See Potion Effect.
Custom Name Template:Type
43 minecraft:potion_duration_scale A duration multiplier for items that also have the minecraft:potion_contents component. As follows:
Name Type
Effect Multiplier Template:Type
44 minecraft:suspicious_stew_effects Effects granted by a suspicious stew. As follows:
Name Type Description
Effect Type ID Template:Type Template:Type Template:Type The ID of the effect in the minecraft:mob_effect registry.
Duration Template:Type The duration of the effect.
45 minecraft:writable_book_content Content of a writable book. As follows:
Name Type Description
Page Raw Content Template:Type (100) Template:Type (1024) The raw text of the page.
Filtered Content Template:Type Template:Type (1024) The content after passing through chat filters.
46 minecraft:written_book_content Content of a written and signed book. As follows:
Name Type Description
Raw Title Template:Type (32) The raw title of the book.
Filtered Title Template:Type Template:Type (32) The title after going through chat filters.
Author Template:Type
Generation Template:Type
Page Raw Content Template:Type (100) Template:Type (1024) The raw text of the page.
Filtered Content Template:Type Template:Type (1024) The content after passing through chat filters.
Resolved Template:Type Whether entity selectors have already been resolved.
47 minecraft:trim Armor's trim pattern and color As follows:
Name Type Description
Trim Material Template:Type Trim Material ID in the minecraft:trim_material registry, or an inline definition.
Trim Pattern Template:Type Trim Pattern ID in the minecraft:trim_pattern registry, or an inline definition.
48 minecraft:debug_stick_state State of the debug stick As follows:
Name Type Description
Data Template:Type States of previously interacted blocks. Always a Compound Tag.
49 minecraft:entity_data Data for the entity to be created from this item. As follows:
Name Type Description
Entity Type Template:Type ID in the minecraft:entity_type registry.
Data Template:Type Always a Compound Tag.
50 minecraft:bucket_entity_data Data of the entity contained in this bucket. As follows:
Name Type Description
Data Template:Type Always a Compound Tag.
51 minecraft:block_entity_data Data of the block entity to be created from this item. As follows:
Name Type Description
Block Entity Type Template:Type ID in the minecraft:block_entity_type registry.
Data Template:Type Always a Compound Tag.
52 minecraft:instrument The sound played when using a goat horn. As follows:
Name Type Description
Instrument Template:Type Instrument ID in the minecraft:instrument registry, or an inline definition.
53 minecraft:provides_trim_material Used to make an item into a valid armor trim material. As follows:
Name Type Description
Mode Template:Type Template:Type Defines how the following field is read, either referenced or direct.
Material Varies
Mode Data Description
0 Template:Type The name of a material.
1 Template:Type Trim Material An ID in the minecraft:trim_material registry or a direct trim material definition.
54 minecraft:ominous_bottle_amplifier Amplifier for the effect of an ominous bottle. As follows:
Name Type Description
Amplifier Template:Type Between 0 and 4.
55 minecraft:jukebox_playable The song this item will play when inserted into a jukebox.
Template:Warning
As follows:
Name Type Description
Mode Template:Type Template:Type Whether the jukebox song is specified directly, or just referenced by name. This defines how the following field is read.
Jukebox Song Varies
Mode Data Description
0 Template:Type The name of a jukebox song in its respective registry.
1 Template:Type Jukebox Song ID in the minecraft:jukebox_song registry or a direct jukebox song.
56 minecraft:provides_banner_patterns Used to make an item into a valid banner pattern material. As follows:
Name Type Description
Key Template:Type A pattern identifier like #minecraft:pattern_item/globe.
57 minecraft:recipes The recipes this knowledge book unlocks. As follows:
Name Type Description
Data Template:Type Always a Compound Tag.
58 minecraft:lodestone_tracker The lodestone this compass points to. As follows:
Name Type Description
Has Global Position Template:Type Whether this lodestone points to a position, otherwise it spins randomly.
Dimension Template:Type The dimension the compass points to. Only present if Has Global Position is true.
Position Template:Type The position the compass points to. Only present if Has Global Position is true.
Tracked Template:Type Whether the component is removed when the associated lodestone is broken.
59 minecraft:firework_explosion Properties of a firework star. As follows:
Name Type Description
Explosion Firework Explosion See Firework Explosion.
60 minecraft:fireworks Properties of a firework. As follows:
Name Type Description
Flight Duration Template:Type
Explosions Template:Type of Firework Explosion See Firework Explosion.
61 minecraft:profile Game Profile of a player's head. As follows:
Name Type Description
Profile Template:Type
62 minecraft:note_block_sound Sound played by a note block when this player's head is placed on top of it. As follows:
Name Type Description
Sound Template:Type
63 minecraft:banner_patterns Patterns of a banner or banner applied to a shield. As follows:
Name Type Description
Layer Pattern Type Template:Type Template:Type Banner Pattern An ID in the minecraft:banner_pattern registry, or an inline definition.
Color Dye Color See Dye Color.
64 minecraft:base_color Base color of the banner applied to a shield. As follows:
Name Type Description
Color Dye Color See Dye Color.
65 minecraft:pot_decorations Decorations on the four sides of a pot. As follows:
Name Type Description
Decorations Template:Type (4) of Template:Type Template:Type The ID of the items in the minecraft:item registry.
66 minecraft:container Items inside a container of any type. As follows:
Name Type Description
Items Template:Type (256) of Template:Type
67 minecraft:block_state State of a block. As follows:
Name Type Description
Property Name Template:Type Template:Type
Value Template:Type
68 minecraft:bees Bees inside a hive. As follows:
Name Type Description
Bee Entity Type Template:Type Template:Type ID in the minecraft:entity_type registry.
Entity Data Template:Type Custom data for the entity, always a Compound Tag. Same structure as the minecraft:custom_data component.
Ticks In Hive Template:Type
Min Ticks In Hive Template:Type
69 minecraft:lock Name of the necessary key to open this container. As follows:
Name Type Description
Key Template:Type Always a String Tag.
70 minecraft:container_loot Loot table for an unopened container. As follows:
Name Type Description
Data Template:Type Always a Compound Tag.
71 minecraft:break_sound Changes the sound that plays when the item breaks. As follows:
Name Type Description
Sound Event Template:Type Template:Type ID in the minecraft:sound_event registry, or an inline definition.
72 minecraft:villager/variant The biome variant of a villager. As follows:
Name Type Description
Variant Template:Type Template:Type An ID in the minecraft:villager_type registry.
73 minecraft:wolf/variant The variant of a wolf. As follows:
Name Type Description
Variant Template:Type Template:Type An ID in the minecraft:wolf_variant registry.
74 minecraft:wolf/sound_variant The type of sounds that a wolf makes. As follows:
Name Type Description
Variant Template:Type Template:Type An ID in the minecraft:wolf_sound_variant registry.
75 minecraft:wolf/collar The dye color of the wolf's collar. As follows:
Name Type
Color Dye Color
76 minecraft:fox/variant The variant of a fox. As follows:
Name Type Description
Variant Template:Type Template:Type 0: red, 1: snow.
77 minecraft:salmon/size The size of a salmon. As follows:
Name Type Description
Type Template:Type Template:Type 0: small, 1: medium, 2: large.
78 minecraft:parrot/variant The variant of a parrot. As follows:
Name Type Description
Variant Template:Type Template:Type 0: red_blue, 1: blue, 2: green, 3: yellow_blue, 4: gray
79 minecraft:tropical_fish/pattern The pattern of a tropical fish. As follows:
Name Type Description
Pattern Template:Type Template:Type 0: kob, 1: sunstreak, 2: snooper, 3: dasher, 4: brinely, 5: spotty, 6: flopper, 7: stripey, 8: glitter, 9: blockfish, 10: betty, 11: clayfish.
80 minecraft:tropical_fish/base_color The base color of a tropical fish. As follows:
Name Type
Color Template:Type
81 minecraft:tropical_fish/pattern_color The pattern color of a tropical fish. As follows:
Name Type
Color Template:Type
82 minecraft:mooshroom/variant The variant of a mooshroom. As follows:
Name Type Description
Variant Template:Type Template:Type 0: red, 1: brown.
83 minecraft:rabbit/variant The variant of a rabbit. As follows:
Name Type Description
Variant Template:Type Template:Type 0: brown, 1: white, 2: black, 3: white splotched, 4: gold, 5: salt, 6: evil.
84 minecraft:pig/variant The variant of a pig. As follows:
Name Type Description
Variant Template:Type Template:Type An ID in the minecraft:pig_variant registry.
85 minecraft:cow/variant The variant of a cow. As follows:
Name Type Description
Variant Template:Type Template:Type An ID in the minecraft:cow_variant registry.
86 minecraft:chicken/variant The variant of a chicken. As follows:
Name Type Description
Mode Template:Type Template:Type Defines how the following field is read.
Variant Varies
Mode Data Description
0 Template:Type The name of a chicken variant.
1 Template:Type An ID in the minecraft:chicken_variant registry.
87 minecraft:frog/variant The variant of a frog. As follows:
Name Type Description
Variant Template:Type Template:Type An ID in the minecraft:frog_variant registry.
88 minecraft:horse/variant The variant of a horse. As follows:
Name Type Description
Variant Template:Type Template:Type 0: white, 1: creamy, 2: chestnut, 3: brown, 4: black, 5: gray, 6: dark brown.
89 minecraft:painting/variant The variant of a painting. As follows:
Name Type
Variant Painting Variant
90 minecraft:llama/variant The variant of a llama. As follows:
Name Type Description
Variant Template:Type Template:Type 0: creamy, 1: white, 2: brown, 3: gray.
91 minecraft:axolotl/variant The variant of an axolotl. As follows:
Name Type Description
Variant Template:Type Template:Type 0: lucy, 1: wild, 2: gold, 3: cyan, 4: blue.
92 minecraft:cat/variant The variant of a cat. As follows:
Name Type Description
Variant Template:Type Template:Type An ID in the minecraft:cat_variant registry.
93 minecraft:cat/collar The dye color of the cat's collar. As follows:
Name Type
Color Dye Color
94 minecraft:sheep/color The color of a sheep. As follows:
Name Type
Color Dye Color
95 minecraft:shulker/color The color of a shulker. As follows:
Name Type
Color Dye Color

Other types

Common types used in multiple components are described below.

Block Predicate

Describes a predicate used when block filtering is necessary. It can be parameterized to account for any combination of the type of block, the values of specific block state properties, or block entities' NBT data or data components.

Name Type Description
Blocks Template:Type Template:Type IDs in the minecraft:block registry. Present only when tied to specific types of blocks.
Properties Template:Type Template:Type of Property See Property structure below. Present only when tied to specific properties of blocks.
NBT Template:Type Template:Type
Data Components Template:Type of Exact Data Component Matcher A list of data components which must exactly match the target block.
Partial Data Component Predicates Template:Type of Partial Data Component Matcher A list of predicates to match the block's data components. Max length = 64.

Property

Name Type Description
Name Template:Type Name of the block state property.
Is Exact Match Template:Type Whether this is an exact value match, as opposed to ranged.
Exact Value Template:Type Template:Type Value of the block state property. Only present in exact match mode.
Min Value Template:Type Template:Type Minimum value of the block state property range. Only present in ranged match mode.
Max Value Template:Type Template:Type Maximum value of the block state property range. Only present in ranged match mode.

Exact Data Component Matcher

Name Type Description
Type Template:Type Template:Type ID of the data component as listed in the table of data component types above.
Value Structured Component Value of the data component.

Partial Data Component Matcher

Name Type Description
Type Template:Type Template:Type Type of predicate. 0: damage, 1: enchantments, 2: stored_enchantments, 3: potion_contents, 4: custom_data, 5: container, 6: bundle_contents, 7: firework_explosion, 8: fireworks, 9: writable_book_content, 10: written_book_content, 11: attribute_modifiers, 12: trim, 13: jukebox_playable.
Predicate Template:Type Compound Minecraft:Data component predicate encoded as an NBT compound tag.

Dye Color

A color from one of the 16 dye types.

Name Type Description
Color Template:Type Template:Type Can be one of the following:
  • 0 - White
  • 1 - Orange
  • 2 - Magenta
  • 3 - Light Blue
  • 4 - Yellow
  • 5 - Lime
  • 6 - Pink
  • 7 - Gray
  • 8 - Light Gray
  • 9 - Cyan
  • 10 - Purple
  • 11 - Blue
  • 12 - Brown
  • 13 - Green
  • 14 - Red
  • 15 - Black

Firework Explosion

Represents a firework explosion, consisting of a shape, colors, and extra details.

Name Type Description
Shape Template:Type Template:Type Can be one of the following:
  • 0 - Small ball
  • 1 - Large ball
  • 2 - Star
  • 3 - Creeper
  • 4 - Burst
Colors Template:Type of Template:Type The RGB components of the color, encoded as an integer.
Fade Colors Template:Type of Template:Type The RGB components of the color, encoded as an integer.
Has Trail Template:Type
Has Twinkle Template:Type

Potion Effect

Describes all the aspects of a potion effect.

Name Type Description
Type ID Template:Type Template:Type The ID of the effect in the minecraft:mob_effect registry.
Details Detail See Detail structure below.

The Detail structure is defined as follows:

Name Type Description
Amplifier Template:Type
Duration Template:Type -1 for infinite.
Ambient Template:Type Produces more translucent particle effects if true.
Show Particles Template:Type Completely hides effect particles if false.
Show Icon Template:Type Shows the potion icon in the inventory screen if true.
Hidden Effect Template:Type Detail Used to store the state of the previous potion effect when a stronger one is applied. This guarantees that the weaker one will persist, in case it lasts longer.

Template:Missing info

Trim Material

Template:See also

Name Type Description
Suffix Template:Type
Overrides Armor Material Type Template:Type Template:Type
Overriden Asset Name Template:Type
Description Template:Type

Trim Pattern

Template:See also

Name Type Description
Asset Name Template:Type
Template Item Template:Type
Description Template:Type
Decal Template:Type

Consume Effect

Name Type Description
Type Template:Type The ID of the effect in the minecraft:consume_effect_type registry.
Data Varies See below
Type Name Data
0 minecraft:apply_effects
Name Type Description
Effects Template:Type of Potion Effect
Probability Template:Type
1 minecraft:remove_effects
Name Type Description
Effects Template:Type
2 minecraft:clear_all_effects no fields
3 minecraft:teleport_randomly
Name Type Description
Diameter Template:Type
4 minecraft:play_sound
Name Type Description
Sound Template:Type


Instrument

Name Type Description
Sound Event Template:Type Template:Type The sound to be played.
Use Duration Template:Type The time it takes to use the instrument.
Range Template:Type The sound range of the instrument.
Description Template:Type Description shown in the item tooltip.

Jukebox Song

Name Type Description
Sound Event Template:Type Template:Type The sound to be played.
Description Template:Type The description shown in the item lore.
Duration Template:Type The duration the songs should play for, in seconds.
Output Template:Type The output strength given by a comparator. Between 0 and 15.

Name Type Description
Asset ID Template:Type Identifier of the asset.
Translation Key Template:Type

Template:License wiki.vg