乐玩号   手机版
  首页 网游攻略 游戏资讯 游戏攻略 手游攻略 单机攻略  

我的世界指令代码大全命令方块(伤害9999的钻石剑指令手机版)

138次浏览     发布时间:2022-07-31 10:59:24    

我的世界迎来新版本更新,这次更新中包含了指令部分——execute。

更新前的execute格式为:

execute 生物选择器 ~~~ 子指令

更新后,execute格式不再单一,多样化起来了,格式大体为6种,我将其简单列出——

第一种:

execute as 生物选择器 at 子指令

第二种:

execute at 生物选择器 run 子指令

翻译:对生物选择器包括的玩家执行子指令

第三种:

execute positioned x y z run 子指令

翻译:对离坐标最近的玩家执行子指令

第四种:

execute positioned as 坐标/玩家ID/选择器 子指令

翻译:对指定目标执行子指令

最后俩种比较复杂,需要实践获知

第五种:

execute if block/blocks/entiy/score … 子指令

翻译:若条件满足if后面指令内容,则执行子指令

第六种:

execute unless block/blocks/entiy/score … 子指令

翻译:若条件不满足unless后面指令内容,则执行子指令

分支解析:

if/unless block 检测单个具体方块

if/unless blocks 检测俩个长方体区域内的方块匹配情况

if/unless entity 检测指定实体是否存在

if/unless scores 检测目标的分数

分支格式:

execute if/unless block x y z 方块ID 子指令

execute if/unless blocks 俩个对角方块坐标 俩个坐标中最小坐标 all/masked 子指令

(此格式中三个坐标参考clone中的坐标摆放)

execute if/unless entity 生物选择器 子指令

execute if/unless score 目标选择 计分板 matches 范围<range> 子指令

单词解析:

指令中带run仅执行一次,适合用于聊天栏输入。

if 如果……就……

unless 除非……否则

all 区域内的全部方块

masmed 除开空气

总结:

旧版 execute 实体选择器 ~~~ kill

新版 execute at 实体选择器 run kill

这是变式,内容可改。

小皮果吖●编

仅供参考,以实际为准。

相关文章


2023-11-30
2023-11-30
2023-11-30
2023-11-30
2023-11-30
最新文章
热门文章