This is a mod that forces players into Spectator mode and deletes their save file upon obtaining specific items or advancements. It can also serve as an anti-cheat measure. Previously released on GitHub, it is now available on Modrinth. The mod supports Fabric 1.21.1, and a Forge 1.12.2 version was added by request. Development is discontinued.
Changelog
Version 1.0: When this mod is installed and the config file is configured, upon obtaining a specified item or advancements, the mod will force-switch you to Spectator mode without the ability to switch back. Simultaneously, a specified victory message will be displayed in the chat box, announcing to everyone that "This world/save has cleared the level.". The config file also allows enabling an auto-delete world feature, where the mod will delete your current world/save file upon exiting the game.
Version 1.1: Added multiplayer support, allowing multiple players to individually obtain items and advancements. Added a setting to configure the minimum number of players required to trigger world deletion. The victory message can now display multiple players simultaneously. Additionally, fixed miscellaneous bugs.
Version 1.2: Added several new parameters to the config file. Enabled the use of language files for message customization. Added customization options for message display interval, world deletion retry attempts and interval, and an optional bilingual console logging feature.