본문으로 건너뛰기

아이템 컴포넌트 레퍼런스 (10/11)

MS Learn(MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0)의 레퍼런스를 발췌한 쪽이다. 원문의 상대 링크는 제거했다.

(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_render_offsets.md)

Items Documentation - minecraft:render_offsets​

[!IMPORTANT] This type is now deprecated, and no longer in use in the latest versions of Minecraft.

Render offsets component: optional values can be given to offset the way the item is rendered.

Render Offsets Properties​

NameDefault ValueTypeDescription
main_handnot setObjectMain hand transform data.
off_handnot setObjectOffhand hand transform data.

(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_repairable.md)

Items Documentation - minecraft:repairable​

Defines the items that can be used to repair a defined item, and the amount of durability each item restores upon repair. Each entry needs to define a list of strings for 'items' that can be used for the repair and an optional 'repair_amount' for how much durability is repaired.

[!Note] This item requires a format version of at least 1.20.10.

Item Repairable Properties​

NameDefault ValueTypeDescription
repair_items[]StringList of repair item entries. Each entry needs to define a list of strings for items that can be used for the repair and an optional repair_amount for how much durability is gained.
repair_items (Repair Items)not setRepair Items (Repair Items) item
Repair Items (Repair Items)​

Repair Items Properties​

JSON path: repair_items

NameDefault ValueTypeDescription
itemsnot setStringItems that may be used to repair an item.
items (as Keyed set of strings)not setKeyed set of strings
repair_amountKeyed set of stringsHow much the item is repaired.
repair_amount (as Named set of objects)not setKey/item pairs of Repair Amount (Legacy Molang Expression) items
repair_amount (as Decimal number)not setDecimal number

Legacy Molang Expression​

Legacy Molang Expression Properties​

JSON path: repair_items > repair_amount

NameDefault ValueTypeDescription
expressionnot setString
versionnot setInteger number

Samples​

"minecraft:repairable": {
"on_repaired": "minecraft:celebrate",
"repair_items": [
"anvil"
]
}

(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_seed.md)

Items Documentation - minecraft:seed​

Sets the item as a seed that can be planted to grow crops. When used on valid ground, the seed will place the specified crop block.

[!Note] This item requires a format version of at least 1.10.0.

Seed Properties​

NameDefault ValueTypeDescriptionExample Values
crop_resultnot setStringThe block identifier that will be placed when the seed is planted (e.g., 'wheat', 'beetroot', 'cave_vines').Beetroot Seeds: "beetroot", Glow Berries: "cave_vines"
plant_atnot setArray of stringsArray of block identifiers that this seed can be planted on or attached to. If not specified, standard farmland rules apply.Glow Berries: ["cave_vines","cave_vines_head_with_berries"]
plant_at_any_solid_surfacefalseBoolean true/falseDeprecated - no longer in use.Glow Berries: true
plant_at_facenot set(deprecated) Plant At Face choicesDeprecated - no longer in use.Glow Berries: "DOWN"
plant_at_any_solid_surface​

Deprecated - no longer in use. If true, the seed can be planted on any solid surface, not just farmland or specified blocks. This property was deprecated and removed in versions after 1.18. This property no longer works after format versions of at least 1.19.0. This item requires a format version of at least 1.16.0. This property was available in versions 1.16.0 through 1.18.x for items like glow berries, but has been removed in later versions.

plant_at_face​

Deprecated - no longer in use. The face of a block where this seed can be planted. Values: 'UP' for top of blocks (normal crops), 'DOWN' for bottom (hanging plants like glow berries). This property was deprecated and removed in versions after 1.18. This property no longer works after format versions of at least 1.19.0. This item requires a format version of at least 1.16.0. This property was available in versions 1.16.0 through 1.18.x for items like glow berries, but has been removed in later versions.

(deprecated) Plant At Face choices​
ValueTitleDescription
UPUP
DOWNDOWN
NORTHNORTH
SOUTHSOUTH
EASTEAST
WESTWEST

Samples​

Beetroot Seeds​

"minecraft:seed": {
"crop_result": "beetroot"
}

Glow Berries​

"minecraft:seed": {
"crop_result": "cave_vines",
"plant_at": [
"cave_vines",
"cave_vines_head_with_berries"
],
"plant_at_any_solid_surface": true,
"plant_at_face": "DOWN"
}

(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_shooter.md)

Items Documentation - minecraft:shooter​

Compels an item to shoot projectiles, similarly to a bow or crossbow. Must have the minecraft:use_modifiers component in order to function properly.

[!Note] Ammunition used by minecraft:shooter must have the minecraft:projectile component in order to function properly.

[!Note] Items equipped with the shooter component will only sustain damage while shooting. Durability will remain unaffected if the item is used for melee attacks.

[!Note] This item requires a format version of at least 1.20.10.

