DirectionalBlockAppearance
根据观察视角的不同,让方块呈现不同的外观。

DBA 会在玩家的客户端上显示虚假方块,这些方块仅存在于本地。在你指定的那一侧,玩家会看到你选择的方块;从其他任何一侧观察时,他们看到的是真实的方块。非常适合用于单向玻璃、观察者箱以及从不同侧面看过去外观各异的墙壁。无需安装客户端模组或资源包。
功能特性
- 每个玩家拥有独立的虚假方块,真实世界保持不变
- 支持分组管理你的方块
- 使用
/dba pos1、/dba pos2 或选择法杖进行类似 WorldEdit 的选区操作
- 支持撤销(Undo)最近的操作更改
- 防破坏保护,可防止被破坏、活塞推动、爆炸等影响,各项保护均可在配置文件中单独开关
- 可自定义提示信息
快速入门
/dba group create windows
/dba wand (左键点击 = pos1, 右键点击 = pos2)
/dba set windows glass (站在希望看到玻璃的那一侧)
走到另一侧,你就能看到真实的方块。出错了?使用 /dba undo 撤销。
命令
/dba group create|delete|list [name] – 管理分组
/dba pos1 / /dba pos2 – 设置选区的一个角点
/dba wand – 获取选择法杖
/dba set <group> <block> [side] – 为整个选区设置虚假方块
/dba quickset <group> <block> – 将你当前面向的一侧设置为指定方块的虚假方块
/dba clear – 清除选区内所有的 DBA 方块
/dba undo [amount] – 撤销最近的更改
权限说明
每条命令都有对应的独立权限:dba.command.<command>(例如 dba.command.set 或 dba.command.group.create)。
dba.admin – 拥有所有权限(默认:OP 玩家)
dba.break – 允许破坏受保护的 DBA 方块
环境要求
- Spigot 或 Paper 1.21+
- Java 21
已在 Spigot 1.21.1、1.21.11、26.3 和 Paper 1.21、26.3 上测试通过。支持位于 BungeeCord/Velocity 后端的后端服务器。不支持 Folia。
性能表现
在一组包含 13,000 个 DBA 方块且玩家紧邻其旁的情况下进行测试:服务器保持 20 TPS,DBA 约占服务器线程处理时间的 2.4%。
源代码、完整文档及已知问题列表:GitHub
DirectionalBlockAppearance
Make blocks look different depending on the side you view them from.

DBA shows players fake blocks that only exist on their client. From the side you set, players see your chosen block. From any other side, they see the real block. Great for one-way windows, spectator boxes and walls that look different from each side. No client mods or resource packs needed.
Features
- Per-player fake blocks, the real world stays untouched
- Groups to organize your blocks
- WorldEdit-style selection with
/dba pos1, /dba pos2 or a wand
- Undo for your last changes
- Protection against breaking, pistons, explosions and more, each switchable in the config
- Configurable messages
Quick start
/dba group create windows
/dba wand (left click = pos1, right click = pos2)
/dba set windows glass (stand on the side that should see the glass)
Walk to the other side and you see the real block. Made a mistake? /dba undo
Commands
/dba group create|delete|list [name] – manage groups
/dba pos1 / /dba pos2 – set a selection corner
/dba wand – get the selection wand
/dba set <group> <block> [side] – set the fake block for your whole selection
/dba quickset <group> <block> – set the fake block on the side you are looking at
/dba clear – remove all DBA blocks in your selection
/dba undo [amount] – undo your last changes
Permissions
Every command has its own permission: dba.command.<command> (for example dba.command.set or dba.command.group.create).
dba.admin – all permissions (default: op)
dba.break – break protected DBA blocks
Requirements
- Spigot or Paper 1.21+
- Java 21
Tested on Spigot 1.21.1, 1.21.11, 26.3 and Paper 1.21, 26.3. Works on backend servers behind BungeeCord/Velocity. Folia is not supported.
Performance
Tested with 13,000 DBA blocks in one group and a player right next to them: the server stays at 20 TPS, and DBA uses about 2.4% of the server thread.
Source code, full documentation and known issues: GitHub
评论 0
登录后参与评分
还没有评论,来抢沙发吧