Started by
ThatSlimeDood
on
Topic category: Help with Minecraft 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
Can you Explain the logic of playing only once in the procedure? I need this sound to only play once not repeating all the time for my horror mod project
there's no tutorial on YouTube to process don't know why but i really needed this played once procedure