How can I give a block an nbt tag to store info needed in more than 1 procedure?

Started by noobimation on

Topic category: Help with MCreator software

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I give a block an nbt tag to store info needed in more than 1 procedure?

I've been trying to store info in a block that I can access and change with multiple procedures. I want it to function like a comparator: You click on it and then it it is either in one of two modes. I have the checkmark asking you if you want to enable the block entity turned on but nothing happens. My test procedure is just the:"Set NBT logic tag "OnOff" of block at x:x y:y z:z to "true" if it has block entity" block being triggered when the block is right clicked followed by a block that sends the value of the nbt tag into the chat. pls help me why is this not working i cant even find any info that isn`t two years outdated

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
NBT is stored separately for…
Tue, 01/21/2025 - 15:16

NBT is stored separately for each entity/item. Can I see the procedures? because changing the NBT in another element might not work depending on how it's done. Also, NBT is not synced between client and server side, meaning it can't be used in conditions. Also, does the block have a block entity enabled?

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://imgur.com/WnN8zk7…
Tue, 01/21/2025 - 17:02

https://imgur.com/WnN8zk7 Yes, the Block entity is turned on. I am just trying to change an nbt logic variable to either true and false. So that I can use that value in another procedure that gets called when a neighbour block changes

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I see one problem with the…
Tue, 01/21/2025 - 21:49

I see one problem with the procedure triggered by right click: you have it send chat comprised of the NBT for "event/target entity" which is not the block you have NBT for. use "get block at x y z" instead.