User Tools

Site Tools


items:item_components:enchantable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
items:item_components:enchantable [2024/04/19 13:27] – removed - external edit (Unknown date) 127.0.0.1items:item_components:enchantable [2024/04/19 13:27] (current) – ↷ Links adapted because of a move operation errorcraft
Line 1: Line 1:
 +====== minecraft:enchantable ======
 +The ''minecraft:enchantable'' item component allows this item to be enchanted in an Enchanting Table.
 +This item component is usually combined with [[items:item_components:forgeable|minecraft:forgeable]] and [[items:item_components:repairable|minecraft:repairable]].
 +Note that the enchantments used for enchanting are defined differently than in vanilla.
 +In vanilla it uses item tags for enchantment targets (such as swords and helmets), whereas here they are enchantment tags for an item instead.
  
 +
 +==== Fields ====
 +^  Name  ^  Description  ^  Type  ^  Default Value  ^
 +| ''enchantability'' | Determines the amount and level of enchantments to apply to this item. | A positive integer | |
 +| ''enchantments'' | The enchantments to allow. If not specified, it will allow every enchantment. Note that [[mc>Enchanting#Summary_of_enchantments|treasure enchantments]] are never allowed by an Enchanting Table, so adding them to the tag won't do anything. | An optional enchantment tag | |
 +| ''transforms_into'' | The item to turn into once enchanted. | An optional item | |
 +
 +
 +==== Example ====
 +<code javascript>
 +{
 +  "enchantability": 14,
 +  "enchantments": "minecraft:pickaxe_enchanting"
 +}
 +</code>