/setblock将方块替换为其它方块。 /setworldspawn 设置世界出生点。 /spawnpoint为玩家设置重生点。 /summon生成实体。 /setmaxplayers 设置可加入游戏的玩家数量上限。 /spreadplayers 把实体随机传送到区域内地表的某个位置。 /tp传送实体。 /tell 向另一玩家发送私信。 /testfor统计符合给定条件的实体。 /testforbl...
0.16.0build 1 加入了/clearfixedinv、/clone、/deop、/execute、/fill、/gamemode、/give、/help(及其别名/?)、/kill、/list、/op、/say、/setblock、/setfixedinvslot、/setworldspawn、/spawnpoint、/summon、/tell(及其别名/msg和/w)、/testforblock、/testforblocks、/time、/toggledownfall、/tp(及其别...
携带版中的命令(Command)是通过输入特定文本字符串而激活的高级功能。-wiki Part.2 /clear 从玩家物品栏中删除物品。 /clone 将特定区域的方块复制到另一处。 /difficulty设置难度等级。 /effect 添加或移除状态效果。 /enchant 附魔玩家的物品。 /execute 执行另一命令。 /fill将某个区域填满特定方块。 /gamemode...
customCommand.ts TypeScript複製 import{ world, DimensionLocation }from"@minecraft/server";functioncustomCommand(targetLocation: DimensionLocation){constchatCallback = world.beforeEvents.chatSend.subscribe((eventData) =>{if(eventData.message.includes("cancel")) {// Cancel event if the message contains ...
Players can switch to and from Spectator using the Settings Menu and the '/gamemode spectator' command, if cheats are enabled. Player inventory, health, held items etc are unchanged when switching into spectator mode and then out again
用法: /< command > [玩家] 别名: eafk,away,eaway back 介绍: 回到你上次传送(tp/spawn/warp)的地方。 用法: /< command > 别名: eback,return,ereturn balance 介绍: 查看玩家拥有的现金,不输入默认为自己。 用法: /< command > [玩家]
setGameMode(gameMode?: GameMode): void Sets a gamemode override for this player. Parameters gameMode?:GameMode=null Active gamemode. Notes: This function can't be called in read-only mode. This function can throw errors. setSpawnPoint
while the "/gamemode" command will change the mode of play from survival to creative. The "/summon" command is especially useful as it allows you to bring mobs such as zombies or creepers into the world. The "/time set" command can also be used to control the time in the game, makin...
/gamemode(设置游戏模式) /gamerule ture/false(开启或关闭某种游戏规则) /gamerule pvp(开启或关闭玩家之间的伤害) /gamerule doMobLoot(开启或关闭生物掉落物品) /gamerule doMobSpawning(开启或关闭生物自然生成) /gamerule doWeatherCycle(开启或关闭天气变化) /gamerule keepInventory(开启或关闭死亡不掉落,你...
`/setworldspawn` 设置世界出生点 `/locate structure #minecraft:village` 定位村庄 `/locate structure #minecraft:eye_of_ender_located` 定位末地传送门 `/defaultgamemode <游戏模式>` 设置默认游戏模式 ``/clear` `@a` `minecraft:tnt`` 清除所有玩家背包里的tnt ...