From the Super Mario Wiki
Retrieved from "https://www.mariowiki.com/index.php?title=P_Block&oldid=2842879"
P Blocks are objects in Super Mario Maker 2 that can be placed in every level style. Similar to ON/OFF Switches, they are activated or deactivated whenever the player hits a P Switch; they are outlined when deactivated, and when activated, they become solid blocks that cannot be destroyed by any means. Due to the effect being temporary, the blocks operate in a similar way to the Dotted-Line Blocks from Super Mario World 2: Yoshi's Island and its sequels.
Names in other languages