아이템 컴포넌트 레퍼런스 (1/11)
MS Learn(MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0)의 레퍼런스를 발췌한 쪽이다. 원문의 상대 링크는 제거했다.
(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemDefinition.md)
Item Definition Properties
Properties are part of the Item Definition, which helps the system determine how to parse and initialize this item.
Item Description Properties
format_version
Specifies the version of the game this entity was made in. If the specified version is lower than the current version, any changes made to the entity in the vanilla version will be applied to it.
minecraft:item
Item definition, which includes the "description" and "components" sections.
List of Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| menu_category | "items" | The Creative Category that includes the specified item. | |
| group | String | The Creative Group that that includes the specified item. The group name is limited to 256 characters. | |
| is_hidden_in_commands | Boolean | Determines whether or not this item can be used with commands. Commands can use items by default |
Example
{
"format_version": "1.20.20",
"minecraft:item": {
"description": {
"identifier": "minecraft:blaze_rod",
"menu_category": {
"group": "itemGroup.name.blaze",
"category": "equipment",
"is_hidden_in_commands": true
}
},
"components": {
"minecraft:fuel": {
"duration": 120.0
},
"minecraft:max_stack_size": 64,
"minecraft:icon": {
"texture": "blaze_rod"
},
"minecraft:hand_equipped": true,
"minecraft:display_name": {
"value": "Blaze Rod"
}
}
}
}
(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponentList.md)
Item Components Documentation
| Item Components | Description |
|---|---|
| minecraft:allow_off_hand | The allow_off_hand component determines whether the item can be placed in the off hand slot of the inventory. |
| minecraft:block_placer | Sets the item as a placer item component for blocks. |
| minecraft:bundle_interaction | Enables the bundle-specific interaction scheme and tooltip for an item. |
| minecraft:can_destroy_in_creative | The can_destroy_in_creative component determines if the item can be used by a player to break blocks when in creative mode. |
| minecraft:compostable | Specifies that an item is compostable and provides the chance of creating a composting layer in the composter |
| minecraft:cooldown | Adds a cooldown to an item, preventing it from being used again for a specified duration. |
| minecraft:damage | The damage component determines how much extra damage the item does on attack. |
| minecraft:damage_absorption | It allows an item to absorb damage that would otherwise be dealt to its wearer. |
| minecraft:digger | Configures an item as a digging tool, allowing it to break specific blocks faster than normal. |
| minecraft:display_name | Sets the item display name within Minecraft: Bedrock Edition. |
| minecraft:durability | Sets how much damage the item can take before breaking, and allows the item to be combined at an anvil, grindstone, or crafting table. |
| minecraft:durability_sensor | Enables an item to emit effects when it receives damage. |
| minecraft:durability_sensor durability_threshold | Defines both the durability threshold, and the effects emitted when that threshold is met. |
| minecraft:dyeable | Enables players to dye this item using dyes in a crafting grid, like leather armor. |
| minecraft:enchantable | Determines what enchantments can be applied to the item. |
| minecraft:entity_placer | Allows an item to place entities into the world. |
| minecraft:fire_resistant | Determines whether the item is immune to burning when dropped in fire or lava. |
| minecraft:food | Sets the item as a food component, allowing it to be edible to the player. |
| minecraft:fuel | Allows this item to be used as fuel in a furnace to 'cook' other items. |
| minecraft:glint | Determines whether the item has the enchanted glint render effect on it. |
| minecraft:hand_equipped | The hand_equipped component determines if an item is rendered like a tool while it is in a player's hand. |
| minecraft:hover_text_color | Determines the color of the item name when hovering over it. |
| minecraft:icon | Determines the icon to represent the item in the UI and elsewhere. |
| minecraft:interact_button | A boolean or string that determines if the interact button is shown in touch controls, and what text is displayed on the button. |
| minecraft:item v1.26.0 | Refers to the item definition, which includes the 'description' and 'components' sections of the file. |
| minecraft:item v1.21.90 | Item definition includes the "description" and "components" sections. |
| minecraft:item v1.26.0 | Item definition includes the "description" and "components" sections. |
| minecraft:kinetic_weapon | Allows an item to deal kinetic damage and its effects. |
| minecraft:kinetic_weapon kinetic_effect_conditions | Conditions that need to be satisfied for a specific effect of a kinetic weapon to be applied. |
| minecraft:liquid_clipped | The liquid_clipped component determines whether the item interacts with liquid blocks on use. |
| minecraft:max_stack_size | Determines how many of an item can be stacked together. |
| minecraft:piercing_weapon | Allows an item to deal damage to all entities detected in a straight line along the user's view vector. |
| minecraft:projectile | Defines an item as a projectile that can be shot from dispensers or used as ammunition with minecraft:shooter. |
| minecraft:rarity | Specifies the base rarity and subsequently color of the item name when the player hovers the cursor over the item. |
| minecraft:record | Used by record items to play music. |
| minecraft:repairable | Defines the items that can be used to repair a defined item, and the amount of durability each item restores upon repair. |
| minecraft:seed | Sets the item as a seed that can be planted to grow crops. |
| minecraft:shooter | Compels an item to shoot projectiles, similarly to a bow or crossbow. |
| minecraft:should_despawn | Should_despawn component determines if the item should eventually despawn while floating in the world |
| minecraft:stacked_by_data | The stacked_by_data component determines whether the same items with different aux values can stack. |
| minecraft:storage_item | Enables an item to store data of the dynamic container associated with it. |
| minecraft:storage_weight_limit | Specifies the maximum weight limit that a storage item can hold |
| minecraft:storage_weight_modifier | Specifies the maximum weight limit that a storage item can hold |
| minecraft:swing_duration | Duration, in seconds, of the item's swing animation played when mining or attacking. |
| minecraft:swing_sounds | Overrides the swing sounds emitted by the user. |
| minecraft:tags | Determines which tags are included on a given item |
| minecraft:throwable | Makes an item throwable by the player, similar to a snowball or ender pearl. |
| minecraft:use_animation | Use_animation specifies which animation is played when the player uses the item. |
| minecraft:use_modifiers | Determines how long an item takes to use in combination with components such as Shooter, Throwable, or Food. |
| minecraft:wearable | Sets the wearable item component, which allows an item to be worn by a player in a specified equipment slot. |
Internal/Deprecated Components
These components are either deprecated or internal to Minecraft and not usable in custom content.
| Item Components | Description |
|---|---|
| chargeable | Event trigger for when the item has completed its use duration. |
| custom_components | Specifies an array of custom components defined in a script that should be added to this item. |
| render_offsets | Render offsets component: optional values can be given to offset the way the item is rendered. |
| use_duration | This component determines how long the item takes to use when used in combination with components like "shooter", "throwable", or "food". |
| weapon | Deprecated weapon item component. |
(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemUsePriority.md)
Custom Item Use Priority
When using a custom item, there is a defined priority to how behaviors occur.
- use on behaviors: First,
minecraft:entity_placertries to place entities; next,minecraft:block_placertries to place blocks. - use behaviors: Components with set 'use' behaviors are initiated, such as
minecraft:food,minecraft:wearable,minecraft:shooter, andminecraft:throwable.
Certain components have a 'dispensed' behavior. For these items, first minecraft:projectile attempts to shoot from the dispenser, and then minecraft:entity_placer tries to spawn entities.
[!NOTE] Unexpected behavior may occur when items attempt to initiate multiple component behaviors.
(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/description_component.md)
Item Documentation - description
description is a list of characters representing an item. The description MUST contain an identifier; other fields are optional.
Parameters
| Name | Default Value | Type | Description |
|---|---|---|---|
| identifier | not set | String | The identifier for this item; must include a namespace. The 'Minecraft' namespace must not be used, unless overriding a Vanilla item. |
| menu_category | not set | JSON object | The creative group name and category for this item. |
menu_category
The menu_category parameter details the creative group name and category for an item, and has three parameters of its own:
menu_category Parameters
| Name | Default Value | Type | Description |
|---|---|---|---|
| category | items | String | The creative category that this item belongs to. Options include "construction", "nature", "equipment", "items", and "none" |
| group | -- | Enumerator | The creative group that this item belongs to. Group name is limited to 256 characters. |
| is_hidden_in_commands | -- | Boolean | Determines whether or not this item can be used with commands. Commands can use items by default. |
group
Here are the following item groups that can be set for the value of group.
- itemGroup.name.anvil
- itemGroup.name.arrow
- itemGroup.name.axe
- itemGroup.name.banner
- itemGroup.name.banner_pattern
- itemGroup.name.beacon
- itemGroup.name.bed
- itemGroup.name.bell
- itemGroup.name.boat
- itemGroup.name.boots
- itemGroup.name.brick
- itemGroup.name.buttons
- itemGroup.name.cactus
- itemGroup.name.camera
- itemGroup.name.candles
- itemGroup.name.chemistrytable
- itemGroup.name.chest
- itemGroup.name.chestboat
- itemGroup.name.chestplate
- itemGroup.name.chiseledBookshelf
- itemGroup.name.clay
- itemGroup.name.climbing
- itemGroup.name.cobblestone
- itemGroup.name.composter
- itemGroup.name.compounds
- itemGroup.name.concrete
- itemGroup.name.concretePowder
- itemGroup.name.constructionMisc
- itemGroup.name.cookedFood
- itemGroup.name.copper
- itemGroup.name.coral
- itemGroup.name.coral_decorations
- itemGroup.name.craftingTables
- itemGroup.name.crop
- itemGroup.name.door
- itemGroup.name.dirt
- itemGroup.name.dye
- itemGroup.name.eggBlocks
- itemGroup.name.element
- itemGroup.name.enchantedBook
- itemGroup.name.enchantingTable
- itemGroup.name.endPortalFrame
- itemGroup.name.endRod
- itemGroup.name.fence
- itemGroup.name.fenceGate
- itemGroup.name.fireworkStars
- itemGroup.name.firework
- itemGroup.name.flower
- itemGroup.name.furnaces
- itemGroup.name.goatHorn
- itemGroup.name.glassPane
- itemGroup.name.glass
- itemGroup.name.glazedTerracotta
- itemGroup.name.glowstone
- itemGroup.name.grass
- itemGroup.name.gravel
- itemGroup.name.greenery
- itemGroup.name.grindStone
- itemGroup.name.hanging_sign
- itemGroup.name.helmet
- itemGroup.name.hoe
- itemGroup.name.horseArmor
- itemGroup.name.ice
- itemGroup.name.ironFence
- itemGroup.name.leaves
- itemGroup.name.lectern
- itemGroup.name.leggings
- itemGroup.name.lights
- itemGroup.name.lingeringPotion
- itemGroup.name.log
- itemGroup.name.minecart
- itemGroup.name.miscFood
- itemGroup.name.mobEgg
- itemGroup.name.monsterStoneEgg
- itemGroup.name.mushroom
- itemGroup.name.musicBlocks
- itemGroup.name.natureBuildingBlocks
- itemGroup.name.natureMisc
- itemGroup.name.ore
- itemGroup.name.oreBlocks
- itemGroup.name.permission
- itemGroup.name.pickaxe
- itemGroup.name.pistons
- itemGroup.name.potion
- itemGroup.name.potterySherds
- itemGroup.name.planks
- itemGroup.name.pressurePlate
- itemGroup.name.products
- itemGroup.name.pumpkins
- itemGroup.name.purpur
- itemGroup.name.rail
- itemGroup.name.rawFood
- itemGroup.name.record
- itemGroup.name.redstone
- itemGroup.name.redstoneContainers
- itemGroup.name.redstoneProducers
- itemGroup.name.sand
- itemGroup.name.sandstone
- itemGroup.name.sapling
- itemGroup.name.sculk
- itemGroup.name.seed
- itemGroup.name.shovel
- itemGroup.name.shulkerBox
- itemGroup.name.sign
- itemGroup.name.skull
- itemGroup.name.slab
- itemGroup.name.smithing_templates
- itemGroup.name.splashPotion
- itemGroup.name.stairs
- itemGroup.name.stainedClay
- itemGroup.name.stone
- itemGroup.name.stoneBrick
- itemGroup.name.sword
- itemGroup.name.tnt
- itemGroup.name.torch
- itemGroup.name.trapdoor
- itemGroup.name.walls
- itemGroup.name.wood
- itemGroup.name.wool
- itemGroup.name.woolCarpet
Example
{
"format_version": "1.20.20",
"minecraft:item": {
"description": {
"identifier": "minecraft:blaze_rod",
"menu_category": {
"group": "itemGroup.name.blaze",
"category": "equipment",
"is_hidden_in_commands": true
}
},
"components": {
"minecraft:fuel": {
"duration": 120.0
},
"minecraft:max_stack_size": 64,
"minecraft:icon": {
"texture": "blaze_rod"
},
"minecraft:hand_equipped": true,
"minecraft:display_name": {
"value": "Blaze Rod"
}
}
}
}
(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_allow_off_hand.md)
Items Documentation - minecraft:allow_off_hand
The allow_off_hand component determines whether the item can be placed in the off hand slot of the inventory.
[!Note] This item requires a format version of at least 1.20.30.
Alternate Simple Representations
This item can also be represented as a Boolean true/false.
Allow Off Hand Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| value | not set | Boolean true/false | Determines whether the item can be placed in the off hand slot. |
(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_block_placer.md)
Items Documentation - minecraft:block_placer
Sets the item as a placer item component for blocks. Items with this component will place a block when used.
[!Note] This component can also be used instead of the minecraft:icon component to render the block this item will place as the icon.
[!Note] This item requires a format version of at least 1.21.50.
Item Block Placer Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| aligned_placement | false | Boolean true/false | When true, block placement through this item is aligned while the interaction button is held down. | |
| block | not set | String | Defines the block that will be placed. | Ice Crystal: "minecraft:ice_crystal", Icicle: "minecraft:icicle", Red Shrub: "minecraft:red_shrub" |
| replace_block_item | false | Boolean true/false | If true, the item will be registered as the item for this block. | Ice Crystal: true |
| use_on (Use On) | [] | Array of Use On items | List of block descriptors of the blocks that this item can be used on. If left empty, all blocks will be allowed. Value must have at most 256 items. | |
| use_on (as String) | not set | String | ||
| use_on (as Object) | not set | Object |
aligned_placement
When true, block placement through this item is aligned while the interaction button is held down. Supported from format_version 1.26.0 onward. This item requires a format version of at least 1.26.10.
replace_block_item
If true, the item will be registered as the item for this block. This item will be returned by default when the block is broken/picked. Note: the identifier for this item must match the block's identifier for this field to be valid. Defaults to false.
Use On
Use On Properties
JSON path: use_on
| Name | Default Value | Type | Description |
|---|---|---|---|
| name | String | ||
| states | {} | Integer number | |
| states (as String) | not set | String | |
| states (as Boolean true/false) | not set | Boolean true/false | |
| tags | String |
Samples
"minecraft:block_placer": {
"block": "seeds",
"use_on": [
"dirt",
"grass"
],
"replace_block_item": true
}
Ice Crystal
"minecraft:block_placer": {
"block": "minecraft:ice_crystal",
"replace_block_item": true
}
Icicle
"minecraft:block_placer": {
"block": "minecraft:icicle",
"replace_block_item": true
}
Red Shrub
"minecraft:block_placer": {
"block": "minecraft:red_shrub",
"replace_block_item": true
}
Shelf Mushroom
"minecraft:block_placer": {
"block": "minecraft:shelf_mushroom",
"replace_block_item": true
}
(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_bundle_interaction.md)
Items Documentation - minecraft:bundle_interaction
Enables the bundle-specific interaction scheme and tooltip for an item.
[!Note] To use this component, the item must have a minecraft:storage_item item component defined.
[!Note] In
/textures/textures_list.json, the following code needs to be added for an item namedmy_custom_bundle: [ '<resource pack>/textures/items/my_custom_bundle.png', '<resource pack>/textures/items/my_custom_bundle_open_front.png','<resource pack>/textures/items/my_custom_bundle_open_back.png']. The respective icon textures would need to be added: my_custom_bundle.png, my_custom_bundle_open_front.png, my_custom_bundle_open_back.png. Note that it's important that the filenames are the item name, plus_open_frontand_open_backrespectively.
[!Note] Available without experimental toggle in 1.21.110.
[!Note] This item requires a format version of at least 1.21.40.
Item Bundle Interaction Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| num_viewable_slots | 12 | Integer number | The maximum number of slots in the bundle viewable by the plater. Can be from 1 to 64. Default is 12. Value must be >= 1. Value must be <= 64. | Black Bundle: 12 |
Samples
"minecraft:bundle_interaction": {
"format_version": "1.21.30",
"minecraft:item": {
"description": {
"identifier": "minecraft:bundle"
},
"components": {
"minecraft:icon": {
"textures": {
"default": "bundle"
}
},
"minecraft:max_stack_size": 1,
"minecraft:storage_item": {
"max_slots": 64,
"max_weight_limit": 64,
"weight_in_storage_item": 4,
"allow_nested_storage_items": true,
"banned_items": [
"minecraft:shulker_box"
]
},
"minecraft:bundle_interaction": {
"num_viewable_slots": 8
}
}
}
}
Black Bundle
"minecraft:bundle_interaction": {
"num_viewable_slots": 12
}
(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_can_destroy_in_creative.md)
Items Documentation - minecraft:can_destroy_in_creative
The can_destroy_in_creative component determines if the item can be used by a player to break blocks when in creative mode.
[!Note] This item requires a format version of at least 1.20.10.
Alternate Simple Representations
This item can also be represented as a Boolean true/false.
Can Destroy In Creative Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| value | not set | Boolean true/false | Determines whether the item can be used to destroy blocks while in creative mode. |
| id | 출처 | 라이선스 | 커밋 | 접근일 |
|---|---|---|---|---|
ms-learn | Minecraft Creator 문서 (Microsoft Learn) | CC BY 4.0 (문서), MIT (코드) | a9fd1c0 | 2026-11-13 |