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 支持哪些 Minecraft 版本?
Expire 支持 Minecraft Java 版 1.19.2,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Expire 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
ArgoSeven 的其他作品
查看全部 →Throwable Dice
This fabric mod add throwable dice to minecraft
KastriaMobs
KastriaMobs expands your world with a variety of new creatures. Designed to stay simple and easy to integrate into any modpack
ShadersEffects
This mod add a server side command to apply post processing shader to a player
Custom Barrier
A small mod that add configurable barrier
评论
登录后评论和评分