发布时间:2024-09-02作者:陈建全点击:
基础指令
/gamerule commandBlockOutput false - 禁用命令方块输出
/difficulty peaceful - 设置难度为和平模式
/gamemode c - 设置游戏模式为创造模式
/give @p diamond 64 - 给予玩家 64 个钻石
/kill @e[type=creeper] - 杀死所有苦力怕
传送指令
/tp @p 0 100 0 - 将玩家传送到海拔 100 米的高空
/tp @e[type=zombie] 10 50 20 - 将所有僵尸传送到坐标 (10, 50, 20)
/execute as @p at @s positioned ^ ^ ^10 teleport @e[type=creeper] ^ ^ ^ - 将所有苦力怕传送到玩家上方 10 格
方块指令
/setblock ~ ~ ~ diamond_block - 在玩家脚下放置一个钻石方块
/fill 1 1 1 10 10 10 air - 用空气填充一个 10x10x10 的空间
/replace - 用指定方块替换另一个方块
实体指令
/summon villager 0 100 0 - 在坐标 (0, 100, 0) 召唤一个村民
/kill @e[type=chicken] - 杀死所有鸡
/entitydata @e[type=wolf] {Sit:0b} - 让所有狼坐下
红石指令
/setblock ~ ~ ~ redstone_block - 放置一个红石方块
/setblock ~ ~ ~ command_block - 放置一个命令方块
/tickingarea add 0 0 0 10 10 10 - 创建一个红石脉冲区域
天气指令
/weather rain - 开始下雨
/weather clear - 停止下雨
/time set 1000 - 设置游戏时间为 1000 刻
其他指令
/effect @p strength 10 60 1 - 给予玩家 60 秒的强化效果
/particle flame 10 10 10 0.1 0.1 0.1 - 产生火焰粒子
/playsound record.stal 0.5 1 @p - 播放唱片的声音
`/give @p diamond_pickaxe 1 0 {Enchantments:[{id:"minecraft:fortune",lvl:10000}]}`
`/give @s minecraft:diamond_pickaxe 1 0 {Enchantments:[{id:"minecraft:looting",lvl:10000}]}`
/execute @e[type=minecraft:item,nbt={Item:{id:"minecraft:stick"}}] ~ ~ ~ data modify entity @s Invulnerable true
2023-08-31
2023-10-14
2023-08-05
2023-08-29
2023-09-25
2023-09-23
2023-09-23
2023-09-11
2023-09-23
2023-09-06