execute if data <source> <path> 의 path 토큰은 공백을 허용하지 않음.
'judge {input:...}' → 'judge{input:...}' 로 붙여써야 compound predicate 가
정상 적용됨.
4 lines
241 B
MCFunction
4 lines
241 B
MCFunction
# judge.input 과 judge.answer 가 같으면 @s answer = 1
|
|
# 매크로 치환으로 answer 필드를 NBT predicate 의 리터럴로 박아넣음
|
|
$execute if data storage mq:tmp judge{input:"$(answer)"} run scoreboard players set @s answer 1
|