Minecraft(我的世界)中文论坛

标题: 【CBL|SPG】[1.14.4] 命令返回值列表

作者: SPGoding    时间: 2018-7-22 22:03
标题: 【CBL|SPG】[1.14.4] 命令返回值列表
本帖最后由 SPGoding 于 2019-8-20 17:50 编辑

http://www.mcbbs.net/thread-808124-1-1.html

【CBL|SPG】[1.14.4] 命令返回值列表

由于是手动整理加推测,难免有理解错误 / 遗漏,请务必指出,感谢!

使用 Ctrl + F 可以快速找到你需要的命令。




Minecraft:Java 版 命令返回值列表。

正文

命令返回值,直观来看是命令在 execute store result 命令中可被存储的值。
该值为 Int32 类型,取值范围从 -2,147,483,6482,147,483,647,因此有部分命令的返回值会发生溢出,本文会对有可能溢出的命令进行标记。


在 Minecraft 中,部分命令的返回值是反直觉的。因此本人使用 /execute store result score @s result run 在 Minecraft 19w11b 下对所有命令进行了测试,整理出本文。

advancement

bossbar

clear

clone

data

datapack

debug

defaultgamemode

difficulty

effect

enchant

execute

experience

fill

forceload

function

gamemode

gamerule

give

help

kick

kill

list

loot

locate

me

msg

particle

playsound

publish

recipe

reload

replaceitem

say

schedule

scoreboard

seed

setblock

setworldspawn

spawnpoint

spreadplayers

stopsound

summon

tag

team

teleport

tell

tellraw

time

title

tp

trigger

w

weather

worldborder

xp



[groupid=546]Command Block Logic[/groupid]
作者: 苏沫兮之D    时间: 2018-7-23 15:10
感谢楼主大大的分享赞一个
作者: 路文豪    时间: 2018-7-24 14:49
mcbbs有你更精彩~~~
作者: chyx    时间: 2018-8-9 22:49
https://bugs.mojang.com/browse/MC-122216
作者: chyx    时间: 2018-8-9 23:00
这个bug是我提交的
作者: sky~飞鱼    时间: 2018-9-1 10:49
本帖最后由 sky~飞鱼 于 2018-9-1 10:50 编辑

这么多,,,大大辛苦了,还是很有用的,起码我目前这样正在学习指令的还不能完全看懂
作者: 池鱼852    时间: 2018-9-1 20:37
抢沙发默默观看
作者: 池鱼852    时间: 2018-9-1 20:37
抢沙发默默观看
作者: 池鱼852    时间: 2018-9-1 20:38
抢沙发默默观看
作者: 池鱼852    时间: 2018-9-1 20:38
抢沙发默默观看
作者: 池鱼852    时间: 2018-9-1 20:39
抢沙发默默观看
作者: zoulejun    时间: 2018-12-4 10:14
继续加油哦啦啦啦
作者: 1289296032    时间: 2018-12-5 12:51
实用实用 感谢
作者: (=°ω°)丿    时间: 2019-7-26 15:18
本帖最后由 Teenager_Yang 于 2019-7-26 15:26 编辑

execute store result score @s result run ...
你这个只有 run 没有 if,差评!
比如……什么的……
  1. execute store result score @s result if entity @e[type=xxx]
  2. execute store result score @s result if blocks ...
复制代码

作者: SPGoding    时间: 2019-7-26 15:27
Teenager_Yang 发表于 2019-7-26 15:18
execute store result score @s result run ...
你这个只有 run 没有 if,差评!
比如…… ...

以前这种写法不会产生任何分数变化,如今已修复。但为保持全文格式统一,不做更改。
作者: a1647321154    时间: 2020-2-10 19:00
        神乎其技!6的飞起!
作者: 13626464852    时间: 2020-7-15 08:47
MCBBS有你更精彩~
作者: shu_fu_    时间: 2020-7-15 13:41
48978951324856463456
作者: kunkun520    时间: 2020-7-29 20:35
mcbbs有你更精彩!!