HOW TO USE Checkpoint Datapack for Minecraft 1.21.1

By Creaking Block Datapacks
Mod created with MCreator. Please check out Mcreator website.

STEP 1
Make a world and place the datapack in it via 
More > Data Packs > Open World Folder
Make sure to have cheats / commands on!
STEP 2
Give yourself a command block by typing
/give @s command_block 1
in chat or by turning on
Options > Controls > Operator Items Tab
STEP 3
In that command block, type any of these 8 commands:

/function checkpoints:checkpoint [0 degrees]
/function checkpoints:checkpoint_45deg [45 degrees]
/function checkpoints:checkpoint_315deg [-45 degrees]
/function checkpoints:checkpoint_90deg [90 degrees]
/function checkpoints:checkpoint_270deg [-90 degrees]
/function checkpoints:checkpoint_135deg [135 degrees]
/function checkpoints:checkpoint_225deg [-135 degrees]
/function checkpoints:checkpoint_180deg [180 degrees]
STEP 4
Add a lever, a button, or a pressure plate {preferrably} on top of or on a singular block above the command block. When the player dies, it will spawn on top of that block.

Good job! You just created a checkpoint. This doesn’t need a forceloaded chunk to work.