Topic category: Help with modding (Java Edition)
Hello! Is anyone familiar with a way to remotely transfer a block's NBT number tag to a player's NBT or persistent variable?
I have a block which gathers "energy" and I would like it to automatically store it in the player so that it can be accessed anywhere. The problem is, when I incorporate player persistent variables or entity number tags in a block tick procedure the workspace reports an error and says I am missing dependencies.
I have tried binding the block to the player with a text tag which is generated upon the block being placed and then compared to the nearest player's display name, but this hasn't worked either.
Let me know if you might have a solution. Thank you!