创建竞技场(Create Arena)

Updated 11/20/2026

InfiniteBedWars Wiki · 用指令创建一个竞技场


一、准备工作

项目

说明

权限

需要 infinitebedwars.admin(默认 OP 拥有)

指令前缀

/bwadmin,可简写为 /bwa(本篇统一用 /bwa)

点位记录方式

除 setbed 外,所有点位都记录你执行指令时站的位置(整数方块坐标)

世界

create 会把你当前所在世界记为地图世界,请先进地图世界再创建

推荐建图顺序:

create → setlobby → setspectator → addteam → setspawn → setbed → addgen → setnpc → setmin → save

二、分步教程(以房间名 map1 为例)

1.(可选)设置全局返回点

/bwa sethome

玩家退出房间、对局结束后传送到这里。只需设置一次,所有房间共用;支持跨世界。 不设置的话,默认回各房间的等待大厅。

2. 创建房间

站到地图世界里,执行:

/bwa create map1

提示“已创建房间 map1”即成功。房间名之后所有指令都要用到,建议用简短英文。

3. 设置等待大厅

走到等待大厅的出生位置,执行:

/bwa setlobby map1

玩家 /bw join map1 后会被传送到这里,等待开局。

4. 设置观战点

走到地图上空一个视野好的位置,执行:

/bwa setspectator map1

玩家死亡淘汰后、以及中途进房的旁观者会出现在这里。

5. 添加队伍

每支队伍执行一次(至少 2 支队伍才能开局):

/bwa addteam map1 red
/bwa addteam map1 blue
/bwa addteam map1 green
/bwa addteam map1 yellow

可用队伍 ID 与颜色对应表:

队伍 ID

显示

队伍 ID

显示

red

红队

aqua

青队

blue

蓝队

white

白队

green

绿队

pink

粉队

yellow

黄队

gray

灰队

其他名字也能创建,但会按默认红色处理,建议使用表内 ID。

6. 设置各队出生点

走到某队基地的出生位置,执行(以红队为例):

/bwa setspawn map1 red

每队都要设置一次,把 red 换成对应队伍 ID。

7. 设置各队的床

先把床在基地里放好,然后准星对着床(6 格以内)执行:

/bwa setbed map1 red

提示“床已设置(NORTH)”即成功。床的方向会自动识别,床的两格任意对准一格都可以。

提示“请看着床执行”=准星没有落在床方块上,或距离超过 6 格,靠近对准再试。

8. 添加资源点

站到资源点位置(建议在资源点方块正上方一格)执行:

/bwa addgen map1 iron

内置 4 种资源点类型:(可修改配置文件)

类型 ID

产出

默认间隔

用途建议

iron

铁锭(+1 级经验)

3 秒

每队基地 1~2 个

gold

金锭(+3 级经验)

8 秒

每队基地 1 个

diamond

钻石

30 秒

副岛 / 中路

emerald

绿宝石(+6 级经验)

20 秒

中心岛

典型布局示例:

/bwa addgen map1 iron      ← 红队基地
/bwa addgen map1 gold      ← 红队基地
……(每队基地重复)
/bwa addgen map1 diamond   ← 四个副岛各 1 个
/bwa addgen map1 emerald   ← 中心岛 2 个

资源点管理:

/bwa listgen map1     ← 查看所有资源点及坐标
/bwa delgen map1      ← 删除离你 5 格内最近的一个资源点

想加新资源类型(如远古残骸):编辑 plugins/InfiniteBedWars/generators.yml, 然后 /bwa reload,再用 /bwa addgen map1 <新类型> 放置。

9. 放置商店 / 团队升级 NPC

走到基地里 NPC 要站的位置执行:

/bwa setnpc map1 shop       ← 物品商店 NPC
/bwa setnpc map1 upgrade    ← 团队升级 NPC

一般每队基地各放一对(shop + upgrade),位置可以自定义。

NPC 管理:

/bwa delnpc map1       ← 删除离你 5 格内最近的一个 NPC
/bwa clearnpc map1     ← 清空该房间所有 NPC

10. 设置开局人数

/bwa setmin map1 8

满 8 人就开始倒计时(倒计时秒数在 config.yml 的 game.countdown,默认 10 秒)。 人数不足会自动取消倒计时。

房间最大人数默认 16,写在 plugins/InfiniteBedWars/arenas.yml 里该房间的 max-players 字段,可改完后 /bwa reload。 每队人数上限 = max-players ÷ 队伍数,例如 16 人 4 队 = 每队 4 人。

11. 保存 / 重载

/bwa save      ← 保存所有房间数据到 arenas.yml(正常每步都会自动保存,可兜底用)
/bwa reload    ← 重载配置(改了 yml 才需要)

三、完整可复制示例(4 队地图)

