# ❓️ 常见问题

## 问题 1: 如何从其他插件导入物品

手持物品并执行命令 `/cfishing items import test_item` ，您将在 `CustomFishing/imported_items.yml` 中找到导出的物品，然后您可以将导出的数据复制并粘贴到所需的位置。

## 问题 2: 如何使用原版 1.20.5+ 自定义耐久度？

首先，删除插件提供的 `max-durability`，以避免冲突。然后使用组件部分将 `max_damage` 属性添加到物品中。您可以阅读此页面了解示例。

{% content-ref url="ge-shi/wu-pin" %}
[wu-pin](https://momi.gtemc.cn/customfishing/cha-jian-wiki/customfishing/ge-shi/wu-pin)
{% endcontent-ref %}

## 问题 3: 如何使用其他插件中的物品/方块？

config.yml有一个这样的部分，让我们以物品为例

```yaml
# CustomFishing 支持使用其他插件的物品/方块
# 如果物品共享相同的 ID，它们将继承效果
item-detection-order:
  - CustomFishing
  - vanilla
block-detection-order:
  - vanilla
```

例如，如果您安装了 ItemsAdder，并且希望 CustomFishing 检查 ItemsAdder 的 ID，您可以将 ItemsAdder 添加到顺序中：

```yaml
item-detection-order:
  - ItemsAdder
  - CustomFishing
  - vanilla
```

然而，ItemsAdder 中的物品都有命名空间，因此为了确保 ID 对应，您需要修改 Custom Fishing 的鱼竿配置。

```yaml
namespace:beginner_rod:
  material: ItemsAdder:namespace:beginner_rod
  effects:
    effect_1:
      type: wait-time-multiplier
      value: 1.5
    effect_2:
      type: difficulty
      value: -8
```

如果您安装了 MMOItems，您可以这样配置（这里使用大写是因为 MMOItems 会将所有 ID 转换为大写）

```yaml
item-detection-order:
  - MMOItems
  - CustomFishing
  - vanilla
```

```yaml
BEGINNER_ROD:
  material: MMOItems:TOOL:BEGINNER_ROD
  effects:
    effect_1:
      type: wait-time-multiplier
      value: 1.5
    effect_2:
      type: difficulty
      value: -8
```

如果您安装了 Oraxen，您可以这样配置

```yaml
item-detection-order:
  - Oraxen
  - CustomFishing
  - vanilla
```

```yaml
beginner_rod:
  material: Oraxen:beginner_rod
  effects:
    effect_1:
      type: wait-time-multiplier
      value: 1.5
    effect_2:
      type: difficulty
      value: -8
```

## 问题 4: 如何将我的等级插件与 CustomFishing 集成？

一些等级插件可能会提供技能修改钓鱼机制，在这方面，除非两个开发者合作，否则 Custom Fishing 无能为力。但在大多数情况下，只要这些插件提供相应的属性变量和技能等级变量，这些属性增益就可以应用于 Custom Fishing。您可以参考此页面了解一些示例。

{% content-ref url="jian-rong-xing/zhi-chi-de-deng-ji-xi-tong" %}
[zhi-chi-de-deng-ji-xi-tong](https://momi.gtemc.cn/customfishing/cha-jian-wiki/customfishing/jian-rong-xing/zhi-chi-de-deng-ji-xi-tong)
{% endcontent-ref %}

{% content-ref url="zhan-wei-fu-he-biao-da-shi" %}
[zhan-wei-fu-he-biao-da-shi](https://momi.gtemc.cn/customfishing/cha-jian-wiki/customfishing/zhan-wei-fu-he-biao-da-shi)
{% endcontent-ref %}

## 问题 5: 为什么我不能玩迷你游戏？

如果您安装了 MMOCore，那么您的钓鱼机制将如下面的图片所示。解决这个问题的方法是通过删除 YAML 配置文件来删除 MMOCore 提供的钓鱼职业。

<div align="left"><figure><img src="https://2403073102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn2ogeAAIntzmG4ra344J%2Fuploads%2Fgit-blob-a3b6bc5aa0b2da65915a94a6d339489458cef9a7%2F2b27463a-715b-4ec5-a880-da4d0ae1c4ee.png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>

## 问题 6: 如何启用虚空钓鱼机制？

虚空钓鱼是由 CustomFishing API 注册的一种特殊机制。如果您对编码有一定了解，它允许您注册任何您想要的钓钩机制。 首先，在 loot-conditions.yml 中为虚空配置战利品，例如：

```yaml
global-group:
  list: []
  conditions: {}
  sub-groups:
    loots_in_void:
      conditions:
        in-void: true
        environment:
          - the_end
      list:
        - rubbish:+5
```

然后在您想要的地方创建一个允许虚空钓鱼的效果。在这种情况下，我在 config.yml 中使用 `global-effects`。

```yaml
mechanics:
  global-effects:
    void_fishing:
      type: void-fishing
```

现在您可以在虚空中钓鱼了！

<figure><img src="https://2403073102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn2ogeAAIntzmG4ra344J%2Fuploads%2Fgit-blob-de18af9386830e546533e10a6cfb47ab8430f09c%2Fimage.png?alt=media" alt=""><figcaption><p>虚空钓鱼</p></figcaption></figure>

## 问题 7: 为什么 TOTAL\_SCORE 比赛无法进行？ <a href="#wen-ti-1-ru-he-shi-yong-yuan-ban-geng-di-zuo-wei-zhong-zhi-pen" id="wen-ti-1-ru-he-shi-yong-yuan-ban-geng-di-zuo-wei-zhong-zhi-pen"></a>

要使该功能正常运作，您需要为每条鱼设置得分。

[🏆 战利品](https://momi.gtemc.cn/customfishing/cha-jian-wiki/customfishing/ge-shi/zhan-li-pin) (查看本页的竞争得分部分)

## 问题 8: 如何使用 AureSkills 或 mcMMO 的钓鱼掉落表 <a href="#wen-ti-1-ru-he-shi-yong-yuan-ban-geng-di-zuo-wei-zhong-zhi-pen" id="wen-ti-1-ru-he-shi-yong-yuan-ban-geng-di-zuo-wei-zhong-zhi-pen"></a>

{% content-ref url="jian-rong-xing/mcmmo-bao-zang" %}
[mcmmo-bao-zang](https://momi.gtemc.cn/customfishing/cha-jian-wiki/customfishing/jian-rong-xing/mcmmo-bao-zang)
{% endcontent-ref %}

{% content-ref url="jian-rong-xing/auraskills" %}
[auraskills](https://momi.gtemc.cn/customfishing/cha-jian-wiki/customfishing/jian-rong-xing/auraskills)
{% endcontent-ref %}
