跳到正文

More Enchant Table Event

作者:yiran1457

Add more enchantment table event.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

More Enchant Table Event

Adds an extensible event API to the enchanting table flow. Hook into every stage of enchanting with 4 new NeoForge events:

  • AddToPool / RemoveFromPool – add or remove enchantments from the candidate pool (by ResourceKey or TagKey)
  • PoolBuilt – modify the final enchantment result and levels before they are applied
  • EnchantItem – modify enchantments right before they are applied, with the table position available

All events are non-cancellable and provide easy access to the menu, player, item, slot, cost and registry.

Requirements: Minecraft 1.21.1 · NeoForge 21.1.x


为附魔台流程提供可扩展的事件 API。通过 4 个新的 NeoForge 事件,你可以介入附魔的每个阶段:

  • AddToPool / RemoveFromPool —— 向附魔候选池添加 / 移除附魔(支持按 ResourceKey 或 TagKey)
  • PoolBuilt —— 在附魔应用到物品前修改最终附魔结果与等级
  • EnchantItem —— 附魔即将应用到物品前修改附魔,并可获取附魔台坐标

所有事件均不可取消,并可方便地获取菜单、玩家、物品、槽位、消耗等级与注册表。

运行环境: Minecraft 1.21.1 · NeoForge 21.1.x

常见问题

More Enchant Table Event 支持哪些 Minecraft 版本?

More Enchant Table Event 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

More Enchant Table Event 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

yiran1457 的其他作品

查看全部 →