-
Notifications
You must be signed in to change notification settings - Fork 2
GameLobbyManager API command
IGameLobbyManager
/battleroyale api gameLobbyManager [...]
IGameLobbyReadApi
/battleroyale api gameLobbyManager sendLobbyTeleportMessage [player] [isWinner]
- player:实体选择器
- 若实体选择器不为玩家,
返回值为 0 - isWinner:是否为获胜玩家消息类型
-
返回值:1
/battleroyale api gameLobbyManager isLobbyCreated
-
返回值:当前是否已创建游戏大厅
/battleroyale api gameLobbyManager lobbyMuteki
-
返回值:游戏大厅是否启用大厅无敌
/battleroyale api gameLobbyManager lobbyHeal
-
返回值:游戏大厅是否启用大厅治疗
_/battleroyale api gameLobbyManager _
-
返回值:传送至游戏大厅是否更改游戏模式
/battleroyale api gameLobbyManager teleportDropInventory
-
返回值:传送至大厅是否吐出背包物品
/battleroyale api gameLobbyManager teleportClearInventory
-
返回值:传送至大厅是否清空背包
/battleroyale api gameLobbyManager isInLobbyRange [xyz]
在指令 /execute in 维度测试:
- xyz:指定的测试位置
-
返回值:测试位置是否位于大厅范围内
/battleroyale api gameLobbyManager canMuteki [player]
- player:实体选择器,指定测试生物
- 若实体选择器不为生物,
返回值为 0 -
返回值:游戏大厅无敌是否对测试生物生效
ILobbyFuncApi
/battleroyale api gameLobbyManager healPlayer [player]
- player:实体选择器
- 若实体选择器不为生物,
返回值为 0 -
返回值:1
/battleroyale api gameLobbyManager teleportToLobby [player]
- player:实体选择器
- 若实体选择器不为生物,
返回值为 0 -
返回值:是否成功传送
/battleroyale api gameLobbyManager setLobby [pos]
/battleroyale api gameLobbyManager setLobby [pos] [xyz]
/battleroyale api gameLobbyManager setLobby [pos] [xyz] [lobbyMuteki] [lobbyHeal] [lobbyChangeGamemode] [teleportDropInventory] [teleportClearInventory]
手动设置大厅:
- pos:大厅坐标
- xyz:大厅的规模
- lobbyMuteki:是否启用大厅无敌
- lobbyHeal:是否启用大厅治疗
- lobbyChangeGamemode:传送至游戏大厅是否更改游戏模式
- teleportDropInventory:传送至大厅是否吐出背包物品
- teleportClearInventory传送至大厅是否清空背包
IGameLobbyManager
/battleroyale api IGameLobbyManager [...]
IGameLobbyReadApi
/battleroyale api gameLobbyManager sendLobbyTeleportMessage [player] [isWinner]
- player: entity selector
- If the entity selector is not a player, the
return valueis 0. - isWinner: whether it is a winner message type
-
return value: 1
/battleroyale api gameLobbyManager isLobbyCreated
-
return value: whether the game lobby is currently created
/battleroyale api gameLobbyManager lobbyMuteki
-
return value: whether the lobby has lobbyMuteki enabled
/battleroyale api gameLobbyManager lobbyHeal
-
return value: whether the lobby has lobbyHeal enabled
_/battleroyale api gameLobbyManager _
-
return value: whether to change the gamemode when teleporting to the lobby
/battleroyale api gameLobbyManager teleportDropInventory
-
return value: whether to drop the player's inventory when teleporting to the lobby
/battleroyale api gameLobbyManager teleportClearInventory
-
return value: whether to clear player's inventory when teleporting to the lobby
/battleroyale api gameLobbyManager isInLobbyRange [xyz]
Test in the /execute in dimension:
- xyz: specified test position
-
return value: whether the test position is within the lobby range
/battleroyale api gameLobbyManager canMuteki [player]
- player: entity selector, specifies the test living entity
- If the entity selector is not a living entity, the
return valueis 0. -
return value: whether game lobby invulnerability is effective for the test living entity
ILobbyFuncApi
/battleroyale api gameLobbyManager healPlayer [player]
- player: entity selector
- If the entity selector is not a living entity, the
return valueis 0. -
return value: 1
/battleroyale api gameLobbyManager teleportToLobby [player]
- player: entity selector
- If the entity selector is not a living entity, the
return valueis 0. -
return value: whether the teleport was successful
/battleroyale api gameLobbyManager setLobby [pos]
/battleroyale api gameLobbyManager setLobby [pos] [xyz]
/battleroyale api gameLobbyManager setLobby [pos] [xyz] [lobbyMuteki] [lobbyHeal] [lobbyChangeGamemode] [teleportDropInventory] [teleportClearInventory]
Manually sets the lobby:
- pos: lobby coordinates
- xyz: the size of the lobby
- lobbyMuteki: whether to enable lobbyMuteki
- lobbyHeal: whether to enable lobbyHeal
- lobbyChangeGamemode: whether to change the gamemode when teleporting to the lobby
- teleportDropInventory: whether to drop the player's inventory when teleporting to the lobby
- teleportClearInventory: whether to clear player's inventory when teleporting to the lobby
🌐 Language / 语言
-
- Configuration Introduction
- Command Introcuction
- Game type introduction
- About
- Mod development tutorial