欢迎光临散文网 会员登陆 & 注册

我的世界1.19新版本基岩版指令execute格式介绍

2022-07-05 23: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




这是变式,内容可改。




小皮果吖●编




仅供参考,以实际为准。

我的世界1.19新版本基岩版指令execute格式介绍的评论 (共 条)

分享到微博请遵守国家法律