[!Note] Requires the following component in order to work properly:

  • Projectile (minecraft:projectile)

Item Shooter Properties​

NameDefault ValueTypeDescription
ammunition[]Array of Ammunition itemsA list of ammunition entries that define which items can be used as projectiles for this shooter.
charge_on_drawfalseBoolean true/falseWhen true, the shooter begins charging when the player starts drawing, similar to a crossbow. Default is false.
max_draw_duration0Decimal numberThe maximum time in seconds that a player can draw the shooter before it automatically fires or reaches maximum power. Default is 0.
scale_power_by_draw_durationfalseBoolean true/falseWhen true, the projectile's launch power increases based on how long the player holds the use button before releasing. Default is false.
ammunition​

A list of ammunition entries that define which items can be used as projectiles for this shooter. Each entry specifies the item, whether to search the offhand, inventory, and whether to use in creative mode.

Item Ammunition​

Configures this item as ammunition consumed by ranged weapons like bows and crossbows. Reference compatible shooter items and specify search behavior for inventory slots. When players use the associated weapon, this item is consumed and its projectile is launched.

Item Ammunition Properties​

JSON path: ammunition

NameDefault ValueTypeDescription
itemnot setStringAmmunition item description identifier.
item (as Keyed set of strings)not setKeyed set of strings
search_inventoryfalseBoolean true/falseCan search inventory? Default is set to false.
use_in_creativefalseBoolean true/falseCan use in creative mode? Default is set to false.
use_offhandfalseBoolean true/falseCan use off-hand? Default is set to false.

Samples​

"minecraft:shooter": {
"ammunition": [
{
"item": "custom_projectile",
"use_offhand": true,
"search_inventory": true,
"use_in_creative": true
}
],
"max_draw_duration": 1,
"scale_power_by_draw_duration": true,
"charge_on_draw": false
}

(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_should_despawn.md)

Items Documentation - minecraft:should_despawn​

Should_despawn component determines if the item should eventually despawn while floating in the world.

