How to give blocks NBT data/tag/variable?

Started by gearup1 on

Topic category: Help with modding (Java Edition)

Last seen on 11:35, 23. May 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to give blocks NBT data/tag/variable?

I want to be able to right click a block with an item and assign some kind of value to it that I can read later. I was going to use NBT tags, but they only work if the block has a block entity. I’m using 2023.1, Forge 1.18.2 so I can’t use block variables like in 2020.4 or 2020.5