[SOLVED] Does someone know how to transfer enchantments from an item to a book in a GUI?

Started by playeruan on

Topic category: Help with modding (Java Edition)

Last seen on 14:48, 3. Jun 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED] Does someone know how to transfer enchantments from an item to a book in a GUI?
Sat, 05/27/2023 - 08:44 (edited)

I know there is already a forum with a response to the same question but It doesn't work for me,

This is the blocks the solution said to use: https://drive.google.com/file/d/1aVEJSkeisNI5fdf0VvV25QcgoF6ydf_T/view

The two commands are:

"data modify block ~ ~ ~ Items[{Slot:1b}].tag.StoredEnchantments set from block ~ ~ ~ Items[{Slot:0b}].tag.Enchantments"

"data remove block ~ ~ ~ Items[{Slot:0b}].tag.Enchantments"

I haven't changed anything except the slot where to check for the book because my GUI looks different.


EDIT: I fixed this, for anyone wondering just make the block and entity block

Edited by playeruan on Sat, 05/27/2023 - 08:44