Topic category: Help with MCreator software
For example, ill use a custom block; Table. right click the Table to open it's gui, press play and a random number 1-10 generates. For this one ill say 7. So the gui text says 7 for eveyone who opens this placed table gui.
Now i place another table, open the gui and press play. This time is says 5. So everyone who opens this table's gui will see 5 but when they open the other table it says 7.
How can i make this work?
It must be the same block and the same gui. For every block thats placed it needs a different random number that i can change using other procedures.
This video shows how it should not be, The left one should still be 8 and not 5, the right one should stay at 5 after ive hit play on the left one.
Made it work using NBT data! Simply enable entity for the block, (set slots to 0 if necessary) And use "set nbt number tag (test) to (blabla example 3)" And use "return text: format number: Get NBT Number tag "Test" of block at: x:X y:Y z:Z if it has block entity. as "##.##"
I think you can use NBT data in the block and not variables
How should i use that to make it work like i said ?
Thanks Pizz4Ninja!