Changing the location of NBT blocks

Started by Cedric Azevedo on

Topic category: Help with modding (Java Edition)

Last seen on 14:52, 19. Mar 2023
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Changing the location of NBT blocks

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?