Expire
Expire is meant to be lightweight mod for usage on servers that want items to expire without the drawbacks of a classic mod that ticks every second on every item
How does it work?
at every server startup, the mod will save the current time and will use that as the "creation date" from which every item will start expiring.
creation time = the world time at server startup real time = the time the mod actually uses to do all of its checks expiration date = the time at which the item will expire
Advantages
- Cheks based on interactions with world or inventories rather than on tick
- All stacks that share the same expiration date and same creation time are stackable
- The real time update frequency can be changed via the config to give more margin before the item actually expires
- By default, all the APIs will use IRL measures, so one day is 24 real hours
Drawbacks
- While it shines on items that expire after several days, if the server starts at the 00:00, then an item that expired after 5 minutes created at the 00:05 will expire instantly, as 00:00 is the "creation time"
- Since it's based on the world time, it won't like if you change it (ex. via command)
Features
- Configs with live reload
- A command for debugging
- The option to choose between the classic "Expired Dust" or the more mysterious "Echo of the crystal"
Licence
zlib licence

