Pufferfish's Unofficial Additions

模组

· 作者 Cadentem

额外的经验来源和奖励

5 本站下载 0 关注 更新于 11 个月前

需要前置:Pufferfish's Skills

最新 2.2.8 · 1.21.1 · NeoForge

一键开服(送7天)

通用

Pufferfish's Skills 的附加组件。

包含对以下模组的支持:

建议查阅文档:


属性功能已移至 Additional Attributes

经验来源

收获作物

挂钩获取战利品表物品的逻辑。

操作数:

  • player: 正在收获作物的玩家(原型为 Player)
  • block: 被收获的方块(原型为 Block State)
  • tool: 使用的工具(原型为 Item Stack)
  • 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: 正在钓鱼的玩家(原型为 Player)
  • tool: 使用的工具(原型为 Item Stack)
  • fished: 钓到的物品(原型为 Item Stack)

示例:

    {
  "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"
  }
}

Iron's Spells 'n Spellbooks

经验来源

添加了施法时的经验来源。

注意:经验源将对每个法术刻触发,这意味着对于持续型法术,它可能会多次触发(参见 expected_ticks 参数)。

操作数:

  • player: 施法者(原型为 Player)
  • main_hand: 主手物品(原型为 Item Stack)
  • spellbook: 当前装备的法术书(原型为 Item Stack)
  • 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;对于持续型法术,则是如果使用完整持续时间时的法术刻数(原型为 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_skills:test",
            "data": {
              "spell": "irons_spellbooks:blaze_storm"
            }
          }
        ]
      }
    },
    "experience": [
      {
        "condition": "spellbook & !blaze_storm & fire_school",
        "expression": "level + (mana_cost / 5) + rarity"
      },
      {
        "condition": "blaze_storm",
        "expression": "(level + (mana_cost_per_second / 10)) / 2"
      }
    ]
  }
}

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源