This is a sprite I made for my own hack that's generic enough to release.
It's a stationary switch that you can press by stepping on it. It's also reusable, which means after it's pressed it'll rise back up so you can press it as often as you want. It comes in two sizes, 16x16 and 32x16, depending on the extra bit.
What the switch does when pressed is up to you! By default it changes the ON/OFF state, but I've also included code for activating a blue or silver P-Switch. And, of course, if you know ASM, you can very easily add in your own custom action.
I could have sworn we already had something like that — there's a block like it
, but apparently we don't have it as a sprite? So here you go. (The advantage of this being a sprite is that there's smoother animation and a set amount of waiting time before it becomes repressable again.)