Continue reading for a complete description of each function, with a link to the corresponding Gamepedia entry for each command. That way, you can immediately follow up and learn everything you need to use your
/fillFills all or parts of a region with a specific block.Game DirectorsYes /fogAdd or remove fog settings file.Game DirectorsYes /functionRuns commands found in the corresponding function file.Game DirectorsYes /gamemodeSets a player's game mode. See more in thePopular Commands documentation.Ga...
加入了/reload命令。 1.12-pre1 加入了游戏规则gameLoopFunction。 加入了/function命令。 1.1317w45a 命令中不同的部分现在由不同颜色标示,而即使不运行命令,错误部分也将会显示为红色。 在大部分情况下命令将不再允许出现大写字母,并运行得比以前更加快速而效率。 在目标选择器中加入了了nbt参数。 修改了部分命...
import { world, ItemStack, EntityEquippableComponent, EquipmentSlot, EntityComponentTypes, DimensionLocation } from "@minecraft/server"; import { MinecraftItemTypes } from "@minecraft/vanilla-data"; function givePlayerEquipment( targetLocation: DimensionLocation ) { const players = world.getAllPlayers()...
getAllPlayers(): Player[]Returns an array of all active players within the world.Returns Player[]Notes:This function can throw errors.getDaygetDay(): numberReturns the current day.Returns number - The current day, determined by the world time divided by the number of ticks per day. New ...
Commands ran through animations now will run in the order defined in animation files on all platforms, including Realms 现在基于动画执行的命令会按照各平台上动画文件定义的顺序来执行,包括Realms Animations and events defined in Behavior Packs can now run commands that require cheats without the player ...
import { world, ItemStack, EntityInventoryComponent, EntityComponentTypes, ItemComponentTypes, ItemDurabilityComponent, DimensionLocation } from "@minecraft/server"; import { MinecraftItemTypes } from "@minecraft/vanilla-data"; function giveHurtDiamondSword( targetLocation: DimensionLocation ) { const hurt...
之所以想写这一篇一条龙教程,实在是因为国人开服,功利心很重,不需要过程,只需要结果。有的人开服,喜欢网上抓一个整合包就开起来,自己不会改,但是只要能得到「结果」就好了。在这个大环境下,国内服务器圈弥漫着一股粗制滥造和模板化的问题。而真正想从零开始的小白服主,又很难找到一个精准,完全的开服教程,...
Added function getAll(): EffectType[] - Returns all of the effects 加入了 getAll(): EffectType[] 函数- 返回所有效果 Updated class Effect 更新了 Effect 类 Updated duration property. Is the duration of the effect in ticks 更新了 duration 属性,是该游戏刻中效果的持续时间 Added property typeId...
Added general-purpose storage for data commands. 为data 命令增加了通用的 storage 子命令。 Extended advancement and loot table predicates. 扩充了进度和战利品表的判据。 Extended schedule command to allow scheduling function multiple times 增强了 schedule 命令,使其可以多次计划执行函数 ...