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
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.
You would have to check for the block the sign is attached to getting current in the https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/block/BlockRedstoneEvent.html
How would i do that if the event does not triggered when the sign is powered and im not aware of its location
I asked this like 2 or 3 days ago and I got to the conclusion that it is not possible https://www.spigotmc.org/threads/detect-when-a-block-gets-powered-by-redstone.417678/ There you can check all the information
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.
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