I have created a money system on a survival realm using command blocks. We are offering enchanted books for a price. The problem rises when trying to put the enchanted book on the tool . Once the book is in inventory and the tool and book are put on the Anvil, the enchantment is not offered in survival nor creative. Does anyone have any suggestions on why this is happening, and how I might fix the problem? I would really like to offer enchantments in my market!
I have this same problem. Did you ever find an answer?
I used a command block to give players an enchanted book with, for example, Efficiency III for money via the scoreboard. But when the player puts that Book on an anvil with a tool the enchantment us not applied.
I think posting the command, the version you're playing in and a screenshot of the popup "tooltip" when you put your cursor over one of the books in your inventory would help with troubleshooting.
I have a vague memory of messing around with commands and enchanted books and ending up with some books that weren't actually enchanted, they just had the name of the enchantment written in them.
I don't remember it they had the enchantment shimmer on them but I think they lacked the red ribbon around them.
This could happen if you were using a command from the wrong version of Minecraft if the enchantments ids had changed or something.
Googling for "enchanted book command 1.16", or whatever version you need it for, might give you a working command faster than waiting for an answer here. (If you're lucky.)
It makes you wonder, what effect would Efficiency have on a book, if it had any effect (which it wouldn't, of course).
I'm imagining that, if one somehow had a book that had both stored enchantments and was enchanted with Eff III that maybe it would take fewer XP levels to put the stored enchantments on a tool, perhaps letting you use the anvil on the tool an extra time even though it should have been too expensive?
Slightly more realistically it would almost certainly only make the process faster (which wouldn't be much of a gain) and also it would make more sense to have the anvil enchanted rather than the book.
Back to reality, pixelated as it is, I'm glad to have the explanation, that's most likely what happened to me as well, several years ago.
It makes you wonder, what effect would Efficiency have on a book, if it had any effect (which it wouldn't, of course).
I'm imagining that, if one somehow had a book that had both stored enchantments and was enchanted with Eff III that maybe it would take fewer XP levels to put the stored enchantments on a tool, perhaps letting you use the anvil on the tool an extra time even though it should have been too expensive?
Slightly more realistically it would almost certainly only make the process faster (which wouldn't be much of a gain) and also it would make more sense to have the anvil enchanted rather than the book.
Back to reality, pixelated as it is, I'm glad to have the explanation, that's most likely what happened to me as well, several years ago.
Probably nothing, since the anvil logic is coded to only recognize stored enchantments on enchanted books so the actual enchantments (enchanted as a normal item would be) would have no effect; you also can't get around the anvil cost limits or prior work penalty increase.
Also, an easy way to tell if you've enchanted a book correctly is to try using it on a block or mob - the enchantments should have no effect, otherwise they will be applied; e.g Silk Touch will harvest grass blocks and Fire Aspect will set mobs on fire (Efficiency will only work on the proper tool so it will have no effect). The name of the item will also be a different color (it should be yellow while normal enchanted items are blue).
Hello,
I have created a money system on a survival realm using command blocks. We are offering enchanted books for a price. The problem rises when trying to put the enchanted book on the tool . Once the book is in inventory and the tool and book are put on the Anvil, the enchantment is not offered in survival nor creative. Does anyone have any suggestions on why this is happening, and how I might fix the problem? I would really like to offer enchantments in my market!
Thanks so much!
I have this same problem. Did you ever find an answer?
I used a command block to give players an enchanted book with, for example, Efficiency III for money via the scoreboard. But when the player puts that Book on an anvil with a tool the enchantment us not applied.
Thanks.
I think posting the command, the version you're playing in and a screenshot of the popup "tooltip" when you put your cursor over one of the books in your inventory would help with troubleshooting.
I have a vague memory of messing around with commands and enchanted books and ending up with some books that weren't actually enchanted, they just had the name of the enchantment written in them.
I don't remember it they had the enchantment shimmer on them but I think they lacked the red ribbon around them.
This could happen if you were using a command from the wrong version of Minecraft if the enchantments ids had changed or something.
Googling for "enchanted book command 1.16", or whatever version you need it for, might give you a working command faster than waiting for an answer here. (If you're lucky.)
Just testing.
/give @p enchanted_book{StoredEnchantments:[{id:efficiency,lvl:3}]} 1
Is the basic command for giving a player an Efficiency III book in 1.16
I got that from the command generator at
https://www.digminecraft.com/generators/give_enchanted_book.php
they have versions for 1.13, 1.14 and 1.15 as well.
Just testing.
Ah! Of course! I was not Using "StoredEnchantments"... I was actually making a book enchanted with Efficiency... DUH!
Just so it's useful for someone else:
I have a scoreboard called Money.
The command I want would
1) look for a player within a certain distance
2) check for the required money or more
3) check for a certain xp level or better
4) give the player a Book with an enchantment they can apply to an item on an anvil.
For example:
/give @p[distance=..3,scores={money=500..},level=10..] enchanted_book{StoredEnchantments:[{id:efficiency,lvl:3}]} 1
A second command block (chain, unconditional, always active) will remove the 500 from the player's Money scoreboard:
scoreboard players remove @p[distance=..3] money 500
LOL !!!
It makes you wonder, what effect would Efficiency have on a book, if it had any effect (which it wouldn't, of course).
I'm imagining that, if one somehow had a book that had both stored enchantments and was enchanted with Eff III that maybe it would take fewer XP levels to put the stored enchantments on a tool, perhaps letting you use the anvil on the tool an extra time even though it should have been too expensive?
Slightly more realistically it would almost certainly only make the process faster (which wouldn't be much of a gain) and also it would make more sense to have the anvil enchanted rather than the book.
Back to reality, pixelated as it is, I'm glad to have the explanation, that's most likely what happened to me as well, several years ago.
Just testing.
Probably nothing, since the anvil logic is coded to only recognize stored enchantments on enchanted books so the actual enchantments (enchanted as a normal item would be) would have no effect; you also can't get around the anvil cost limits or prior work penalty increase.
Also, an easy way to tell if you've enchanted a book correctly is to try using it on a block or mob - the enchantments should have no effect, otherwise they will be applied; e.g Silk Touch will harvest grass blocks and Fire Aspect will set mobs on fire (Efficiency will only work on the proper tool so it will have no effect). The name of the item will also be a different color (it should be yellow while normal enchanted items are blue).
TheMasterCaver's First World - possibly the most caved-out world in Minecraft history - includes world download.
TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?