Best way to store information about vanilla block?

We’re making a jumppad plugin. The jumppad itself is just a block, not a tile (golden block for example) and we need to store information about the jumppad - e.g. if it’s activated or how much speed it offers to player and so on.

How do you mean store? As in, storing information in a file so it can be read after a restart? Or store information on RAM for quick access? Or both?

We need to store the data like item’s NBT

In that case you will need to use Data manipulation api (keys). However I can not remember if Location is supported with it.

Just double checked, location is not supported.

You will need to store the data in its own file and read/write to that file

1 Like