显示页面修订记录反向链接回到顶部 本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。 ====== 自定义附魔 ====== {{page>template:editing&nofooter&noeditbtn&noheader}} ===== 示例配置 ===== <file yaml blackout.yml> display-name: "黑暗降临" description: "有 &a%chance%%&r 的概率给予敌人 &a%seconds%&r 秒黑暗效果" placeholders: seconds: 4 + ceil(%level% / 2) chance: 6 + %level% type: normal targets: - sword conflicts: [ ] rarity: legendary max-level: 4 tradeable: true discoverable: true enchantable: true effects: - id: potion_effect args: duration: 80 + ceil(%level% / 2) * 20 chance: 6 + %level% level: 1 effect: darkness apply-to-player: false triggers: - melee_attack conditions: [] </file> ===== 配置解读 ===== ==== display-name ==== <code yaml>display-name: "黑暗降临"</code> 定义附魔的名称 ==== description ==== <code yaml>description: "有 &a%chance%%&r 的概率给予敌人 &a%seconds%&r 秒黑暗效果"</code> 定义附魔的描述 ==== placeholders ==== <code yaml>placeholders: seconds: 4 + ceil(%level% / 2) chance: 6 + %level%</code> 定义变量,你可以定义一些变量在描述中使用 ==== type ==== <code yaml>type: normal</code> 定义附魔的类型,可选的有: * <html><code><span style="color: rgb(168, 168, 168);">normal</span></code></html> * 单件物品上至多拥有 **3** 个此类型附魔 * 在获取高等级该类型附魔时的偏向为 **0**((该值取值 0-1,越接近 1 在获取高等级附魔时越难获取,为 1 时只能获取等级为 1 的附魔)) * 附魔**可**被砂轮洗去 * <html><code><span style="color: rgb(252, 84, 84);">curse</span></code></html> * 单件物品上至多拥有 **2** 个此类型附魔 * 在获取高等级该类型附魔时的偏向为 **0** * 附魔**不可**被砂轮洗去 * <html><code><span style="background: linear-gradient(to right, #0575E6, #1E3FBA); -webkit-background-clip: text; color: transparent;">spell</span></code></html> * 单件物品上至多拥有 **1** 个此类型附魔 * 在获取高等级该类型附魔时的偏向为 **0.5** * 附魔**可**被砂轮洗去 * <html><code><span style="background: linear-gradient(to right, #FB57EC, #EF1DEC); -webkit-background-clip: text; color: transparent;">special</span></code></html> * 单件物品上至多拥有 **1** 个此类型附魔 * 在获取高等级该类型附魔时的偏向为 **0.7** * 附魔**可**被砂轮洗去 ==== targets ==== <code yaml>targets: - sword</code> 定义附魔可以应用的物品,可选的有:''pickaxe''(镐), ''axe''(斧), ''hoe''(锄), ''shovel''(锹), ''sword''(剑), ''helmet''(头盔), ''chestplate''(胸甲), ''leggings''(护腿), ''boots''(靴子), ''armor''(防具), ''trident''(三叉戟), ''bow''(弓), ''crossbow''(弩), ''shears''(剪刀), ''shield''(盾牌), ''fishing_rod''(鱼竿), ''flint_and_steel''(打火石), ''carrot_on_a_stick''(萝卜钓竿), ''elytra''(鞘翅) ==== conflicts ==== <code yaml>conflicts: [ ]</code> 定义与其冲突的附魔 ==== rarity ==== <code yaml>rarity: legendary</code> 定义附魔的稀有度,可选的有: * ''common'' * 展示名:普通 * 在附魔台中获取该稀有度的最低经验等级:1 * 在附魔台中获取此稀有度的概率:30 * 村民交易中出现此稀有度的概率:10.5 * 战利品箱中出现此稀有度的概率:12 * ''uncommon'' * 展示名:不凡 * 在附魔台中获取该稀有度的最低经验等级:5 * 在附魔台中获取此稀有度的概率:20 * 村民交易中出现此稀有度的概率:9 * 战利品箱中出现此稀有度的概率:16 * ''rare'' * 展示名:稀有 * 在附魔台中获取该稀有度的最低经验等级:15 * 在附魔台中获取此稀有度的概率:20 * 村民交易中出现此稀有度的概率:7.5 * 战利品箱中出现此稀有度的概率:18 * ''epic'' * 展示名:史诗 * 在附魔台中获取该稀有度的最低经验等级:16 * 在附魔台中获取此稀有度的概率:10 * 村民交易中出现此稀有度的概率:6 * 战利品箱中出现此稀有度的概率:20 * ''legendary'' * 展示名:传说 * 在附魔台中获取该稀有度的最低经验等级:20 * 在附魔台中获取此稀有度的概率:8 * 村民交易中出现此稀有度的概率:4.5 * 战利品箱中出现此稀有度的概率:15 * ''special'' * 展示名:稀世 * 在附魔台中获取该稀有度的最低经验等级:30 * 在附魔台中获取此稀有度的概率:2 * 村民交易中出现此稀有度的概率:3 * 战利品箱中出现此稀有度的概率:5 * ''veryspecial'' * 展示名:绝世 * 在附魔台中获取该稀有度的最低经验等级:30 * 在附魔台中获取此稀有度的概率:1 * 村民交易中出现此稀有度的概率:1.5 * 战利品箱中出现此稀有度的概率:2 ==== max-level ==== <code yaml>max-level: 4</code> 定义此附魔的最高等级 ==== tradeable ==== <code yaml>tradeable: true</code> 定义此附魔是否能从村民交易中获得 ==== discoverable ==== <code yaml>discoverable: true</code> 定义此附魔是否生成在战利品箱中 ==== enchantable ==== <code yaml>enchantable: true</code> 定义此附魔是否可以从附魔台中获得 ==== effects ==== 暂未汉化,请参照:https://plugins.auxilor.io/effects/configuring-an-effect <code yaml>effects: - id: potion_effect args: duration: 80 + ceil(%level% / 2) * 20 chance: 6 + %level% level: 1 effect: darkness apply-to-player: false triggers: - melee_attack</code> ==== conditions ==== 使用此附魔的条件,你可以使用 ''%level%'' 变量 <code yaml>conditions: []</code> dev/ecoenchants/zidingyi.txt 最后更改: 2022/12/23 19:26由 UWiki Admin