Changing the location of NBT blocks

Started by Cedric Azevedo on Fri, 09/25/2020 - 18:51

Topic category: Help with modding (Java Edition)

Last seen on 02:16, 31. Dec 2021
Joined Sep 2020

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Changing the location of NBT blocks
Fri, 09/25/2020 - 18:51

this link is my procedure, I would like to move a block to another location and also transfer the items if it is NBT.
This procedure is performed with the right click of an item.
I can't think of a better way to identify all the slots without using the while loop and this procedure is buggy, when using in some NBT block it moves the block, the items but does not remove the old block and the item stops working the after that.
Can someone help me?