# Google Drive 托管

{% hint style="warning" %}
由于 Minecraft 的一个 bug，在 1.17 之前的版本中，这种方法在某些 PC 上存在一些问题，详情请阅读：[MC-143768](https://bugs.mojang.com/browse/MC-143768)

这种方法在 Minecraft 1.17.1 及更高版本中 100% 有效。
{% endhint %}

### 第一步

右键点击你的资源包 zip 文件，然后点击“获取链接”

![](/files/C32XpD4lH3v75nmQajav)

### 第二步

重要：将权限设置为“拥有链接的任何人”

![](/files/NIb4iLQ0WdC5PV3FkIQ6)

点击“复制链接”

![](/files/oyda0skBMHAIdy8Q1BXw)

### 第三步

访问这个网站：<http://a.devs.beer/gdrive-direct>

粘贴链接并点击“获取直接链接”

<img src="/files/BI97cKEJyFLL5dqEh02x" alt="" data-size="original">

### 第四步

网站会自动将生成的链接添加到你的剪贴板中。

![](/files/67l5S3fptEIGAslq3BHH)

你现在可以将链接粘贴到 **ItemsAdder** 配置文件 `config.yml` 中，然后使用 `/iareload` 命令。

{% code title="config.yml" %}

```yaml
external-host:
  enabled: true
  url: 'http://drive.google.com/uc?export=view&id=10g3whim95Hab40KZNjUkwY9FUuqKMGh5'
```

{% endcode %}

### 完成！

你现在可以看到资源包已被游戏正确加载。

## 常见问题

### 长时间停留在“正在请求... 100%”

### ![](/files/utJwnqwvcLAEWBiflHNW)

这是正常现象。因为 Google Drive 在授权下载资源包之前会进行一些操作。

这种情况只会在玩家第一次下载资源包时发生，通常需要 5 到 10 秒。

### 资源包完全无法加载

由于 Minecraft 的一个 bug，在 1.17 之前的版本中，这种方法在某些 PC 上存在一些问题，详情请阅读：[MC-143768](https://bugs.mojang.com/browse/MC-143768)

这种方法在 Minecraft 1.17.1 及更高版本中 100% 有效。

## 如果需要，请继续安装

{% content-ref url="/pages/-M2DaLP4y3wYXxs9pJdt" %}
[首次安装](/chinese/first-install.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://itemsadder.devs.beer/chinese/cha-jian-shi-yong-fang-fa/resourcepack-hosting/google-drive.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
