formatting to suit my own needs, then fixes many things

P.S. `$data["block"]->x` not `$data["block"]->entity->x`