# 全皆与仅限箱子
## 📝 描述 / Beschreibung
**全皆与仅限箱子** 是一款适用于 PaperMC(版本 1.21.4)的 Minecraft 插件,基于 YouTuber 和直播主 BastiGHG 玩过的流行挑战。该插件为玩家提出了一个令人兴奋的挑战:
- 🔨 **无法通过挖掘方块获得物品:** 方块被挖掘时,除非物品之前是由玩家放置的,否则不会掉落物品。
- 🎒 **仅从箱子获得物品:** 只能从结构中的箱子里收集物品。
- 🏰 **逐个探索结构:** 玩家选择一个要掠夺的结构。一旦找到该结构中的所有物品,就可以选择下一个结构。
- 🏆 **目标:** 找到所有结构中的所有物品。
**All & Only Chests** is a Minecraft plugin for PaperMC (version 1.21.4) based on the popular challenge played by YouTuber and streamer BastiGHG. The plugin presents players with an exciting challenge:
- 🔨 **No items from block breaking:** Items do not drop when blocks are broken unless they were placed by the player beforehand.
- 🎒 **Items only from chests:** Items can only be collected from chests in structures.
- 🏰 **Loot structures one by one:** Players select a structure to loot. Once all items from that structure are found, the next structure can be chosen.
- 🏆 **Objective:** Find all items from all structures.
---
## ⚙️ 安装 / Installation
1. 📥 下载 **全皆与仅限箱子** 的最新版本。
📥 Download the latest version of **All & Only Chests**.
2. 📂 将插件文件 (`.jar`) 放入你的 PaperMC 服务器的 `plugins` 文件夹中。
📂 Place the plugin file (`.jar`) in the `plugins` folder of your PaperMC server.
3. 🔄 重启服务器。
🔄 Restart the server.
4. ✅ 确保权限已正确配置(请参阅下文)。
✅ Ensure the permissions are correctly configured (see below).
---
## 🛠️ 指令 / Commands
### `/structures`
- 🗂️ **描述:** 打开一个 GUI,可以在其中选择一个结构。
**Description:** Opens a GUI where a structure can be selected.
- 🔑 **权限:** `AllAndOnlyChests.command.structures`
### `/structure finish`
- 🛑 **描述:** 结束当前选择的结构,例如当物品出现故障时。
**Description:** Ends the currently selected structure, for example, if an item is bugged.
- 🔑 **权限:** `AllAndOnlyChests.command.structure.finish`
### `/scoreboard toggle`
- 📊 **描述:** 切换计分板的开启或关闭。
**Description:** Toggles the scoreboard on or off.
- 🚫 **权限:** 无需权限。
**Permission:** None required.
### `/save`
- 💾 **描述:** 手动保存当前进度。
**Description:** Manually saves the current progress.
- 🔑 **权限:** `AllAndOnlyChests.command.save`
### `/drops`
- 💾 **描述:** 显示物品掉落是否已启用。
**Description:** Shows if item drops are activated.
- 🔑 **权限:** `AllAndOnlyChests.command.drops`
### `/drops toggle`
- 💾 **描述:** 激活/禁用物品掉落。
**Description:** Activates/Deactivates Item Drops.
- 🔑 **权限:** `AllAndOnlyChests.command.drops`
---
## 🔄 自动保存 / Auto Save
- 当发生以下情况时,进度会自动保存:
Progress is automatically saved when:
- 最后一名玩家离开服务器。
The last player leaves the server.
- 使用 `/stop` 命令停止服务器。
The server is stopped using the `/stop` command.
- 5 分钟过去。
5 minutes pass.
---
## 🖼️ GUI


---
## 📜 许可 / License
本作品采用 Creative Commons Attribution-NonCommercial 4.0 International 许可。
More information at: https://creativecommons.org/licenses/by-nc/4.0/
This work is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License.
More information at: https://creativecommons.org/licenses/by-nc/4.0/
---
## 📂 GitHub 仓库 / GitHub Repository
对于代码和其他信息,请访问 GitHub 仓库:[GitHub 仓库](https://github.com/Skippaddin/All-and-Only-Chests)
For the code and more information, visit the GitHub repository: [GitHub Repository](https://github.com/Skippaddin/All-and-Only-Chests)
---
祝你玩 **全皆与仅限箱子** 挑战游戏愉快!
Have fun playing the **All & Only Chests** challenge!