### 更新内容 | Update Contents
1. 新增配方结果后处理器(result_processor)功能,用于合成时为配方结果增加额外效果 | Added a result processor feature to add additional effects to the recipe output during crafting.
2. 所有类型的触发器的上下文中新增event对象,用于操作相关事件行为 | Added an `event` object to the context of all trigger types, allowing manipulation of related event behaviors.
3. 新增命令`/craftorithm discover <target> <recipe_key_pattern>`和`/craftorithm undiscover <target> <recipe_key_pattern>`,分别用于为玩家解锁、取消在配方书内解锁配方,其中`<recipe_key_pattern>`支持正则表达式 | Added commands `/craftorithm discover <target> <recipe_key_pattern>` and `/craftorithm undiscover <target> <recipe_key_pattern>`, which respectively unlock and lock recipes in the recipe book for players. The `<recipe_key_pattern>` supports regex.
4. 修复触发器中`sound`函数在遇到无法解析的声音时会报错的问题 | Fixed an issue where the `sound` function in triggers would throw an error when encountering an unparseable sound.
5. 修复`/craftorithm display`命令的补全内容中只含有插件自己的配方的问题 | Fixed an issue where tab completion for `/craftorithm display` only listed the plugin's own recipes.
6. 修复1.21.3以上Minecraft版本环境下锻造台配方在一些情况下无法将材料放入对应位置的问题 | Fixed an issue on Minecraft versions 1.21.3 and above where smithing table recipes could not place ingredients in the correct slots in some cases.
7. 优化代码结构和性能 | Optimized code structure and performance.
Optional dependencies
PacketEvents
Any compatible version
MythicMobs
Any compatible version
CraftEngine
Any compatible version
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }