Help with block NBT

Published by Sam87Gamer on
Status
Fixed
Issue description

Hello, I was wondering how the new NBT block system works, I am trying to figure it out. What I think it is, is a better global variable, but per block. The thing is I'm trying to make use out of this, but I can't seem to know how to use it. Also what does if it has tile entity mean, because I feel like that is something important I should know, because I'm trying to make a energy storage system but I don't know how to make it using it.

 

Issue comments

  1. You need to enable tile entity in order to make block store data - you have a checkbox for this in the block editor
  2. Just set the NBT tag or get it and keep the same name to store data under such name

Thank you so much for this btw, when I showed my previous delay system you said it was inefficient, now I made a per block delay system that works perfectly, and plays the sound because it's not server side!