imported>LassiPulkkinen |
imported>Wackery |
| (3 intermediate revisions by one other user not shown) |
| Line 114: |
Line 114: |
| | 4 | | | 4 |
| | <code>minecraft:unbreakable</code> | | | <code>minecraft:unbreakable</code> |
| | Marks the item as unbrekable. | | | Marks the item as unbreakable. |
| | As follows: | | | As follows: |
| {| class="wikitable" | | {| class="wikitable" |
| Line 407: |
Line 407: |
| |- | | |- |
| | colspan="2"| Using converts to | | | colspan="2"| Using converts to |
| | colspan="2"| {{Type|Slot Data}} | | | colspan="2"| {{Type|Slot}} |
| | This specifies the item produced after consuming the current item. In the Notchian server, this is used for stews, which turn into bowls. Set this to Air if the item should be consumed normally without leaving any other item after. | | | This specifies the item produced after consuming the current item. In the Notchian server, this is used for stews, which turn into bowls. Set this to Air if the item should be consumed normally without leaving any other item after. |
| |- | | |- |
| Line 757: |
Line 757: |
| | As follows: | | | As follows: |
| {| class="wikitable" | | {| class="wikitable" |
| ! colspan="2"| Name | | ! Name |
| ! colspan="2"| Type | | ! Type |
| ! Description | | ! Description |
| |- | | |- |
| | colspan="2"| Trim Material Type | | | Trim Material |
| | colspan="2"| {{Type|VarInt}} | | | {{Type|ID or}} [[#Trim Material|Trim Material]] |
| | Identifier used to determine the data that follows. It can be either: | | | ID in the <code>minecraft:trim_material</code> registry, or an inline definition. |
| * 0 - Directly represents a trim material, with the necessary data following.
| |
| * Anything else - References a trim material in its registry, by the ID of <code>Trim Material Type - 1</code>.
| |
| |-
| |
| | colspan="2"| Asset Name
| |
| | colspan="2"| {{Type|Optional}} {{Type|String}}
| |
| | See [[Registry_Data#Armor_Trim_Material|Armor Trim Material Registry]]. Only present if Trim Material Type is 0.
| |
| |- | | |- |
| | colspan="2"| Ingredient | | | Trim Pattern |
| | colspan="2"| {{Type|Optional}} {{Type|VarInt}} | | | {{Type|ID or}} [[#Trim Pattern|Trim Pattern]] |
| | See [[Registry_Data#Armor_Trim_Material|Armor Trim Material Registry]]. Only present if Trim Material Type is 0.
| | | ID in the <code>minecraft:trim_pattern</code> registry, or an inline definition. |
| |- | | |- |
| | colspan="2"| Item Model Index | | | Show In Tooltip |
| | colspan="2"| {{Type|Optional}} {{Type|Float}}
| | | {{Type|Boolean}} |
| | See [[Registry_Data#Armor_Trim_Material|Armor Trim Material Registry]]. Only present if Trim Material Type is 0.
| |
| |-
| |
| | colspan="2"| Number of Overrides
| |
| | colspan="2"| {{Type|Optional}} {{Type|VarInt}}
| |
| | See [[Registry_Data#Armor_Trim_Material|Armor Trim Material Registry]]. Only present if Trim Material Type is 0.
| |
| |-
| |
| | rowspan="2"| Override
| |
| | Armor Material Type
| |
| | rowspan="2"| {{Type|Optional}} {{Type|Array}}
| |
| | {{Type|VarInt}} {{Type|Enum}}
| |
| | See [[Registry_Data#Armor_Trim_Material|Armor Trim Material Registry]]. Only present if Trim Material Type is 0.
| |
| |-
| |
| | Overriden Asset Name
| |
| | {{Type|String}}
| |
| | See [[Registry_Data#Armor_Trim_Material|Armor Trim Material Registry]]. Only present if Trim Material Type is 0.
| |
| |-
| |
| | colspan="2"| Description
| |
| | colspan="2"| {{Type|Optional}} {{Type|Text Component}}
| |
| | See [[Registry_Data#Armor_Trim_Material|Armor Trim Material Registry]]. Only present if Trim Material Type is 0.
| |
| |-
| |
| | colspan="2"| Trim Pattern Type
| |
| | colspan="2"| {{Type|VarInt}}
| |
| | Identifier used to determine the data that follows. It can be either:
| |
| * 0 - Directly represents a trim pattern, with the necessary data following.
| |
| * Anything else - References a trim pattern in its registry, by the ID of <code>Trim Pattern Type - 1</code>.
| |
| |-
| |
| | colspan="2"| Asset Name
| |
| | colspan="2"| {{Type|Optional}} {{Type|String}}
| |
| | See [[Registry_Data#Armor_Trim_Pattern|Armor Trim Pattern Registry]]. Only present if Trim Pattern Type is 0.
| |
| |-
| |
| | colspan="2"| Template Item
| |
| | colspan="2"| {{Type|Optional}} {{Type|VarInt}}
| |
| | See [[Registry_Data#Armor_Trim_Pattern|Armor Trim Pattern Registry]]. Only present if Trim Pattern Type is 0.
| |
| |-
| |
| | colspan="2"| Description
| |
| | colspan="2"| {{Type|Optional}} {{Type|Text Component}}
| |
| | See [[Registry_Data#Armor_Trim_Pattern|Armor Trim Pattern Registry]]. Only present if Trim Pattern Type is 0.
| |
| |-
| |
| | colspan="2"| Decal
| |
| | colspan="2"| {{Type|Optional}} {{Type|Boolean}}
| |
| | See [[Registry_Data#Armor_Trim_Pattern|Armor Trim Pattern Registry]]. Only present if Trim Pattern Type is 0.
| |
| |-
| |
| | colspan="2"| Show In Tooltip
| |
| | colspan="2"| {{Type|Boolean}} | |
| | Whether the trim information should be shown on the item's tooltip. | | | Whether the trim information should be shown on the item's tooltip. |
| |} | | |} |
| Line 889: |
Line 839: |
| ! Description | | ! Description |
| |- | | |- |
| | Instrument Type | | | Instrument |
| | {{Type|VarInt}} | | | {{Type|Id or}} [[#Instrument|Instrument]] |
| | Identifier used to determine the data that follows. It can be either: | | | ID in the <code>minecraft:instrument</code> registry, or an inline definition. |
| * 0 - Directly represents an instrument, with the necessary data following.
| |
| * Anything else - References an instrument in its registry, by the ID of <code>Instrument Type - 1</code>.
| |
| |-
| |
| | Sound Event
| |
| | {{Type|Optional}} [[#Sound_Event|Sound Event]]
| |
| | The sound to be played. Only present if Instrument Type is 0.
| |
| |-
| |
| | Use duration
| |
| | {{Type|Optional}} {{Type|Float}}
| |
| | The maximum range of the sound. Only present if Instrument Type is 0.
| |
| |-
| |
| | Range
| |
| | {{Type|Optional}} {{Type|Float}}
| |
| | The range of the instrument. Only present if Instrument Type is 0.
| |
| |} | | |} |
| |- | | |- |
| Line 939: |
Line 875: |
| | The name of the jukebox song in its respective registry. Only present if Direct Mode is false. | | | The name of the jukebox song in its respective registry. Only present if Direct Mode is false. |
| |- | | |- |
| | Jukebox Song Type | | | Jukebox Song |
| | {{Type|Optional}} {{Type|VarInt}} | | | {{Type|Optional}} {{Type|ID or}} [[#Jukebox Song|Jukebox Song]] |
| | Identifier used to determine the data that follows. It can be either:
| | | ID in the <code>minecraft:jukebox_song</code> registry. Only present if Direct Mode is true. |
| * 0 - Directly represents a jukebox song, with the necessary data following.
| |
| * Anything else - References a jukebox song in its registry, by the ID of <code>Jukebox Song Type - 1</code>.
| |
| Only present if Direct Mode is true.
| |
| |-
| |
| | Sound Event
| |
| | {{Type|Optional}} [[#Sound_Event|Sound Event]]
| |
| | The sound to be played. Only present if Direct Mode is true and Jukebox Song Type is 0.
| |
| |-
| |
| | Description
| |
| | {{Type|Optional}} {{Type|Text Component}}
| |
| | The description shown in the item lore. Only present if Direct Mode is true and Jukebox Song Type is 0.
| |
| |- | |
| | Duration
| |
| | {{Type|Optional}} {{Type|Float}}
| |
| | The duration the songs should play for, in seconds. Only present if Direct Mode is true and Jukebox Song Type is 0.
| |
| |-
| |
| | Output
| |
| | {{Type|Optional}} {{Type|VarInt}}
| |
| | The output strength given by a comparator. Between 0 and 15. Only present if Direct Mode is true and Jukebox Song Type is 0.
| |
| |- | | |- |
| | Show In Tooltip | | | Show In Tooltip |
| Line 1,468: |
Line 1,385: |
| |} | | |} |
|
| |
|
| === Sound Event === | | === Trim Material === |
|
| |
|
| Describes a sound that can be played.
| | {{See also|Registry_Data#Armor Trim Material}} |
| | |
| | {| class="wikitable" |
| | ! colspan="2"| Name |
| | ! colspan="2"| Type |
| | ! Description |
| | |- |
| | | colspan="2"| Asset Name |
| | | colspan="2"| {{Type|String}} |
| | | |
| | |- |
| | | colspan="2"| Ingredient |
| | | colspan="2"| {{Type|VarInt}} |
| | | |
| | |- |
| | | colspan="2"| Item Model Index |
| | | colspan="2"| {{Type|Float}} |
| | | |
| | |- |
| | | colspan="2"| Number of Overrides |
| | | colspan="2"| {{Type|VarInt}} |
| | | |
| | |- |
| | | rowspan="2"| Override |
| | | Armor Material Type |
| | | rowspan="2"| {{Type|Array}} |
| | | {{Type|VarInt}} {{Type|Enum}} |
| | | |
| | |- |
| | | Overriden Asset Name |
| | | {{Type|String}} |
| | | |
| | |- |
| | | colspan="2"| Description |
| | | colspan="2"| {{Type|Text Component}} |
| | |} |
| | |
| | === Trim Pattern === |
| | |
| | {{See also|Registry_Data#Armor Trim Pattern}} |
| | |
| | {| class="wikitable" |
| | ! Name |
| | ! Type |
| | ! Description |
| | |- |
| | | Asset Name |
| | | {{Type|String}} |
| | | |
| | |- |
| | | Template Item |
| | | {{Type|VarInt}} |
| | | |
| | |- |
| | | Description |
| | | {{Type|Text Component}} |
| | | |
| | |- |
| | | Decal |
| | | {{Type|Boolean}} |
| | | |
| | |} |
| | |
| | === Instrument === |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 1,477: |
Line 1,457: |
| ! Description | | ! Description |
| |- | | |- |
| | Sound Event Type | | | Sound Event |
| | | {{Type|Id or}} {{Type|Sound Event}} |
| | | The sound to be played. |
| | |- |
| | | Use duration |
| | {{Type|VarInt}} | | | {{Type|VarInt}} |
| | Identifier used to determine the data that follows. It can be either: | | | The maximum range of the sound. |
| * 0 - Directly represents a sound event, with the necessary data following.
| |
| * Anything else - References a sound event in its registry, by the ID of <code>Sound Event Type - 1</code>.
| |
| |- | | |- |
| | Sound Name | | | Range |
| | {{Type|Optional}} {{Type|Identifier}} | | | {{Type|Float}} |
| | Only present if Sound Event Type is 0. | | | The range of the instrument. |
| | |} |
| | |
| | === Jukebox Song === |
| | |
| | {| class="wikitable" |
| | ! Name |
| | ! Type |
| | ! Description |
| |- | | |- |
| | Has Fixed Range | | | Sound Event |
| | {{Type|Optional}} {{Type|Boolean}} | | | {{Type|Optional}} {{Type|Id or}} {{Type|Sound Event}} |
| | Whether this sound has a fixed range, as opposed to a variable volume based on distance. Only present if Sound Event Type is 0. | | | The sound to be played. |
| |- | | |- |
| | Fixed Range | | | Description |
| | | {{Type|Optional}} {{Type|Text Component}} |
| | | The description shown in the item lore. |
| | |- |
| | | Duration |
| | {{Type|Optional}} {{Type|Float}} | | | {{Type|Optional}} {{Type|Float}} |
| | The maximum range of the sound. Only present if Sound Event Type is 0 and Has Fixed Range is true. | | | The duration the songs should play for, in seconds. |
| |} | | |- |
| | | Output |
| | | {{Type|Optional}} {{Type|VarInt}} |
| | | The output strength given by a comparator. Between 0 and 15. |
| | |- |
|
| |
|
| [[Category:Protocol Details]] | | [[Category:Protocol Details]] |
| [[Category:Minecraft Modern]] | | [[Category:Minecraft Modern]] |
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
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
The item count. Every following field is only present if this value is greater than zero.
|
| Item ID
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
The item ID. Item IDs are distinct from block IDs; see Data Generators for more information.
|
| Number of components to add
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Number of elements present in the first data component array
|
| Number of components to remove
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
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
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}}
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}} {{#switch: Slot Data
|
Data types =
Enum
|
#default =
Enum
}}
|
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
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}}
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}} {{#switch: Slot Data
|
Data types =
Enum
|
#default =
Enum
}}
|
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
|
{{#switch: Slot Data
|
Data types =
NBT
|
#default =
NBT
}}
|
Always a Compound Tag.
|
|
| 1
|
minecraft:max_stack_size
|
Maximum stack size for the item.
|
As follows:
| Name
|
Type
|
Description
|
| Max Stack Size
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
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
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
|
|
| 3
|
minecraft:damage
|
The current damage of the item.
|
As follows:
| Name
|
Type
|
Description
|
| Damage
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
|
|
| 4
|
minecraft:unbreakable
|
Marks the item as unbreakable.
|
As follows:
| Name
|
Type
|
Description
|
| Show In Tooltip
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether the Unbreakable indicator should be shown on the item's tooltip.
|
|
| 5
|
minecraft:custom_name
|
Item's custom name. Normally shown in italic, and changeable at an anvil.
|
As follows:
|
| 6
|
minecraft:item_name
|
Override for the item's default name. Shown when the item has no custom name.
|
As follows:
|
| 7
|
minecraft:lore
|
Item's lore.
|
As follows:
| Name
|
Type
|
Description
|
| Number of Lines
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Number of elements in the following array.
|
| Lines
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}} of {{#switch: Slot Data
|
Data types =
Text Component
|
#default =
Text Component
}}
|
|
|
| 8
|
minecraft:rarity
|
Item's rarity. This affects the default color of the item's name.
|
As follows:
| Name
|
Type
|
Description
|
| Rarity
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}} {{#switch: Slot Data
|
Data types =
Enum
|
#default =
Enum
}}
|
Can be one of the following:
- 0 - Common (white)
- 1 - Uncommon (yellow)
- 2 - Rare (aqua)
- 3 - Epic (pink)
|
|
| 9
|
minecraft:enchantments
|
The enchantments of the item.
|
As follows:
| Name
|
Type
|
Description
|
| Number Of Enchantments
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Number of elements in the following array.
|
| Enchantment
|
Type ID
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}}
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}} {{#switch: Slot Data
|
Data types =
Enum
|
#default =
Enum
}}
|
The ID of the enchantment in the enchantment registry.
|
| Level
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
The level of the enchantment.
|
| Show In Tooltip
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether the list of enchantments should be shown on the item's tooltip.
|
|
| 10
|
minecraft:can_place_on
|
List of blocks this block can be placed on when in adventure mode.
|
As follows:
| Name
|
Type
|
Description
|
| Number Of Predicates
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Number of elements in the following array.
|
| Block Predicates
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}} of Block Predicate
|
See Block Predicate.
|
| Show In Tooltip
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether the Unbreakable indicator should be shown on the item's tooltip.
|
|
| 11
|
minecraft:can_break
|
List of blocks this item can break when in adventure mode.
|
As follows:
| Name
|
Type
|
Description
|
| Number Of Predicates
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Number of elements in the following array.
|
| Block Predicates
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}} of Block Predicate
|
See Block Predicate.
|
| Show In Tooltip
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether the Unbreakable indicator should be shown on the item's tooltip.
|
|
| 12
|
minecraft:attribute_modifiers
|
The attribute modifiers of the item.
|
As follows:
| Name
|
Type
|
Description
|
| Number Of Attributes
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Number of elements in the following array.
|
| Attribute
|
Type ID
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}}
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}} {{#switch: Slot Data
|
Data types =
Enum
|
#default =
Enum
}}
|
The ID of the attribute.
|
| Unique ID
|
{{#switch: Slot Data
|
Data types =
UUID
|
#default =
UUID
}}
|
The attribute's unique ID.
|
| Name
|
{{#switch: Slot Data
|
Data types =
String
|
#default =
String
}}
|
The attribute's name.
|
| Value
|
{{#switch: Slot Data
|
Data types =
Double
|
#default =
Double
}}
|
The attribute's value.
|
| Operation
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}} {{#switch: Slot Data
|
Data types =
Enum
|
#default =
Enum
}}
|
The operation to be applied upon the value. Can be one of the following:
- 0 - Add
- 1 - Multiply base
- 2 - Multiply total
|
| Slot
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}} {{#switch: Slot Data
|
Data types =
Enum
|
#default =
Enum
}}
|
The item slot placement required for the attribute 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
|
| Show In Tooltip
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether the list of attributes should be shown on the item's tooltip.
|
|
| 13
|
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
|
| Value
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
|
|
| 14
|
minecraft:hide_additional_tooltip
|
Hides the special item's tooltip of crossbow ("Projectile:"), banner pattern layers, goat horn instrument and others.
|
None.
|
| 15
|
minecraft:hide_tooltip
|
Hides the item's tooltip altogether.
|
None.
|
| 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
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
|
|
| 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.
|
None.
|
| 18
|
minecraft:enchantment_glint_override
|
Overrides the item glint resulted from enchantments
|
As follows:
| Name
|
Type
|
Description
|
| Has Glint
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
|
|
| 19
|
minecraft:intangible_projectile
|
Marks the projectile as intangible (cannot be picked-up).
|
None.
|
| 20
|
minecraft:food
|
Makes the item consumable.
|
As follows:
| Name
|
Type
|
Description
|
| Nutrition
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Non-negative
|
| Saturation Modifier
|
{{#switch: Slot Data
|
Data types =
Float
|
#default =
Float
}}
|
How much saturation will be given after consuming the item.
|
| Can Always Eat
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether the item can always be eaten, even at full hunger.
|
| Seconds To Eat
|
{{#switch: Slot Data
|
Data types =
Float
|
#default =
Float
}}
|
How long it takes to consume the item.
|
| Using converts to
|
{{#switch: Slot Data
|
Data types =
Slot
|
#default =
Slot
}}
|
This specifies the item produced after consuming the current item. In the Notchian server, this is used for stews, which turn into bowls. Set this to Air if the item should be consumed normally without leaving any other item after.
|
| Number of effects
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Number of elements in the following array.
|
| Effect
|
Type ID
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}}
|
Potion Effect
|
The potion effect. See Potion Effect.
|
| Probability
|
{{#switch: Slot Data
|
Data types =
Float
|
#default =
Float
}}
|
The probability for this effect to be chosen.
|
|
| 21
|
minecraft:fire_resistant
|
Marks this item as fire resistant. The client won't render the item as being on-fire if this component is present.
|
None.
|
| 22
|
minecraft:tool
|
Alters the speed at which this item breaks certain blocks
|
As follows:
| Name
|
Type
|
Description
|
| Number of Rules
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
The number of elements in the following array.
|
| Rule
|
Blocks
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}}
|
{{#switch: Slot Data
|
Data types =
ID Set
|
#default =
ID Set
}}
|
The blocks this rule applies to (IDs in the minecraft:block registry).
|
| Has Speed
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
|
| Speed
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
Float
|
#default =
Float
}}
|
The speed at which the tool breaks this rules' blocks. Only present if Has Speed is true.
|
| Has Correct Drop For Blocks
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
|
| Correct Drop For Blocks
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether items should drop only if this is the correct tool. Only present if Has Correct Drop For Blocks is true.
|
| Default Mining Speed
|
{{#switch: Slot Data
|
Data types =
Float
|
#default =
Float
}}
|
The mining speed in case none of the previous rule were matched.
|
| Damage Per Block
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
The amount of damage the item takes per block break.
|
|
| 23
|
minecraft:stored_enchantments
|
The enchantments stored in this enchanted book.
|
As follows:
| Name
|
Type
|
Description
|
| Number of enchantments
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Number of elements in the following array.
|
| Enchantment
|
Type ID
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}}
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}} {{#switch: Slot Data
|
Data types =
Enum
|
#default =
Enum
}}
|
The ID of the enchantment in the enchantment registry.
|
| Level
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
The level of the enchantment.
|
| Show In Tooltip
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether the list of enchantments should be shown on the item's tooltip.
|
|
| 24
|
minecraft:dyed_color
|
Color of dyed leather armor.
|
As follows:
| Name
|
Type
|
Description
|
| Color
|
{{#switch: Slot Data
|
Data types =
Int
|
#default =
Int
}}
|
The RGB components of the color, encoded as an integer.
|
| Show In Tooltip
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether the armor's color should be shown on the item's tooltip.
|
|
| 25
|
minecraft:map_color
|
Color of the markings on the map item model.
|
As follows:
| Name
|
Type
|
Description
|
| Color
|
{{#switch: Slot Data
|
Data types =
Int
|
#default =
Int
}}
|
The RGB components of the color, encoded as an integer.
|
|
| 26
|
minecraft:map_id
|
The ID of the map.
|
As follows:
| Name
|
Type
|
Description
|
| ID
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
|
|
| 27
|
minecraft:map_decorations
|
Icons present on a map.
|
As follows:
| Name
|
Type
|
Description
|
| Data
|
{{#switch: Slot Data
|
Data types =
NBT
|
#default =
NBT
}}
|
Always a Compound Tag.
|
|
| 28
|
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
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}} {{#switch: Slot Data
|
Data types =
Enum
|
#default =
Enum
}}
|
Type of post processing. Can be either:
|
|
| 29
|
minecraft:charged_projectiles
|
Projectiles loaded into a charged crossbow.
|
As follows:
| Name
|
Type
|
Description
|
| Number Of Projectiles
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
The number of elements in the following array.
|
| Projectiles
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}} of {{#switch: Slot Data
|
Data types =
Slot
|
#default =
Slot
}}
|
The projectiles.
|
|
| 30
|
minecraft:bundle_contents
|
Contents of a bundle.
|
As follows:
| Name
|
Type
|
Description
|
| Number Of Items
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
The number of elements in the following array.
|
| Items
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}} of {{#switch: Slot Data
|
Data types =
Slot
|
#default =
Slot
}}
|
The projectiles.
|
|
| 31
|
minecraft:potion_contents
|
Visual and effects of a potion item.
|
As follows:
| Name
|
Type
|
Description
|
| Has Potion ID
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether this potion has an ID in the potion registry. If true, it has the default effects associated with the potion type.
|
| Potion ID
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
The ID of the potion type in the potion registry. Only present if Has Potion ID is true.
|
| Has Custom Color
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether this potion has a custom color. If false, it uses the default color associated with the potion type.
|
| Custom Color
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
Int
|
#default =
Int
}}
|
The RGB components of the color, encoded as an integer. Only present if Has Custom Color is true.
|
| Number Of Custom Effects
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
The number of elements in the following array.
|
| Custom Effects
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}} of Potion Effect
|
Any custom effects the potion might have. See Potion Effect.
|
|
| 32
|
minecraft:suspicious_stew_effects
|
Effects granted by a suspicious stew.
|
As follows:
| Name
|
Type
|
Description
|
| Number Of Effects
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Number of elements in the following array.
|
| Effect
|
Type ID
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}}
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}} {{#switch: Slot Data
|
Data types =
Enum
|
#default =
Enum
}}
|
The ID of the effect in the potion effect type registry.
|
| Duration
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
The duration of the effect.
|
|
| 33
|
minecraft:writable_book_content
|
Content of a writable book.
|
As follows:
| Name
|
Type
|
Description
|
| Number Of Pages
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Number of elements in the following array.
|
| Page
|
Raw Content
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}} (100)
|
{{#switch: Slot Data
|
Data types =
String
|
#default =
String
}} (1024)
|
The raw text of the page.
|
| Has Filtered Content
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
|
| Filtered Content
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
String
|
#default =
String
}} (1024)
|
The content after passing through chat filters. Only present if Has Filtered Content is true.
|
|
| 34
|
minecraft:written_book_content
|
Content of a written and signed book.
|
As follows:
| Name
|
Type
|
Description
|
| Raw Title
|
{{#switch: Slot Data
|
Data types =
String
|
#default =
String
}} (32)
|
The raw title of the book.
|
| Has Filtered Title
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
|
| Filtered Title
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
String
|
#default =
String
}} (32)
|
The title after going through chat filters. Only present if Has Filtered Title is true.
|
| Author
|
{{#switch: Slot Data
|
Data types =
String
|
#default =
String
}}
|
|
| Generation
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
|
| Number Of Pages
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Number of elements in the following array.
|
| Page
|
Raw Content
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}} (100)
|
{{#switch: Slot Data
|
Data types =
TextComponent
|
#default =
TextComponent
}} (1024)
|
The raw text of the page.
|
| Has Filtered Content
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
|
| Filtered Content
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
Text Component
|
#default =
Text Component
}} (1024)
|
The content after passing through chat filters. Only present if Has Filtered Content is true.
|
| Resolved
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether entity selectors have already been resolved.
|
|
| 35
|
minecraft:trim
|
Armor's trim pattern and color
|
As follows:
| Name
|
Type
|
Description
|
| Trim Material
|
{{#switch: Slot Data
|
Data types =
ID or
|
#default =
ID or
}} Trim Material
|
ID in the minecraft:trim_material registry, or an inline definition.
|
| Trim Pattern
|
{{#switch: Slot Data
|
Data types =
ID or
|
#default =
ID or
}} Trim Pattern
|
ID in the minecraft:trim_pattern registry, or an inline definition.
|
| Show In Tooltip
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether the trim information should be shown on the item's tooltip.
|
|
| 36
|
minecraft:debug_stick_state
|
State of the debug stick
|
As follows:
| Name
|
Type
|
Description
|
| Data
|
{{#switch: Slot Data
|
Data types =
NBT
|
#default =
NBT
}}
|
States of previously interacted blocks. Always a Compound Tag.
|
|
| 37
|
minecraft:entity_data
|
Data for the entity to be created from this item.
|
As follows:
| Name
|
Type
|
Description
|
| Data
|
{{#switch: Slot Data
|
Data types =
NBT
|
#default =
NBT
}}
|
Always a Compound Tag.
|
|
| 38
|
minecraft:bucket_entity_data
|
Data of the entity contained in this bucket.
|
As follows:
| Name
|
Type
|
Description
|
| Data
|
{{#switch: Slot Data
|
Data types =
NBT
|
#default =
NBT
}}
|
Always a Compound Tag.
|
|
| 39
|
minecraft:block_entity_data
|
Data of the block entity to be created from this item.
|
As follows:
| Name
|
Type
|
Description
|
| Data
|
{{#switch: Slot Data
|
Data types =
NBT
|
#default =
NBT
}}
|
Always a Compound Tag.
|
|
| 40
|
minecraft:instrument
|
The sound played when using a goat horn.
|
As follows:
| Name
|
Type
|
Description
|
| Instrument
|
{{#switch: Slot Data
|
Data types =
Id or
|
#default =
Id or
}} Instrument
|
ID in the minecraft:instrument registry, or an inline definition.
|
|
| 41
|
minecraft:ominous_bottle_amplifier
|
Amplifier for the effect of an ominous bottle.
|
As follows:
| Name
|
Type
|
Description
|
| Amplifier
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Between 0 and 4.
|
|
| 42
|
minecraft:jukebox_playable
|
The song this item will play when inserted into a jukebox.
The Notchian client assumes that the server will always represent the jukebox song either by name, or reference an entry on its respective registry. Trying to directly specify a jukebox song (when Jukebox Song Type is 0) will cause the client to fail to parse it and subsequently disconnect, which is likely an unintended bug.
|
As follows:
| Name
|
Type
|
Description
|
| Direct Mode
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether the jukebox song is specified directly, or just referenced by name.
|
| Jukebox Song Name
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
Identifier
|
#default =
Identifier
}}
|
The name of the jukebox song in its respective registry. Only present if Direct Mode is false.
|
| Jukebox Song
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
ID or
|
#default =
ID or
}} Jukebox Song
|
ID in the minecraft:jukebox_song registry. Only present if Direct Mode is true.
|
| Show In Tooltip
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether the song should be shown on the item's tooltip.
|
|
| 43
|
minecraft:recipes
|
The recipes this knowledge book unlocks.
|
As follows:
| Name
|
Type
|
Description
|
| Data
|
{{#switch: Slot Data
|
Data types =
NBT
|
#default =
NBT
}}
|
Always a Compound Tag.
|
|
| 44
|
minecraft:lodestone_tracker
|
The lodestone this compass points to.
|
As follows:
| Name
|
Type
|
Description
|
| Has Global Position
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether this lodestone points to a position, otherwise it spins randomly.
|
| Dimension
|
{{#switch: Slot Data
|
Data types =
Identifier
|
#default =
Identifier
}}
|
The dimension the compass points to. Only present if Has Global Position is true.
|
| Position
|
{{#switch: Slot Data
|
Data types =
Position
|
#default =
Position
}}
|
The position the compass points to. Only present if Has Global Position is true.
|
| Tracked
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether the component is removed when the associated lodestone is broken.
|
|
| 45
|
minecraft:firework_explosion
|
Properties of a firework star.
|
As follows:
|
| 46
|
minecraft:fireworks
|
Properties of a firework.
|
As follows:
|
| 47
|
minecraft:profile
|
Game Profile of a player's head.
|
As follows:
| Name
|
Type
|
Description
|
| Has Name
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
|
| Name
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
String
|
#default =
String
}} (16)
|
Only present if Has Name is true.
|
| Has Unique ID
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
|
| Unique ID
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
UUID
|
#default =
UUID
}}
|
Only present if Has Unique ID is true.
|
| Number of Properties
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Number of elements in the following array.
|
| Property
|
Name
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}}
|
{{#switch: Slot Data
|
Data types =
String
|
#default =
String
}} (64)
|
|
| Value
|
{{#switch: Slot Data
|
Data types =
String
|
#default =
String
}}
|
|
| Has Signature
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
|
| Signature
|
{{#switch: Slot Data
|
Data types =
String
|
#default =
String
}} (1024)
|
Only present if Has Signature is true.
|
|
| 48
|
minecraft:note_block_sound
|
Sound played by a note block when this player's head is placed on top of it.
|
As follows:
|
| 49
|
minecraft:banner_patterns
|
Patterns of a banner or banner applied to a shield.
|
As follows:
| Name
|
Type
|
Description
|
| Number of Layers
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Number of elements in the following array.
|
| Layer
|
Pattern Type
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}}
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Identifier used to determine the data that follows. It can be either:
- 0 - Directly represents a pattern, with the necessary data following.
- Anything else - References a pattern in its registry, by the ID of
Pattern Type - 1.
|
| Asset ID
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
Identifier
|
#default =
Identifier
}}
|
Identifier of the asset. Only present if Pattern Type is 0.
|
| Translation Key
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
String
|
#default =
String
}}
|
Only present if Pattern Type is 0.
|
| Color
|
Dye Color
|
See Dye Color.
|
|
| 50
|
minecraft:base_color
|
Base color of the banner applied to a shield.
|
As follows:
|
| 51
|
minecraft:pot_decorations
|
Decorations on the four sides of a pot.
|
As follows:
| Name
|
Type
|
Description
|
| Number Of Decorations
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
The number of elements in the following array.
|
| Decorations
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}} (4) of {{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}} {{#switch: Slot Data
|
Data types =
Enum
|
#default =
Enum
}}
|
The ID of the items in the item registry.
|
|
| 52
|
minecraft:container
|
Items inside a container of any type.
|
As follows:
| Name
|
Type
|
Description
|
| Number Of Items
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
The number of elements in the following array.
|
| Items
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}} (256) of {{#switch: Slot Data
|
Data types =
Slot
|
#default =
Slot
}}
|
|
|
| 53
|
minecraft:block_state
|
State of a block.
|
As follows:
| Name
|
Type
|
Description
|
| Number of Properties
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Number of elements in the following array.
|
| Property
|
Name
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}}
|
{{#switch: Slot Data
|
Data types =
String
|
#default =
String
}}
|
|
| Value
|
{{#switch: Slot Data
|
Data types =
String
|
#default =
String
}}
|
|
|
| 54
|
minecraft:bees
|
Bees inside a hive.
|
As follows:
| Name
|
Type
|
Description
|
| Number of Bees
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Number of elements in the following array.
|
| Bee
|
Entity Data
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}}
|
{{#switch: Slot Data
|
Data types =
NBT
|
#default =
NBT
}}
|
Custom data for the entity, always a Compound Tag. Same structure as the minecraft:custom_data component.
|
| Ticks In Hive
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
|
| Min Ticks In Hive
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
|
|
| 55
|
minecraft:lock
|
Name of the necessary key to open this container.
|
As follows:
| Name
|
Type
|
Description
|
| Key
|
{{#switch: Slot Data
|
Data types =
NBT
|
#default =
NBT
}}
|
Always a String Tag.
|
|
| 56
|
minecraft:container_loot
|
Loot table for an unopened container.
|
As follows:
| Name
|
Type
|
Description
|
| Data
|
{{#switch: Slot Data
|
Data types =
NBT
|
#default =
NBT
}}
|
Always a Compound Tag.
|
|
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 the type of block, the values of specific block state properties, NBT data related to block entities, or any combination of the three.
| Name
|
Type
|
Description
|
| Has Blocks
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether this predicate is tied to specific types of blocks.
|
| Blocks
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
ID Set
|
#default =
ID Set
}}
|
IDs in the minecraft:block registry. Only present if Has Blocks is true.
|
| Has Properties
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether this predicate is tied to specific properties of a block.
|
| Number of Properties
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
Number of elements in the following array. Only present if Has Properties is true.
|
| Properties
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}} of Property
|
See Property structure below. Only present if Has Properties is true.
|
| Has NBT
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether this predicate is tied to specific block entity data.
|
| NBT
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
NBT
|
#default =
NBT
}}
|
Only present is Has NBT is true.
|
The Property structure is defined as follows:
| Name
|
Type
|
Description
|
| Name
|
{{#switch: Slot Data
|
Data types =
String
|
#default =
String
}}
|
Name of the block state property.
|
| Is Exact Match
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Whether this is an exact value match, as opposed to ranged.
|
| Exact Value
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
String
|
#default =
String
}}
|
Value of the block state property. Only present in exact match mode.
|
| Min Value
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
String
|
#default =
String
}}
|
Minimum value of the block state property range. Only present in ranged match mode.
|
| Max Value
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
String
|
#default =
String
}}
|
Maximum value of the block state property range. Only present in ranged match mode.
|
Dye Color
A color from one of the 16 dye types.
| Name
|
Type
|
Description
|
| Color
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}} {{#switch: Slot Data
|
Data types =
Enum
|
#default =
Enum
}}
|
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
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}} {{#switch: Slot Data
|
Data types =
Enum
|
#default =
Enum
}}
|
Can be one of the following:
- 0 - Small ball
- 1 - Large ball
- 2 - Star
- 3 - Creeper
- 4 - Burst
|
| Number Of Colors
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
The number of elements in the following array.
|
| Colors
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}} of {{#switch: Slot Data
|
Data types =
Int
|
#default =
Int
}}
|
The RGB components of the color, encoded as an integer.
|
| Number Of Fade Colors
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
The number of elements in the following array.
|
| Fade Colors
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}} of {{#switch: Slot Data
|
Data types =
Int
|
#default =
Int
}}
|
The RGB components of the color, encoded as an integer.
|
| Has Trail
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
|
| Has Twinkle
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
|
Potion Effect
Describes all the aspects of a potion effect.
| Name
|
Type
|
Description
|
| Type ID
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}} {{#switch: Slot Data
|
Data types =
Enum
|
#default =
Enum
}}
|
The ID of the effect in the potion effect type registry.
|
| Details
|
Detail
|
See Detail structure below.
|
The Detail structure is defined as follows:
| Name
|
Type
|
Description
|
| Amplifier
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
|
| Duration
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
-1 for infinite.
|
| Ambient
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Produces more translucent particle effects if true.
|
| Show Particles
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Completely hides effect particles if false.
|
| Show Icon
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
Shows the potion icon in the inventory screen if true.
|
| Has Hidden Effect
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
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.
 |
