import { world, DimensionLocation } from "@minecraft/server"; function customCommand(targetLocation: DimensionLocation) { const chatCallback = world.beforeEvents.chatSend.subscribe((eventData) => { if (eventData.message.includes("cancel")) { // Cancel event if the message contains "cancel" even...
import { world, DimensionLocation } from "@minecraft/server"; function customCommand(targetLocation: DimensionLocation) { const chatCallback = world.beforeEvents.chatSend.subscribe((eventData) => { if (eventData.message.includes("cancel")) { // Cancel event if the message contains "cancel" even...
Improved the performance of the locate biome command to mitigate stalls on the server while ...
New property on Player : onScreenDisplay : ScreenDisplay - exposes a new interface to trigger on screen content. Player的新属性:onScreenDisplay : ScreenDisplay——添加了一个新的接口来触发屏幕上的内容。 ScreenDisplay Type ScreenDisplay 类型 setTitle(title : String, options? : TitleDisplayOptions)...
The Fabric Installer has full support from installing the client and the server from the command line. This could be used to automate the installation. The installer has a number of commands that can be used for a headless install. 可以直接在命令行操作选择安装服务器的版本。
If a Sign is interacted with a Glow Ink Sac, the text will then get a glowing effect Powder ...
/stopStops the server. This command is for use on a dedicated server only.OwnerYes /stopsoundStops a sound.Game DirectorsYes /structureSaves or loads a structure in the world. See examples of this command in use in theStructure Blocks documentation.Game DirectorsYes ...
This can be helpful if you want an overview of the command.See more in the Popular Commands documentation. Any No /hud Configures whether elements of the on-screen display (alternately known as the 'heads up display', or 'HUD') are visible on the screen. Game Directors Yes /input...
/execute <subcommand: Option_If_Unless> block <position: x y z> <block: Block> <data: int> [chainedCommand: ExecuteChainedOption_0] /fill <from: x y z> <to: x y z> <tileName: Block> <tileData: int> replace [replaceTileName: Block] [replaceDataValue: int] ...
The number of commands run through functions can be limited with the new gamerule 'functioncommandlimit' (default 10k) to limit performance issues 通过函数运行的命令数量会受到游戏规则的限制(默认为一万行),以限制性能问题Functions can now be run every tick, creating an update loop ...