promotional bannermobile promotional banner

Expire

Expire is a Fabric mod meant to be lightweight for usage on servers that want items to expire.

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

Expire Team

profile avatar
  • 5
    Projects
  • 19.5K
    Downloads

More from ArgoSevenView all

  • SummonMounts project image

    SummonMounts

    SummonMounts is a mod that lets players tame horse type mobs and summon/recall them at will using tiered Ocarina items

    • 543
    • October 25, 2026
  • Custom Barrier project image

    Custom Barrier

    A small mod that add configurable barrier

    • 1.5K
    • June 19, 2026
  • EverLoad project image

    EverLoad

    A simple mod that allows modpacks creator to perform hot changes to kubejs assets/scripts and various configs without having to update the client

    • 3.0K
    • April 21, 2026
  • ShadersEffects project image

    ShadersEffects

    This mod add a server side command to apply post processing shader to a player

    • 2.9K
    • April 4, 2026
  • SummonMounts project image

    SummonMounts

    SummonMounts is a mod that lets players tame horse type mobs and summon/recall them at will using tiered Ocarina items

    • 543
    • October 25, 2026
  • Custom Barrier project image

    Custom Barrier

    A small mod that add configurable barrier

    • 1.5K
    • June 19, 2026
  • EverLoad project image

    EverLoad

    A simple mod that allows modpacks creator to perform hot changes to kubejs assets/scripts and various configs without having to update the client

    • 3.0K
    • April 21, 2026
  • ShadersEffects project image

    ShadersEffects

    This mod add a server side command to apply post processing shader to a player

    • 2.9K
    • April 4, 2026