介绍
This is a library designed to assist in modding by providing some additional events for mods to use (and in the future some of my mods will be relying on it to hopefully isolate the asm to this library to reduce the chance of conflicts).
Now before you get cross with me, no this is not another one of those libs (I like to call them “Modder Name Libs”) that are only used by one modder and the only reason for their existence is to boost downloads to get additional rewards usually coupled with various excuses.
Anyone can contribute to this lib, make pull requests, etc and repackage it in their mod as needed (license is permitting). (Unlike forge, I won’t spend 6 months arguing about how a glorified table is somehow better than a full compiled programming language)
Here’s the events so far:
– GenerateLootEvent :
* Fired just before a block's loot is generated,
* used for modifying the loot context and loot table that will be used to generate the loot for a block.
*
* Cancelling this event will skip the loot generation entirely and simply pass an empty list to the block.
- DropLootEvent :
* Works similar to the pre-1.14 HarvestDropsEvent that broke due to blocks using loot tables and forge refuses to put back
* Fired just before a block's loot is dropped into the world.
* Used to modify a block's drops after they're already generated.
* Cancelling this event will prevent the block from spawning in any drops.
– GetCollisionVoxelShapesEvent
* same concept as pre 1.14 getCollisionBoxesEvent but slightly different impl
* Fired during Blockstate#getCollisionShapes
* use this to modify an existing block’s collision shape to for example walk on water
* Cannot be cancelled
– ItemEntityDamageEvent
* Used to determine what happens to an itementity that is about to be damaged by something, contains both the amount and the DamageSource that caused it
* Fired during ItemEntity#attackEntityFrom
* Cancelling it will prevent damage to the item entity
常见问题
Additional Events 支持哪些 Minecraft 版本?
Additional Events 支持 Minecraft Java 版 1.15.1–1.15.2,共 2 个版本。下载时注意选择和你游戏版本一致的文件。
Additional Events 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 模组加载器,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
tfarecnim 的其他作品
查看全部 →护甲显示上限突破 Overloaded Armor Bar
允许护甲条换行,并在护甲优于钻石时改变颜色
Dank Storage
小方块里的大存储
Metal Barrels
类似 Iron Chests,不过换成了木桶,而且更出色。
Forge CIT
将 OptiFine 的自定义物品纹理移植到 Forge。
评论
登录后评论和评分