Minecraft Commands – Get Enchanted Items Unusable in Grindstone

minecraft-commandsminecraft-java-edition

I'm trying to create a joke item (a book with quick charge 32k). This item should be completely useless.

I know a way of making the book "too expensive" to apply in an anvil in survival mode, but I do not want players to use it in a grindstone, which would yield 200+ levels.

Is there a way of using the /give command which either makes it unusable in a grindstone, gives no XP, etc?

I'm on Minecraft Java edition version 1.16.5.

Best Answer

You just need to give yourself an enchanting book that looks like a real level 32k Quick Charge book by changing the lore and name, like so:

/give @s enchanted_book{display:{Name:'[{"text":"Enchanted Book","italic":"false","color":"yellow"}]',Lore:['[{"text":"Quick Charge enchantment.level.32767","italic":"false","color":"gray"}]']}} 1