The following information needs to be added to this page:
|
| This behavior seems to be entirely server-sided. Does the presence of this field actually has any noticeable impact on the client?
|
|
| Hidden Effect
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} Detail
|
Only present if Has Hidden Effect is true.
|
Trim Material
- See also: Registry_Data#Armor Trim Material{{#if:| for {{{for}}}}}
| Name
|
Type
|
Description
|
| Asset Name
|
{{#switch: Slot Data
|
Data types =
String
|
#default =
String
}}
|
|
| Ingredient
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
|
| Item Model Index
|
{{#switch: Slot Data
|
Data types =
Float
|
#default =
Float
}}
|
|
| Number of Overrides
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
|
| Override
|
Armor Material Type
|
{{#switch: Slot Data
|
Data types =
Array
|
#default =
Array
}}
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}} {{#switch: Slot Data
|
Data types =
Enum
|
#default =
Enum
}}
|
|
| Overriden Asset Name
|
{{#switch: Slot Data
|
Data types =
String
|
#default =
String
}}
|
|
| Description
|
{{#switch: Slot Data
|
Data types =
Text Component
|
#default =
Text Component
}}
|
Trim Pattern
- See also: Registry_Data#Armor Trim Pattern{{#if:| for {{{for}}}}}
| Name
|
Type
|
Description
|
| Asset Name
|
{{#switch: Slot Data
|
Data types =
String
|
#default =
String
}}
|
|
| Template Item
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
|
| Description
|
{{#switch: Slot Data
|
Data types =
Text Component
|
#default =
Text Component
}}
|
|
| Decal
|
{{#switch: Slot Data
|
Data types =
Boolean
|
#default =
Boolean
}}
|
|
Instrument
| Name
|
Type
|
Description
|
| Sound Event
|
{{#switch: Slot Data
|
Data types =
Id or
|
#default =
Id or
}} {{#switch: Slot Data
|
Data types =
Sound Event
|
#default =
Sound Event
}}
|
The sound to be played.
|
| Use duration
|
{{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
The maximum range of the sound.
|
| Range
|
{{#switch: Slot Data
|
Data types =
Float
|
#default =
Float
}}
|
The range of the instrument.
|
Jukebox Song
| Name
|
Type
|
Description
|
| Sound Event
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
Id or
|
#default =
Id or
}} {{#switch: Slot Data
|
Data types =
Sound Event
|
#default =
Sound Event
}}
|
The sound to be played.
|
| Description
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
Text Component
|
#default =
Text Component
}}
|
The description shown in the item lore.
|
| Duration
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
Float
|
#default =
Float
}}
|
The duration the songs should play for, in seconds.
|
| Output
|
{{#switch: Slot Data
|
Data types =
Optional
|
#default =
Optional
}} {{#switch: Slot Data
|
Data types =
VarInt
|
#default =
VarInt
}}
|
The output strength given by a comparator. Between 0 and 15.
|