As an example to remove invalid data references when mods are removed from a world and the item or data component no longer exists.
[02:48:59] [Server thread/ERROR] [sophisticatedcore/]: Failed to deserialize stored item in storage 'barrel (Spruce Iron Barrel)' slot 15 - Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: bosses_of_mass_destruction:soul_star. Raw item data: {Slot:15,count:1,id:"bosses_of_mass_destruction:soul_star"}
[02:48:59] [Server thread/ERROR] [sophisticatedcore/]: Failed to deserialize stored item in storage 'barrel (Spruce Iron Barrel)' slot 9 - No component with type: 'toggleable_enchantments:enchantment_groups'; No component with type: 'toggleable_enchantments:enchantment_groups'; No component with type: 'toggleable_enchantments:disabled_enchantments'; No component with type: 'toggleable_enchantments:disabled_enchantments' missed input: {"toggleable_enchantments:disabled_enchantments":{levels:{}},"toggleable_enchantments:enchantment_groups":{levels:{}}}. Raw item data: {Slot:9,components:{"minecraft:custom_name":'"ZINC & ORE"',"sophisticatedcore:accent_color":-8807323,"sophisticatedcore:main_color":-16732241,"sophisticatedcore:number_of_inventory_slots":54,"sophisticatedcore:number_of_upgrade_slots":2,"sophisticatedcore:render_info_tag":{upgradeItems:[{},{}]},"sophisticatedcore:storage_uuid":[I;92475951,-1070576896,-1934402259,-645340030],"toggleable_enchantments:disabled_enchantments":{levels:{}},"toggleable_enchantments:enchantment_groups":{levels:{}}},count:1,id:"sophisticatedbackpacks:iron_backpack"}
It's be nice as the above is getting spammed in my server logs and I'm not sure which containers have the culprit items, so not really sure how to go about removing them.
As an example to remove invalid data references when mods are removed from a world and the item or data component no longer exists.
[02:48:59] [Server thread/ERROR] [sophisticatedcore/]: Failed to deserialize stored item in storage 'barrel (Spruce Iron Barrel)' slot 15 - Unknown registry key in ResourceKey[minecraft:root / minecraft:item]: bosses_of_mass_destruction:soul_star. Raw item data: {Slot:15,count:1,id:"bosses_of_mass_destruction:soul_star"}[02:48:59] [Server thread/ERROR] [sophisticatedcore/]: Failed to deserialize stored item in storage 'barrel (Spruce Iron Barrel)' slot 9 - No component with type: 'toggleable_enchantments:enchantment_groups'; No component with type: 'toggleable_enchantments:enchantment_groups'; No component with type: 'toggleable_enchantments:disabled_enchantments'; No component with type: 'toggleable_enchantments:disabled_enchantments' missed input: {"toggleable_enchantments:disabled_enchantments":{levels:{}},"toggleable_enchantments:enchantment_groups":{levels:{}}}. Raw item data: {Slot:9,components:{"minecraft:custom_name":'"ZINC & ORE"',"sophisticatedcore:accent_color":-8807323,"sophisticatedcore:main_color":-16732241,"sophisticatedcore:number_of_inventory_slots":54,"sophisticatedcore:number_of_upgrade_slots":2,"sophisticatedcore:render_info_tag":{upgradeItems:[{},{}]},"sophisticatedcore:storage_uuid":[I;92475951,-1070576896,-1934402259,-645340030],"toggleable_enchantments:disabled_enchantments":{levels:{}},"toggleable_enchantments:enchantment_groups":{levels:{}}},count:1,id:"sophisticatedbackpacks:iron_backpack"}It's be nice as the above is getting spammed in my server logs and I'm not sure which containers have the culprit items, so not really sure how to go about removing them.