Spyglass icon indicating copy to clipboard operation
Spyglass copied to clipboard

ActiveEffects data 顯示錯誤

Open snowlinouo opened this issue 1 year ago • 0 comments

有使用的 Minecraft 版本:1.19.2 和 1.19.4

Data 中的 ActiveEffects 會出現下圖中的錯誤 image

使用修正後會在 14 後面新增「b」,但實際在遊戲中使用該指令卻不需要 b,新增 b 會錯誤 下圖為自動修正後: image


實現步驟

先給自己藥水效果:

/effect give @s minecraft:invisibility 1000000 0 true

測試成功:

/execute if data entity @s ActiveEffects[{Id:14}]

image

測試失敗:

/execute if data entity @s ActiveEffects[{Id:14b}]

image

snowlinouo avatar May 30 '23 19:05 snowlinouo