So i know it wasnt really possible in older versions but i thought functions might make it easier to do.
i want to have a fence pole with end rods attached that when a player stands closely/walks into one side of the rod, it will rotate everything around the pole 90 degrees. ive figured out i can do this at least one with coord detection and setblock commands.
i cant figure out tho how to prevent the command if theres a block behind the rod like this with "p" being the player walking right/clockwise and x as the block:
also looking to make it look like its moving instead of just replacing blocks if possible. tried to hire someone to make the plugin but he jipped me and hasnt been on spigot since