This is a door stop. First I designed a block to stop the door from hitting the wall, a squash ball is used as a damper which is screwed into the wood through a hole in the block.
The second part I finished later, it is a stepping surface that blocks the open door, the blocking is unblocked by stepping on the stepping surface. You need to add a spring that lifts the stepping surface, it is a 7mm diameter spring with a length of 4cm but you can use any spring that will fit. Attention printed on voron 350 adjust the size according to yourself.