How to make an int let say named "count" to be a property in json?
let say in my tile entity java class i have:
private int count = 1;
if (... < ...){
count++;
}
so I want it to be used in a blockstate json file:
{
"variants": {
"count = 1": {...},
"count = 2": {...},
ect.
}
how to do that?
how to add something like facing something like in the tile-entity with count, so how do i add that count to the json? let say the count in the code is equals to 3 so in the json i write "count=3": {...}??
do i need to you nbt for this? if yes so how to use nbt?