在1.12可以检测地面上箭上的药水属性,1.13怎么检测呢,试了很久也检测不到
/execute if entity @e[type=minecraft:arrow,nbt={inGround:1b,Potion:"minecraft:strong_healing"}]
具体红色的地方写什么,你可以手动射一只药水箭到地上,站在它的旁边,输入 /data get entity @e[sort=nearest,limit=1,type=minecraft:arrow] Potion,得到的那个字符串就是这个种类的药水箭的 Potion 了。
具体红色的地方写什么,你可以手动射一只药水箭到地上,站在它的旁边,输入 /data get entity @e[sort=nearest,limit=1,type=minecraft:arrow] Potion,得到的那个字符串就是这个种类的药水箭的 Potion 了。
SPGoding 发表于 2019-4-15 05:06
/execute if entity @e[type=minecraft:arrow,nbt={inGround:1b,Potion:"minecraft:strong_healing"}]
具 ...
虽然无法直接检测对应属性,稍微改一下还是把箭单独分类,还是区分开了