[!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.

Should Despawn Properties​

NameDefault ValueTypeDescription
valuenot setBoolean true/falseDetermines whether the item should eventually despawn while floating in the world.

(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_stacked_by_data.md)

Items Documentation - minecraft:stacked_by_data​

The stacked_by_data component determines whether the same items with different aux values can stack. Also defines whether the item entities can merge while floating in the world.

[!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.

Stacked By Data Properties​

NameDefault ValueTypeDescription
valuenot setBoolean true/falseDetermines whether the same item with different aux values can stack. Also defines whether the item entities can merge while floating in the world.

Samples​

AppleEnchanted​

"minecraft:stacked_by_data": true

(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_storage_item.md)

Items Documentation - minecraft:storage_item​

Enables an item to store data of the dynamic container associated with it. A dynamic container is a container for storing items that is linked to an item instead of a block or an entity.

[!Note] While this component can be defined on its own, to be able to interact with the item's storage container the item must have a minecraft:bundle_interaction item component defined.

[!Note] Available without experimental toggle in 1.21.110.

[!Note] In 1.26.0, equipping an item with this component into an armor or hand slot no longer deletes the storage contents.

[!Note] This item requires a format version of at least 1.21.40.

Item Storage Item Properties​

NameDefault ValueTypeDescriptionExample Values
allow_nested_storage_itemstrueBoolean true/falseDetermines whether another Storage Item is allowed inside of this item. Default is true.Black Bundle: true
allowed_items[]StringList of items that are exclusively allowed in this Storage Item. If empty all items are allowed.
allowed_items (as Keyed set of strings)not setKeyed set of strings
banned_items[]StringList of items that are not allowed in this Storage Item.Black Bundle: ["minecraft:shulker_box","minecraft:undyed_shulker_box"]
banned_items (as Keyed set of strings)not setKeyed set of strings
max_slots64Integer numberThe maximum allowed weight of the sum of all contained items. Maximum is 64. Default is 64. Value must be <= 64.Black Bundle: 64

Samples​

Black Bundle​

"minecraft:storage_item": {
"max_slots": 64,
"allow_nested_storage_items": true,
"banned_items": [
"minecraft:shulker_box",
"minecraft:undyed_shulker_box"
]
}

(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_storage_weight_limit.md)

Items Documentation - minecraft:storage_weight_limit​

Specifies the maximum weight limit that a storage item can hold.

[!Note] Available without experimental toggle in 1.21.110.

[!Note] This item requires a format version of at least 1.21.110.

Item Storage Weight Limit Properties​

NameDefault ValueTypeDescriptionExample Values
max_weight_limit64Integer numberThe maximum allowed weight of the sum of all contained items. Maximum is 64. Default is 64. Value must be <= 64.Black Bundle: 64

Samples​

Black Bundle​

"minecraft:storage_weight_limit": {
"max_weight_limit": 64
}

(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_storage_weight_modifier.md)

Items Documentation - minecraft:storage_weight_modifier​

Specifies the maximum weight limit that a storage item can hold.

[!Note] Available without experimental toggle in 1.21.110.

[!Note] This item requires a format version of at least 1.21.110.

Item Storage Weight Modifier Properties​

NameDefault ValueTypeDescriptionExample Values
weight_in_storage_item4Integer numberThe weight of this item when inside another Storage Item. Default is 4. 0 means item is not allowed in another Storage Item.Black Bundle: 4

Samples​

Black Bundle​

"minecraft:storage_weight_modifier": {
"weight_in_storage_item": 4
}

(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_swing_duration.md)

Items Documentation - minecraft:swing_duration​

Duration, in seconds, of the item's swing animation played when mining or attacking. Affects visuals only and does not impact attack frequency or other gameplay mechanics.

[!Note] This item requires a format version of at least 1.21.120.

Item Swing Duration Properties​

NameDefault ValueTypeDescription
value0.30000001192092896Decimal numberDuration, in seconds, of the item's swing animation played when mining or attacking. Affects visuals only and does not impact attack frequency or other gameplay mechanics.

Samples​

(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_swing_sounds.md)

Items Documentation - minecraft:swing_sounds​

Overrides the swing sounds emitted by the user. Each field accepts the name of any sound event defined in sound_definitions.json, including the built-in vanilla sound events.

[!Note] This item requires a format version of at least 1.21.130.

Item Swing Sounds Properties​

NameDefault ValueTypeDescription
attack_critical_hitnot setStringSound played when an attack hits and deals critical damage.
attack_hitnot setStringSound played when an attack hits.
attack_missnot setStringSound played when an attack misses or deals no damage due to invulnerability.

Samples​

(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_tags.md)

Items Documentation - minecraft:tags​

Determines which tags are included on a given item.

[!Note] This item requires a format version of at least 1.20.50.

Item Tags Properties​

NameDefault ValueTypeDescriptionExample Values
tags[]Array of stringsAn array that can contain multiple item tags.Apple: ["minecraft:is_food"], Shelf Mushroom: ["minecraft:mushrooms_for_stew"]

Samples​

"minecraft:tags": {
"do_swing_animation": false,
"launch_power_scale": 1,
"max_draw_duration": 0,
"max_launch_power": 1,
"min_draw_duration": 0,
"scale_power_by_draw_duration": false
}

Apple​

"minecraft:tags": {
"tags": [
"minecraft:is_food"
]
}

Shelf Mushroom​

"minecraft:tags": {
"tags": [
"minecraft:mushrooms_for_stew"
]
}

(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_throwable.md)

Items Documentation - minecraft:throwable​

Makes an item throwable by the player, similar to a snowball or ender pearl. Use with minecraft:projectile to specify which entity is spawned when thrown.

[!Note] Combine with minecraft:projectile to define the projectile entity. For charged throws (like tridents), set scale_power_by_draw_duration to true and configure min/max draw durations.

[!Note] This item requires a format version of at least 1.20.10.

Item Throwable Properties​

NameDefault ValueTypeDescriptionExample Values
do_swing_animationfalseBoolean true/falseDetermines whether the item should use the swing animation when thrown. Default is set to false.Ice Ball: true
launch_power_scale1Decimal numberThe scale at which the power of the throw increases. Default is set to 1.0.Wind Charge: 1.5
max_draw_duration0Decimal numberThe maximum duration to draw a throwable item. Default is set to 0.0.
max_launch_power1Decimal numberThe maximum power to launch the throwable item. Default is set to 1.0.Wind Charge: 1.5
min_draw_duration0Decimal numberThe minimum duration to draw a throwable item. Default is set to 0.0.
scale_power_by_draw_durationfalseBoolean true/falseWhether or not the power of the throw increases with duration charged. Default is set to false.

Samples​

Ice Ball​

"minecraft:throwable": {
"do_swing_animation": true
}

Wind Charge​

"minecraft:throwable": {
"do_swing_animation": true,
"launch_power_scale": 1.5,
"max_launch_power": 1.5
}

(출처: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_use_animation.md)

Items Documentation - minecraft:use_animation​

Use_animation specifies which animation is played when the player uses the item.

[!Note] This item requires a format version of at least 1.20.30.

Alternate Simple Representations​

This item can also be represented as a String.

Use Animation Properties​

NameDefault ValueTypeDescription
valuenot setStringSpecifies which animation to play when the item is used.

Samples​

Apple​

"minecraft:use_animation": "eat"
출처
id출처라이선스커밋접근일
ms-learnMinecraft Creator 문서 (Microsoft Learn)CC BY 4.0 (문서), MIT (코드)a9fd1c02026-11-13