To make it work, you need to put a chest on the spawn of the world, dig a hole to the right of it, where you will jump off, also build a wall to the right of the pit against which the character will rest to fall into the pit. Suitable for 1920 x 1080 resolution. Put the necessary items in the chest and run the macro. You may need to edit the loading time, it costs 8 seconds in the macro, but your Terrarium may take longer to load. The depth of the pit also matters, check how many seconds it takes you to reach the bottom and die, it should be about 4 seconds.
Download the program (Download) and go to the macro editor
press the button «Open file»
and select the downloaded file
assign a macro to a key and run the program