Community listing page, reviews may not be monitored by the author.
Expire
No reviews yet
Expire is a Fabric mod meant to be lightweight for usage on servers that want items to expire.
Community voices
Reviews
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
Expire
A 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 "reference time" from which every item will start expiring.
reference time = the world time at server startup current time = the time the mod actually uses to do all of its checks expiration date = the time at which the item will expire
Usage
everything is explained in the config file, but if you want to use it via code, look at ExpireTime and ItemExpire classes
Advantages
- Cheks based on interactions with world or inventories rather than on tick
- All stacks that share the same expiration date and same reference time are stackable
- The current time update frequency can be changed via the config to give more margin before the item actually expires
- 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 "reference time"
Features
- Configs with live reload and with settings for everything, from custom expiration to auto-set the expiration on certain items
- A command for debugging via
/expire - The option to choose between the classic "Expired Dust" or the more mysterious "Echo of the crystal"
Licence
zlib license
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Get it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources