适用于基于 Babric 加载器运行的 Better Than Adventure 7.3_04 的世界边界模组。
功能
- 圆形与方形边界 - 可在圆形或矩形边界形状之间进行选择
- 按世界配置 - 为每个维度(主世界、下界、天界等)设置不同的边界
- 玩家击退 - 当玩家穿越边界时,将被传送回安全 Y 坐标位置
- 绕过系统 - 允许特定玩家绕过边界限制
- 区块预生成 - 使用
/wb fill 命令预生成边界内的所有区块
- Dynmap 集成 - 在 Dynmap 上显示边界(需要安装 better-with-dynmap)
- 可配置的击退距离 - 调整玩家被推回的力度/距离
- 音效反馈 - 撞击边界时会播放呼啸声效
命令
除非另有说明,所有命令均需操作员权限。
| 命令 |
描述 |
/wb |
显示帮助信息 |
/wb set <radius> [world] |
以你所在的位置为中心设置边界半径 |
/wb setcorners <x1> <z1> <x2> <z2> [world] |
通过角点坐标设置边界 |
/wb radius <radius> [world] |
更改边界半径 |
/wb clear [world] |
移除边界 |
/wb list |
列出所有边界(无需权限) |
/wb shape <round|square> |
设置默认边界形状 |
/wb bypass <player> |
切换指定玩家的边界绕过权限 |
/wb bypasslist |
列出拥有绕过权限的玩家 |
/wb knockback <distance> |
设置击退距离(1-10) |
/wb fill [chunksPerTick] [world] |
预生成边界内的区块(请参阅下方的警告) |
/wb cancelFill [world] |
取消区块生成 |
/wb fillstatus |
显示填充进度 |
/wb dynmap <on|off> |
切换 Dynmap 集成状态 |
区块预生成警告
警告:在使用 /wb fill 之前,请务必备份你的世界!
区块预生成功能会在边界内生成并填充区块。此过程会修改你的世界数据,且无法撤销。
在运行 /wb fill 之前:
- 停止服务器
- 对世界文件夹进行完整备份
- 重启服务器
- 运行
/wb fill
使用此功能的风险自负。 作者不对任何数据丢失或世界损坏负责。
安装
- 下载最新版本
- 将 JAR 文件放入服务器的
mods 文件夹中
- 重启服务器
Dynmap 集成
本模组与 better-with-dynmap 集成,以便在你的 Dynmap 网页地图上显示世界边界。
设置
- 在你的服务器上安装 better-with-dynmap
- 重启服务器
- 边界将自动出现在 Dynmap 上
功能
- 自动创建标记 - 边界在地图上以圆形/矩形标记显示
- 按世界支持 - 每个维度的边界都会在其对应的地图上显示
- 实时更新 - 更改边界设置时,标记会自动更新
- 开关控制 - 使用
/wb dynmap <on|off> 启用或禁用标记
配置
Dynmap 集成可以在 worldborder/config.json 中进行切换:
{
"dynmapEnabled": true
}
或者使用命令:/wb dynmap off 来禁用。
配置
配置存储在 worldborder/config.json 中,并在首次运行时自动创建。
{
"shapeRound": false,
"message": "You have reached the edge of the world.",
"knockback": 3.0,
"timerTicks": 4,
"whooshEffect": true,
"dynmapEnabled": true,
"bypassPlayers": [],
"borders": {
"world": {
"centerX": 0.0,
"centerZ": 0.0,
"radius": 1000,
"shapeRound": null
}
}
}
从源代码构建
./gradlew build
输出的 JAR 文件将位于 build/libs/ 中。
鸣谢
灵感源自 Brettflan 的原始 WorldBorder Bukkit 插件。
这是为 BTA Babric 从头开始编写的全新实现——未从原插件中复制任何代码。
许可证
MIT 许可证 - 详见 LICENSE。
A world border mod for Better Than Adventure 7.3_04 running on Babric mod loader.
Features
- Round and square borders - Choose between circular or rectangular border shapes
- Per-world configuration - Set different borders for each dimension (Overworld, Nether, Aether, etc.)
- Player pushback - Players are teleported back when crossing the border with safe Y position finding
- Bypass system - Allow specific players to bypass the border
- Chunk pre-generation - Pre-generate all chunks inside the border with
/wb fill
- Dynmap integration - Displays borders on Dynmap (requires better-with-dynmap)
- Configurable knockback - Adjust how far players are pushed back
- Sound effects - Whoosh sound when hitting the border
Commands
All commands require operator permissions unless noted.
| Command |
Description |
/wb |
Show help |
/wb set <radius> [world] |
Set border centered at your position |
/wb setcorners <x1> <z1> <x2> <z2> [world] |
Set border by corner coordinates |
/wb radius <radius> [world] |
Change border radius |
/wb clear [world] |
Remove border |
/wb list |
List all borders (no permission required) |
/wb shape <round|square> |
Set default border shape |
/wb bypass <player> |
Toggle border bypass for a player |
/wb bypasslist |
List players with bypass |
/wb knockback <distance> |
Set knockback distance (1-10) |
/wb fill [chunksPerTick] [world] |
Pre-generate chunks inside border (see warning below) |
/wb cancelFill [world] |
Cancel chunk generation |
/wb fillstatus |
Show fill progress |
/wb dynmap <on|off> |
Toggle Dynmap integration |
Chunk Pre-generation Warning
WARNING: BACKUP YOUR WORLD BEFORE USING /wb fill!
The chunk pre-generation feature generates and populates chunks inside the border. This process modifies your world data and cannot be undone.
Before running /wb fill:
- Stop the server
- Create a full backup of your world folder
- Restart the server
- Run
/wb fill
Use this feature at your own risk. The authors are not responsible for any data loss or world corruption.
Installation
- Download the latest release
- Place the JAR in your server's
mods folder
- Restart the server
Dynmap Integration
This mod integrates with better-with-dynmap to display world borders on your Dynmap web map.
Setup
- Install better-with-dynmap on your server
- Restart the server
- Borders will automatically appear on Dynmap
Features
- Automatic marker creation - Borders are displayed as circle/rectangle markers on the map
- Per-world support - Each dimension's border is shown on its respective map
- Real-time updates - Markers update when you change border settings
- Toggle on/off - Use
/wb dynmap <on|off> to enable or disable markers
Configuration
Dynmap integration can be toggled in worldborder/config.json:
{
"dynmapEnabled": true
}
Or use the command: /wb dynmap off to disable.
Configuration
Configuration is stored in worldborder/config.json and is automatically created on first run.
{
"shapeRound": false,
"message": "You have reached the edge of the world.",
"knockback": 3.0,
"timerTicks": 4,
"whooshEffect": true,
"dynmapEnabled": true,
"bypassPlayers": [],
"borders": {
"world": {
"centerX": 0.0,
"centerZ": 0.0,
"radius": 1000,
"shapeRound": null
}
}
}
Building from Source
./gradlew build
The output JAR will be in build/libs/.
Credits
Inspired by the original WorldBorder Bukkit plugin by Brettflan.
This is a new implementation written from scratch for BTA Babric - no code was copied from the original plugin.
License
MIT License - see LICENSE for details.
评论 0
登录后参与评分
还没有评论,来抢沙发吧