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 19:10, 24. Oct 2020
Joined Sep 2020
User points:

User statistics:

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

https://drive.google.com/file/d/1hSK-vipRVvNyJZEqdmzni1cC60CqlY-r/view?usp=sharing

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?