A datapack for Minecraft 1.21+ that lets you make any item Worldbound, granting it invulnerability while on the ground.
Simply place the item in a Smithing Table along with a Netherite Scrap and a Netherite Upgrade Smithing Template to make it Worldbound.
You can make any enchantable item Worldbound.
The only exception is Player Heads, due to technical limitations in how the datapack functions.
To support additional items:
data/worldbound/recipe/worldbound
"base"
and "result"
fields to your desired item ID.Note: You can technically make it support ANY item, but blocks lose their data and lose their Worldbound Modifier after being placed down and picked up, making you waste the Netherite Scrap. Keep that in mind.
Use this path instead:
overlay_text_component/data/worldbound/recipe/worldbound
The steps remain the same—only the folder location is different.