1.15.2 Detect when block gets powered

Discussion in 'Spigot Plugin Development' started by TheCreeperCow, Feb 9, 2020.

  1. Hey im looking for a way to perform a specific action when a sign is powered however im not sure how to do that i tried using BlockRedstoneEvent however it only reported back the pressure plate that was used not the sign. Does anyone have any idea on how this can be achieved
  2. I have never really worked with redstone before, but you could check if there're any signs next to the redstone when the BlockRedstoneEvent is called.
  3. It’s very possible. I don’t understand how you guys think it isn’t..?

    You can just get the block and it’s location and iterate through X amount of blocks, or just add/subtract a certain amount from its XYZ coordinates and see if a sign exists in those coordinates.
  4. That would mean hard coding/saving each block,meaning iteratig through tens or hundreds of blocks

    This event was used for general purposes to avoid any form of ^ and simply detect a powered block