Started by
EntityRedShadow
on
Topic category: Help with Minecraft modding (Java Edition)
I would like to know how to save the data of blocks the player placed so that when I execute a procedure, I can delete those blocks that the player has placed. For example, if the player built a house then I execute a procedure that deletes blocks, I want the procedure to only delete the blocks that the player placed themselves which in this case is the house... So the house is deleted basically...
hmm that is a valid problem but that is a bit tricky.
you could have a huge list of data that stores the position of every single block the player placed and gets updated when the player places a block, but that would take too much energy.
i think you can use one of these workarounds:
Oh we have the same solution in number 1... I used text to save the coordinates of each block placed by the player and used a plugin to call an index of that text variable... Still, thank you for answering!