This is a simple server side mod that prevents the despawning of items that are added to a new tag, aptly named "prevent_despawn".
Currently this only supports ItemEntities.
By default this tag contains
"minecraft:dragon_egg",
"minecraft:nether_star",
"minecraft:totem_of_undying"
Details
Licensed MIT
Published a year ago
Updated a year ago