Block NBT tag not retaining data

Started by Yue on

Topic category: Help with MCreator software

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Block NBT tag not retaining data
Thu, 08/10/2023 - 15:16 (edited)

Hiya need a bit of a steer as I'm unsure what I'm doing wrong or what I've missed.

I want to pass the username of the player who place's down a specific block to be stores as an BNBT tag on the block it's self.

I then want to recall that name to send to the chat window upon right clicking that block or send to a GUI label bound to that block.

I'm able to get the value passed to the chat window when block is placed; however although subsequent right clicking on the block runs the procedure, the NBT data passed to it was found to have not been retained. A new blank line is added to the chat window however which shows the procedure ran.

Please can someone help me identify, what am I missing?

Using MCreator 2023.2 and Block entity has been enabled

Many thanks in advance, Yue

 

***edit*** scratch that, data was stored but failed to be recalled due to a spelling error.

Edited by Yue on Thu, 08/10/2023 - 15:16