/bwa sethome
/bwa create map1
/bwa setlobby map1
/bwa setspectator map1
/bwa addteam map1 red
/bwa addteam map1 blue
/bwa addteam map1 green
/bwa addteam map1 yellow
/bwa setspawn map1 red
/bwa setbed map1 red
/bwa setspawn map1 blue
/bwa setbed map1 blue
/bwa setspawn map1 green
/bwa setbed map1 green
/bwa setspawn map1 yellow
/bwa setbed map1 yellow
/bwa addgen map1 iron
/bwa addgen map1 gold
/bwa addgen map1 diamond
/bwa addgen map1 emerald
/bwa setnpc map1 shop
/bwa setnpc map1 upgrade
/bwa setmin map1 8
/bwa save

注意:setspawn / setbed / addgen / setnpc 都要先移动到对应位置再执行, 上面连续复制时请按顺序一条条来,每队基地的资源点和 NPC 重复执行即可。


四、验收清单

检查项

指令 / 操作

通过标准

房间可加入

/bw join map1

传送到等待大厅,背包出现“队伍选择 / 退出游戏”物品

队伍预选

右键指南针选队

提示选择成功

开局

达到 setmin 人数等待倒计时

自动分队并传送到各队出生点

床

看敌方床

能被拆除并播报,自己的床拆不掉

资源点

站到资源点旁

正常掉落铁/金/钻石/绿宝石

NPC

右键商店 / 升级 NPC

正常打开商店、团队升级界面

退出

/bw leave

回到 sethome 位置,背包恢复

五、常见问题

Q:提示“没有该队伍,先 addteam”? setspawn / setbed 之前必须先 addteam,且队伍 ID 完全一致(小写)。

Q:房间一直不开局? 检查是否至少 2 支队伍、在线人数是否达到 setmin 设置值。

Q:拆床没反应? 只有 RUNNING 状态才能拆床;等待大厅里破坏/放置方块都会被插件取消,属正常保护。

Q:想重做一张图? /bwa delete map1 删除房间后,按本篇流程重新创建即可。

Q:玩家指令有哪些? /bw 打开房间列表 GUI(可快速加入);/bw join <房间> 加入; /bw leave 离开;/yq <内容> 在等待大厅发全服招募(其他玩家点击即可进房)。

InfiniteBedWars Wiki · Create an arena using commands

1. Preparations

Project

Explanation

Permissions

Requires infinitebedwars.admin (default OP owns)

Command prefix

/bwadmin, which can be abbreviated as /bwa (this article uses /bwa uniformly)

Method of recording points

Except for setbed, all points record your position when executing the command (integer block coordinates).

World

Create will mark your current world as the map world. Please enter the map world and create it again

Recommended map creation order:

create → setlobby → setspectator → addteam → setspawn → setbed → addgen → setnpc → setmin → save

2. Step-by-step tutorial (using room name map1 as an example)

1. (Optional) Set a global return point

/bwa sethome

Players exit the room and teleport here after the match ends. Only one setup is needed, shared by all rooms; Supports cross-world. If not set, default returns to each room's waiting hall.

2. Create a room

Stand in the map world and execute:

/bwa create map1

Prompt "Room map1 created" indicates success. All commands after the room name must be used; it is recommended to use brief English.

3. Set up a waiting lobby

Go to the spawn position in the waiting hall and perform:

/bwa setlobby map1

After player /bw joins map1, they will be teleported here and wait for the game to start.

4. Set up viewing points

Walk to a spot with a good view above the map and execute:

/bwa setspectator map1

After players die and are eliminated, as well as bystanders who enter the room midway, they will appear here.

5. Add a team

Each team must perform once (at least 2 teams must start):

/bwa addteam map1 red

/bwa addteam map1 blue

/bwa addteam map1 green

/bwa addteam map1 yellow

Available team IDs and color mapping table:

Team ID

Display

Team ID

Display

red

Red Team

aqua

Blue team

blue

Blue team

white

White team

green

Green team

pink

Pink team

yellow

Yellow Team

gray

Gray Team

Other names can also be created, but they will be treated as default red. It's recommended to use the IDs listed in the table.

6. Set each team’s spawn point

Go to the spawn location of a team’s base and execute (example for the Red Team):

/bwa setspawn map1 red

Set this for each team, replacing red with the corresponding team ID.

7. Set each team’s bed

First, place the bed in the base, then aim at the bed (within 6 blocks) and execute:

/bwa setbed map1 red

A message “Bed set (NORTH)” means success. The bed’s direction will be detected automatically, and you can aim at either block of the bed to set it.

A message “Please look at the bed” = your crosshair is not on the bed block, or the distance is more than 6 blocks. Move closer and aim again.

8. Add resource points

Stand at the resource point location (recommended: one block above the resource block) and execute:

/bwa addgen map1 iron

There are 4 built-in resource types: (can be modified in the config file)

Type ID

Output

Default Interval

Suggested Use

iron

Iron Ingot (Level 1 XP)

3 seconds

1-2 per team base

gold

Gold Ingot (Level 3 XP)

8 seconds

1 per team base

diamond

Diamond

30 seconds

Per secondary island / midlane

emerald

Emerald (Level 6 XP)

20 seconds

Center island

Typical Layout Example:

/bwa addgen map1 iron ← Red team base

/bwa addgen map1 gold ← Red team base

… (repeat for each team base)

/bwa addgen map1 diamond ← 1 per each of the four secondary islands

/bwa addgen map1 emerald ← 2 on the center island

Resource Point Management:

/bwa listgen map1 ← View all resource points and coordinates

/bwa delgen map1 ← Delete the nearest resource point within 5 blocks

To add a new resource type (e.g., Ancient Debris): edit plugins/InfiniteBedWars/generators.yml, then /bwa reload, and use /bwa addgen map1 <new type> to place it.

9. Placing Shop / Team Upgrade NPCs

Go to the spot in the base where you want the NPC to stand and execute:

/bwa setnpc map1 shop ← Item Shop NPC

/bwa setnpc map1 upgrade ← Team Upgrade NPC

Usually, each team’s base has one pair of (shop & upgrade), and the position can be customized.

NPC Management:

/bwa delnpc map1 ← Delete the nearest NPC within 5 blocks of you

/bwa clearnpc map1 ← Clear all NPCs in this room

10. Set Starting Number of Players

/bwa setmin map1 8

Countdown starts when there are 8 players (countdown seconds are in config.yml under game.countdown, default 10 seconds). If there aren’t enough players, the countdown is automatically canceled.

The maximum number of players per room defaults to 16, written in plugins/InfiniteBedWars/arenas.yml under that room’s max-players field. After changing it, run /bwa reload. Maximum players per team = max-players ÷ number of teams, e.g., 16 players and 4 teams = 4 players per team.

11. Save / Reload

/bwa save ← Save all room data to arenas.yml (normally saves automatically each step, can be used as a fallback)

/bwa reload ← Reload configuration (only needed if yml is changed)

3. Complete Reproducible Example (4-Team Map)

/bwa sethome

/bwa create map1

/bwa setlobby map1

/bwa setspectator map1

/bwa addteam map1 red

/bwa addteam map1 blue

/bwa addteam map1 green

/bwa addteam map1 yellow

/bwa setspawn map1 red

/bwa setbed map1 red

/bwa setspawn map1 blue

/bwa setbed map1 blue

/bwa setspawn map1 green

/bwa setbed map1 green

/bwa setspawn map1 yellow

/bwa setbed map1 yellow

/bwa addgen map1 iron

/bwa addgen map1 gold

/bwa addgen map1 diamond

/bwa addgen map1 emerald

/bwa setnpc map1 shop

/bwa setnpc map1 upgrade

/bwa setmin map1 8

/bwa save

Note: For setspawn / setbed / addgen / setnpc, you need to move to the corresponding location before executing. When copying the above commands consecutively, please follow them one by one. Repeat for each team’s base resource points and NPCs.

4. Acceptance Checklist

| Check Item | Command / Action | Pass Criteria |

|------------|----------------|---------------|

| Room Joinable | /bw join map1 | Teleported to waiting lobby, inventory contains 'Team Selection / Leave Game' item |

| Team Pre-selection | Right-click compass to select team | Prompt indicates selection success |

| Game Start | Wait until setmin number reached for countdown | Automatically divide teams and teleport to each team's spawn point |

| Beds | Look at enemy beds | Can be broken and broadcasted, own bed cannot be broken |

| Resource Points | Stand next to resource points | Iron/Gold/Diamond/Emerald drop normally |

| NPCs | Right-click shop/upgrade NPC | Shop and team upgrade interface open normally |

| Exit | /bw leave | Return to sethome location, inventory restored |

5. Common Questions

Q: It says 'No such team, addteam first'? You must add the team before using setspawn / setbed, and the team ID must match exactly (lowercase).

Q: The room won't start? Check if there are at least 2 teams and if the online player count meets the setmin value.

Q: Breaking beds doesn't work? Beds can only be broken if the status is RUNNING; breaking/placing blocks in the waiting lobby will be canceled by the plugin, which is normal protection.

Q: Want to redo a map? Use /bwa delete map1 to delete the room, then follow the steps in this guide to recreate it.

Q: What player commands are there? /bw opens the room list GUI (for quick joining); /bw join <room> to join; /bw leave to leave; /yq <message> to recruit on the server in the waiting lobby (other players can click to join the room).

Was this page helpful?