比如我们召唤了一支箭:/summon arrow ~ ~ ~
然后输入指令:execute as @e[type=minecraft:arrow,distance=..10] at @s store result entity @s Owner int 1 run data get entity @a[limit=1,sort=nearest] UUID
然后再去get箭的Owner数据,然后是无效的,自己射出去的箭却存在Owner标签,请问怎么解决
具体版本?
UUID不分成4个int的时候
怎么说也是两个long组成
拆开个数组的时候
也不应该是store int
UUID不分成4个int的时候
怎么说也是两个long组成
拆开个数组的时候
也不应该是store int
本帖最后由 阴阳师元素祭祀 于 2021-2-25 15:27 编辑
试试
/data modify entity @e[type=minecraft:arrow,limit=1,sort=nearest] Owner set from entity @s UUID
或者说
/execute as @e[type=minecraft:arrow,distance=..10] at @s run data modify entity @s Owner set from entity @p UUID
【Akashi的指挥官】play.rust-lang.org 15:26:37
自从mojang开了sort filter
【Akashi的指挥官】play.rust-lang.org 15:26:40
所有人用起来@a[limit=1,sort=nearest]
【Akashi的指挥官】play.rust-lang.org 15:26:44
而放弃了@p
R.I.P. @p
试试
/data modify entity @e[type=minecraft:arrow,limit=1,sort=nearest] Owner set from entity @s UUID
或者说
/execute as @e[type=minecraft:arrow,distance=..10] at @s run data modify entity @s Owner set from entity @p UUID
【Akashi的指挥官】play.rust-lang.org 15:26:37
自从mojang开了sort filter
【Akashi的指挥官】play.rust-lang.org 15:26:40
所有人用起来@a[limit=1,sort=nearest]
【Akashi的指挥官】play.rust-lang.org 15:26:44
而放弃了@p
R.I.P. @p
【教程】[1.15] 常见的数据操作方法:入门教程
https://www.mcbbs.net/thread-993805-1-1.html
【教程】[1.15] execute 命令入门教程
https://www.mcbbs.net/thread-989501-1-1.html
https://www.mcbbs.net/thread-993805-1-1.html
【教程】[1.15] execute 命令入门教程
https://www.mcbbs.net/thread-989501-1-1.html