I've got an on craft event that checks whether or not an item can be found in an array, however, the if statement will always output the false statement. When making a command with the exact same code, I get the expected results.
The command will output "Legal" if the item name can be found, but the on craft event will always output "Illegal"
Code:
command /check <text>:
trigger:
if {list::*} contains arg-1:
send "Legal"
else:
send "Illegal"
on craft:
send "Checking if %event-item% can be found in the array"
if {list::*} contains event-item:
send "Legal"
else:
send "Illegal"
The command will output "Legal" if the item name can be found, but the on craft event will always output "Illegal"