How do I add an enchantment to any type of item using /entitydata?

How do I add an enchantment to any type of item using /entitydata? - Photo of Woman Taking Notes

The setup I have is a command that will test all item frames @e[type=ItemFrame] and if an item is placed into it, I want the item to receive an enchantment, but I want it to allow any item and use only one command. Is this an option?






Pictures about "How do I add an enchantment to any type of item using /entitydata?"

How do I add an enchantment to any type of item using /entitydata? - Young woman watching movie in headphones in messy room
How do I add an enchantment to any type of item using /entitydata? - Unrecognizable person working on laptop at workplace
How do I add an enchantment to any type of item using /entitydata? - Content female shopaholic lying on floor at home in messy room and making order in online store while using netbook



How do you get enchantments on any item?

Just go into creative mode, take an enchanted book (Or enchant a book to get it), place it in an anvil together with the item and bam!

How do you add enchantments with commands?

How to enchant items in Minecraft
  • Go to a Minecraft enchanting table and exchange XP and lapis lazuli to enchant an item.
  • At a Minecraft anvil, combine an enchanted book with an unenchanted item \u2013 this uses XP.
  • At an anvil, combine two enchanted items to create one item with two enchantments.




  • How to Properly Use an Anvil and Apply more than 30 Enchantments to an Item.




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Ivan Samkov, Andrea Piacquadio, Ketut Subiyanto, Andrea Piacquadio