Spyglass icon indicating copy to clipboard operation
Spyglass copied to clipboard

Data key not recognized in if statement

Open pauloalbert opened this issue 1 year ago • 1 comments

This is a valid piece of code in minecraft, run by a marker. however, DHCP v3.4.13 for 1.19.4 alerts that "name" is an unknown key:

execute if data entity @s data{"name":"octorok"} run function zelda:entity/enemy/octorok/create_red
execute if data entity @s data{"name":"blue_octorok"} run function zelda:entity/enemy/octorok/create_blue
image

oddly, {"name":"octo"} doesn't raise flags, when the data part is omitted

pauloalbert avatar May 29 '23 15:05 pauloalbert