Redstone On event is called a lot of times

Started by MihlanDOta on Sat, 12/05/2020 - 11:20

Topic category: Troubleshooting, bugs, and solutions

Last seen on 11:06, 2. Aug 2021
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Redstone On event is called a lot of times
Sat, 12/05/2020 - 11:20

I want to spawn particles when the redstone is applied to the block. When the lever is next to the block, everything works fine, but if I move the lever away from the block using the redstone, then when turned on, the particles will spawn two times, and when turned off, very many times. If the redstone is located next to the block, and goes left or right, then the event does not fire at all. Tell me how to make this event work normally?

Sorry for my English, I am Russian

It is called when neighbour…
Sun, 12/06/2020 - 10:14

It is called when neighbour blocks update. Consider storing current state in block NBT and only do the action when the value toggles