FillDispensers
一个适用于 Spigot/Paper 1.21 的插件,允许你在 WorldEdit 选区 内使用指定物品和数量填充发射器和容器。
功能特性
- 需要 WorldEdit — 使用你当前的 WorldEdit 选区
- 支持填充发射器、箱子、 barrels(木桶)、漏斗等更多方块
- 可选的逗号分隔式方块过滤器,仅针对特定类型的方块
- 可通过
config.yml 配置最大区域大小
- 保留方块状态和容器内容
依赖要求
- Spigot 1.21.1 或 Paper 1.21.1
- WorldEdit 7.0+(必需,硬性依赖)
安装方法
- 构建或下载最新版本的 JAR 文件。
- 将其放入服务器的
plugins/ 文件夹中。
- 重启服务器。
使用方法
| 命令 |
描述 |
//wand → 选择区域 → /fd |
用 64 个 TNT 填充 WorldEdit 选区内的所有发射器 |
/fd <item> [count] |
在当前 WorldEdit 选区内填充发射器 |
/fd <item> [count] <block1,block2> |
仅填充指定的方块类型(例如 chest,barrel,hopper) |
/fd checkworldedit |
检查是否已挂钩 WorldEdit 并显示当前选区 |
/filldisp 或 /fd |
别名 |
参数说明
item — 任何有效的 Material 名称。默认值:tnt。
count — 每个槽位的物品数量(自动限制为材料最大堆叠数)。默认值:64。
blocks — 要目标的逗号分隔方块类型。默认值:仅限发射器。
示例
//wand
# 左键点击:设置 pos1
# 右键点击:设置 pos2
/fd
→ 将选区内每个发射器的每个槽位填充 64 个 TNT。
/fd minecraft:arrow 16
→ 相同选区,但每个槽位获得 16 支箭。
/fd tnt 64 chest,barrel,hopper
→ 仅填充箱子、木桶和漏斗,每个填入 64 个 TNT。
/fd checkworldedit
→ 显示 WorldEdit 版本和当前选区坐标。
配置文件
plugins/FillDispensers/config.yml
max-region-blocks: 250000
max-region-blocks 限制了扫描区域内的总方块数。如果你的选区更大,命令将被拒绝,并且可以在此处提高限制。
权限节点
| 权限 |
默认值 |
描述 |
filldispensers.use |
op |
允许使用所有 /filldispensers 命令 |
兼容性说明
- 本插件对 WorldEdit 有硬性依赖。如果没有安装 WorldEdit,它将无法加载。
- 需要 WorldEdit 7.0+ 以支持选区功能。
- 方块更新和方块状态会被保留。
许可证
MIT
FillDispensers
A Spigot/Paper 1.21 plugin that fills dispensers and containers inside a WorldEdit selection with a chosen item and count.
Features
- WorldEdit required — uses your active WorldEdit selection
- Fill dispensers, chests, barrels, hoppers, and more
- Optional comma-separated block filter to target only specific block types
- Configurable max region size via
config.yml
- Preserves block states and container contents
Requirements
- Spigot 1.21.1 or Paper 1.21.1
- WorldEdit 7.0+ (required, hard dependency)
Installation
- Build or download the latest JAR.
- Place it in your server's
plugins/ folder.
- Restart your server.
Usage
| Command |
Description |
//wand → select area → /fd |
Fill all dispensers in a WorldEdit selection with 64 TNT |
/fd <item> [count] |
Fill dispensers in the current WorldEdit selection |
/fd <item> [count] <block1,block2> |
Fill only specified block types (e.g. chest,barrel,hopper) |
/fd checkworldedit |
Check if WorldEdit is hooked and show your current selection |
/filldisp or /fd |
Aliases |
Arguments
item — any valid Material name. Default: tnt.
count — items per slot (auto-clamped to material max stack size). Default: 64.
blocks — comma-separated block types to target. Default: dispensers only.
Examples
//wand
# Left-click: set pos1
# Right-click: set pos2
/fd
→ Fills every dispenser in the selection with 64 TNT per slot.
/fd minecraft:arrow 16
→ Same selection, but each slot gets 16 arrows.
/fd tnt 64 chest,barrel,hopper
→ Fills only chests, barrels, and hoppers with 64 TNT each.
/fd checkworldedit
→ Shows WorldEdit version and current selection coordinates.
Configuration
plugins/FillDispensers/config.yml
max-region-blocks: 250000
max-region-blocks caps the total number of blocks in the scanned region. If your selection is larger, the command is rejected and the limit can be raised here.
Permissions
| Permission |
Default |
Description |
filldispensers.use |
op |
Allows using all /filldispensers commands |
Compatibility notes
- This plugin is a hard dependency on WorldEdit. It will not load without WorldEdit installed.
- WorldEdit 7.0+ is required for selection support.
- Block updates and block states are preserved.
License
MIT
评论 0
登录后参与评分
还没有评论,来抢沙发吧