Started by
ThatSlimeDood
on
Topic category: Help with modding (Java Edition)
Say I wanted to say something in the chat when a block has a redstone charge, and I wanted it to run once until the redstone is turned off and on again. How would I do that?
This should work:
In the block's tick event,
IF block not charged,
DO set variable/NBT = 0
IF block is charged, AND variable/NBT is > 0,
DO "whatever you want it to do", and set NBT = 1
Thanks!
You're welcome!
i couldnt understand it please show it by a photo