I want to give players random enchantment books with enchants
So in my friend's server, I created a datapack that allows me to give random enchantment books with random levels with a command using /loot give. (full command is
/loot give <username> loot enchant1book:enchanted_books
. There are two different folders for this:
-"enchant1book" gives the player a random book with a blue name with the random enchant, meaning the enchantment can't be combined with other enchants or tools/armor/etc.
-Whereas "enchant2book" gives the player an enchantment book with a yellow name, meaning it can be combined with other enchants or tools/etc., BUT it comes without any actual enchantments in it, it's just an item called "Enchantment Book"
The problem here is that I want to give players a random enchantment book WITH enchants and that CAN be combined in an anvil. Any idea on how I can do this? Plus, I want to do this using commands, so when I do the first mentioned command it will do what I said.
This is the code for enchant1book (blue name):
And this is the code for enchant2book (yellow name):
And below I will attach what enchant1book and enchant2book give you respectively.1 Reply
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by silverpg017#0