简介
在对物品附魔时,列表会显示附魔台可获取的所有与该物品兼容的附魔。应用附魔时,每次仅提升一级,且每级的消耗递增。
建议使用资源包为每种附魔书设置自定义纹理(例如 Bibliophilia),以提升用户体验。
若禁用村民交易或使用 此数据包 限制所有村民提供的附魔书仅限一级,则效果最佳。这将防止玩家利用村民绕过该系统的限制。
我尽力确保本模组在所有语言环境下无需客户端安装即可正常运行。这迫使我使用现有的翻译键,可能导致部分翻译出现异常。
自定义纹理来自 Bibliophilia,未包含在本模组中。
配置
本模组提供以下 3 项配置选项:
maxBookshelves - 设定附魔所需书架的最大数量。有效值为 0-32,默认值 18
scaleBookshelfCost - 决定如何计算书架消耗。若为 true,消耗将被缩放以适应 0-maxBookshelves 的范围;若为 false,计算出的书架需求将直接上限设为 maxBookshelves。默认值:true
requireEnchantedBooks - 若启用,附魔台将搜索附近雕刻书架中存储的附魔书。附魔只能应用到附魔台找到的最高等级的书籍级别。此功能仅适用于通常可从附魔台获得的附魔。即使提供了相关书籍,如经验修补、迅捷潜行和灵魂疾行等附魔也不会变得可用。若使用此选项,建议使用 此模组/数据包 使雕刻书架像普通书架一样提供附魔力。
详细说明
当玩家与附魔台交互时,将看到以下界面:

第一个空槽用于放置要附魔的物品。
第二个空槽用于放置青金石。
书架用于指示附魔台当前拥有的附魔力。
当物品放入界面后,书籍将被替换为显示该物品可用附魔的附魔书。每个附魔都关联着相应的经验等级、青金石消耗以及应用该附魔所需的书架数量。
价格计算与修改
价格基于附魔定义进行计算。
等级消耗计算公式为:
(( anvil_cost + min_cost.base + 1 ) + ( levelToApply - 1 )( min_cost.per_level_above_first ))/2
书架需求计算公式为:
min_cost.base + ( levelToApply - 1 ) * Math.min( min_cost.per_level_above_first / 2, (MAX_BOOKSHELVES - min_cost.base ) / max_level )
青金石消耗始终等于所应用附魔的等级(一级附魔需 1 个青金石,二级需 2 个,依此类推)。
通过这些公式,你可以创建数据包来修改任意附魔的等级和书架需求值。
Summary
When enchanting an item, a list of enchanted books will display any compatible enchantments that are accessible from the enchanting table. When apploying, enchantments are applied one level at a time. The cost to apply enchantments increases with each level.
I suggest using a resource pack to give each enchanted book a custom texture such as Bibliophilia to make it more user-friendly.
Works best if you disable villager trading or use this mod to limit all enchanted books from villagers to only be level one. This will prevent players from using villagers to bypass the tree entirely.
I tried my best to make this work in all languages without requiring the mod on the client. This forced me to used existing translation keys which may result in some weird translation artifacts.
Custom textures come from Bibliophilia and are not included in this mod.
Configuration
There are 3 configuration options available for the mod:
maxBookshelves - sets the maximum number of bookshelves that an enchant can require to be applied. Acceptable values are 0-32, Default 18
scaleBookshelfCost - determines how bookshelf cost should be calculated. If true, costs will be scaled to fit within the range 0-maxBookshelves. If false calculated bookshelf requirements will simply be capped at maxBookshelves. Default: true
requireEnchantedBooks - If enabled, the enchanting table will search for enchanted books stored in nearby chiseled bookshelves. Enchantments can only be applied up to the highest level of the book found by the enchanting table. This only works for enchantments that can normally be obtained from the enchanting table. Enchantments such as mending, swift sneak, and soul speed will not become accessible even if a book is provided. If you use this option, I recommend using this mod/datapack to make chiseled bookshelves supply enchanting power like bookshelves.
Details
When a player interacts with an enchanting table they will see the following menu:

The first open slot is for the item to enchant.
The second open slot is for the lapis.
The bookshelves exist to inform how much enchanting power the table currently has.
When an item is inserted in the menu, the books will be replaced with enchanted books showing the available enchantments for the item. Each enchantment will a cost associated with it in the form of experience levels, lapis lazuli, and the number of bookshelves required to apply it.
Price Calculations & modification
The prices are calculated based on the enchantment definitions.
Level costs are calculated using the formula:
(( anvil_cost + min_cost.base + 1 ) + ( levelToApply - 1 )( min_cost.per_level_above_first ))/2
Bookshelf requirements are calculated using the formula:
min_cost.base + ( levelToApply - 1 ) * Math.min( min_cost.per_level_above_first / 2, (MAX_BOOKSHELVES - min_cost.base ) / max_level )
Lapis cost is always equal to the level of the enchant being applied (1 lapis for level 1, 2 for level 2, ...).
Using these formulas you may edit the level and bookshelf requirements by creating a datapack to modify the appropriate values for any enchantments you wish.
下载 Enchantree
下载 Enchantree
下载 Enchantree
下载 Enchantree
下载 Enchantree
下载 Enchantree
下载 Enchantree
- 修复了一个 bug:当
requiredEnchantedBooks配置选项设置为 true 时,未发现的附魔书会不可见
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
模组
基于 GTCEu 1.12.2 的现代 GregTech
模组
让你能够在世界中的任何位置定位结构。
评论 0
登录后参与评分
还没有评论,来抢沙发吧