Get enchanted book’s enchantement/level

Started by Edstorm17 on

Topic category: Help with MCreator software

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Get enchanted book’s enchantement/level

So I am making a mod that adds enchantments levels to books obtainable in survival. I have a block for combining higher tiers enchantments. I want to get the enchanted book that is put in slot 1’s enchantment and level, but I can’t figure out how. I tried the Get NBT procedure block with this:

StoredEnchantments[{id:”fortune”}].lvl

But it doesn’t work. What could i do to get the book’s enchantment and level?

Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i don't have access to…
Thu, 02/09/2023 - 15:34

i don't have access to mcreator right now, but I think there are blocks that give enchantments names and level of selected items

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, but these are if i want…
Thu, 02/09/2023 - 16:30

Yes, but these are if i want to apply the enchantments. These blocks get the Enchantments tag of items. I want to get the StoredEnchantments tag of enchanted books, I already tried with the blocks you mentioned.

Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh. I don't know if you can…
Thu, 02/09/2023 - 21:20

Oh. I don't know if you can do it then, I also encountered that problem with entity NBTs.

Maybe there is a block that allows you to get vanilla NBTs

 

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is one to copy the NBT…
Thu, 02/09/2023 - 22:15

There is one to copy the NBT, but i can’t find one to actually get the NBT 

Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
well don't think I can help…
Fri, 02/10/2023 - 09:18

well don't think I can help then, sorry