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?
Minecraft Item frame entitydata
minecraft-java-edition
Related Topic
- Minecraft – How to add an enchantment onto held item in Minecraft with command blocks
- Minecraft – Determine Minecraft item type from entity or inventory
- Minecraft: Test for unique item in item frame
- Minecraft – How to test for a named item in a players inventory? (Minecraft 1.13)
- Minecraft Java Edition – How to Test for a Named Item in an Item Frame (Version 1.16.1)
- Minecraft command to set item frame content from a chest content
- Minecraft Commands – How to Give a Custom Item Frame a Special ID to Target with /data
Best Answer
If the enchantment is fine to be on any item, a simple /entitydata will do. Note that any enchantments that were previously on the item will be erased.