This version adds some extra code to the bottom of the custom block that detects whether the player is touching the floor, walls, or ceiling so that you can use that information in your other code.