首先是time set,设置游戏时间,数值后方加单位,省略时默认为t, t为游戏刻,每天的时间为24000游戏刻,0t=24000t=日出 s为秒,每20个游戏刻等于1秒, d为天,每天为1200秒,为20分钟。 其次是time add,在当前基础上增加时间,单位与上述相同。 最后是time query,查询当前时间,一共有三个选项: daytime:查询当前游戏...
time [set|get|day|night [minute|hour|day [TIME]]] - 设置指定时间得到物品 timeschedule > - 设定一段时间段,让世界永远保持在这段时间之间- - 《凉宫春日漫无止境的八月》 unbind - 解除一个命令 useportal - 传送到地狱 waterdamage - 开关潜水伤害 world - 世界情报 world load - 加载指定的文件 ...
`/scoreboard objectives setdisplay sidebar swb` 在tab列表显示玩家生命数: `/scoreboard objectives add sms health "玩家血量"` `/scoreboard objectives setdisplay list sms` 此外还能显示氧气值、饥饿值、击杀数、破坏方块... 需要命令方块 `/give @p minecraft:command_block` 获取命令方块 `/gamerule comman...
)、/kill、/list、/op、/say、/setblock、/setfixedinvslot、/setworldspawn、/spawnpoint、/summon、/tell(及其别名/msg和/w)、/testforblock、/testforblocks、/time、/toggledownfall、/tp(及其别名/teleport)、/weather、/wsserver和/xp命令。 大部分命令的功能与Java版1.10相同。差别在于:不支持数据标签、/...
5. /summon minecraft:cow 这个指令可以召唤一只牛,让你可以和它亲密互动! 6. /kill @e[type=cow] 这个指令可以让你杀死所有的牛,让你可以获得更多的食物! 7. /weather clear 这个指令可以让你改变天气,让你可以享受晴朗的天气! 8. /time set day ...
8. Setting the time of day in your world /time - root command for managing the time of day As long as you understand the basics of time and day/night cycles inMinecraft, the time command is a simple way to set the time of day in your game. Along with the weather management command...
setEquipment(EquipmentSlot.Head, new ItemStack(MinecraftItemTypes.GoldenHelmet)); equipmentCompPlayer.setEquipment(EquipmentSlot.Chest, new ItemStack(MinecraftItemTypes.IronChestplate)); equipmentCompPlayer.setEquipment(EquipmentSlot.Legs, new ItemStack(MinecraftItemTypes.DiamondLeggings)); equipmentCompPlayer.set...
However, since there are so many, they have been divided up into several pages, where you are shown only one page at a time. Supplying a page number will change which page of commands to show.Whenever you want to know the usage and all of the syntaxes of a command, you can use /...
setAbsoluteTime(absoluteTime: number): void Sets the world time. Parameters absoluteTime:number The world time, in ticks. Notes: This function can't be called in read-only mode. setDefaultSpawnLocation setDefaultSpawnLocation(spawnLocation: Vector3): void ...
import{ system, DimensionLocation }from"@minecraft/server";import{ MinecraftEntityTypes }from"@minecraft/vanilla-data";functionteleport(targetLocation: DimensionLocation){constcow = targetLocation.dimension.spawnEntity(MinecraftEntityTypes.Cow, targetLocation); system.runTimeout(()=>{ cow.teleport( { x...