包含对以下模组的支持:
通用 附加组件至 https://www.curseforge.com/minecraft/mc-mods/puffish-skills 包含对以下模组的支持: https://www.curseforge.com/minecraft/mc-mods/irons-spells-n-spellbooks 建议查阅文档: https://puffish.net/skillsmod/docs/creators/configuration/calculations/prototypes https://puffish.net/skillsmod/docs/creators/configuration/calculations/operations/operation 属性已移至 额外属性 经验来源 收获作物 挂钩到从战利品表中获取物品的方法 操作 : player : 正在收获作物的玩家(原型为 玩家 ) block : 被收获的方块(原型为 方块状态 ) tool : 正在使用的工具(原型为 物品堆 ) dropped_seeds : 基于 #forge:seeds 掉落的种子数量(原型为 number ) dropped_crops : 基于 #forge:crops 掉落的作物数量(原型为 number ) 示例: { "type": "pufferfish_unofficial_additions:harvest_crops", "data": { "variables": { "crops": { "operations": [ { "type": "block" }, { "type": "puffish_skills:test", "data": { "block": "#minecraft:crops" } } ] }, "dropped_crops": { "operations": [ { "type": "dropped_crops" } ] }, "dropped_seeds": { "operations": [ { "type": "dropped_seeds" } ] } }, "experience": [ { "condition": "crops", "expression": "dropped_crops + (dropped_seeds * 0.2)" } ] } } 钓鱼经验 每钓到一个物品时调用一次 操作 : player : 正在钓鱼的玩家(原型为 玩家 ) tool : 正在使用的工具(原型为 物品堆 ) fished : 钓到的物品(原型为 物品堆 ) 示例: { "type": "pufferfish_unofficial_additions:fishing", "data": { "variables": { "fishes": { "operations": [ { "type": "fished" }, { "type": "puffish_skills:test", "data": { "item": "#minecraft:fishes" } } ] }, "fished_amount": { "operations": [ { "type": "fished" }, { "type": "count" } ] } }, "experience": [ { "condition": "fishes", "expression": "fished_amount * 4" }, { "condition": "!fishes", "expression": "fished_amount * 2" } ] } } 奖励 效果 施加效果(无限持续时间): 在从定义中移除奖励之前,你必须重置技能(或手动移除效果) { "type": "pufferfish_unofficial_additions:effect", "data": { "effect": "minecraft:regeneration", "amplifier": 0, "type": "GRANT" } } 授予免疫效果,最高达到特定等级: { "type": "pufferfish_unofficial_additions:effect", "data": { "effect": "minecraft:wither", "amplifier": 1, "type": "IMMUNE" } } 修改传入效果的持续时间和/或等级: 如果由于修改导致持续时间达到 0 ,则该效果将不会应用 有效的操作有 + , - , x 和 / 此元素为可选 如果放大器低于 0 由于修改,效果将不会应用 { "type": "pufferfish_unofficial_additions:effect", "data": { "effect": "minecraft:slowness", "amplifier": -2, "duration_modification": "/2.5", "type": "MODIFY" } } 可行走的粉雪 允许在粉雪上行走 { "type": "puffish_skills:tag", "data": { "tag": "walk_on_powder_snow" } } 铁之法术与法典 经验来源 为施放法术添加了经验来源 注意 : 经验来源将对每个法术刻触发,意味着对于持续法术,可能会多次发生(参见 expected_ticks 参数) 操作 : player : 施法者(原型为 玩家 ) main_hand : 主手物品(原型为 物品堆 ) spellbook : 当前装备的法术书(原型为 物品堆 ) school : 法术的学校类型(原型为自定义) 值由 school spell : 法术(原型为自定义) 值由 spell 包含以下子操作: min_level : 此类法术的最低等级(原型为 number ) max_level : 此类法术的最高等级(原型为 number ) cast_type : 施放该法术的方式( INSTANT , LONG , CONTINUOUS )(原型为自定义)- 值由 value level : 法术等级(包括通过物品等进行的修改)(原型为 number ) min_level_rarity : 基于稀有度的法术最低等级(原型为 number ) rarity_name : 稀有度名称( COMMON , RARE , EPIC , LEGENDARY )(原型为自定义) 值由 value rarity : 稀有度的序数 0 是 COMMON 和 4 是 LEGENDARY ) (原型为 number ) mana_cost : 该等级法术的法力消耗(如果施法消耗法力)(原型为 number ) mana_cost_per_second : 仅对持续型法术设置(且如果施法需要法力)(原型为 number ) cast_duration : 持续型法术的持续时间(以秒为单位)(原型为 number ) cast_charge_time : 法术的蓄力时间(如果有)(以秒为单位)(原型为 number ) cooldown : 施放法术后的冷却时间(以秒为单位)(原型为 number ) expected_ticks : 对于即时型和长型法术将显示为 1 - 对于持续型法术,如果使用整个持续时间,则为法术tick的数量 (原型为 number ) 示例: { "type": "pufferfish_unofficial_additions:spell_casting", "data": { "variables": { "level": { "operations": [ { "type": "level" } ] }, "rarity": { "operations": [ { "type": "rarity_name" }, { "type": "puffish_skills:test", "data": { "value": "LEGENDARY" } }, { "type": "switch", "data": { "true": 5, "false": 1 } } ] }, "mana_cost": { "operations": [ { "type": "mana_cost" } ] }, "mana_cost_per_second": { "operations": [ { "type": "mana_cost_per_second" } ] }, "spellbook": { "operations": [ { "type": "spellbook" }, { "type": "puffish_skills:test", "data": { "item": "irons_spellbooks:iron_spell_book" } } ] }, "fire_school": { "operations": [ { "type": "school" }, { "type": "puffish_skills:test", "data": { "school": "irons_spellbooks:fire" } } ] }, "blaze_storm": { "operations": [ { "type": "spell" }, { "type": "puffish_ski…
在鱼乐云资源中心浏览该资源,登录后可一键安装到你的游戏服务器。