#How can I fix the MoLang code
1 messages · Page 1 of 1 (latest)
The better way is with this though:
q.is_item_name_any('slot.weapon.mainhand', 0, 'minecraft:apple', 'minecraft:enchanted_golden_apple')
1 messages · Page 1 of 1 (latest)
v.name = q.get_equipped_item_name(0); return v.name == 'apple' || v.name == 'enchanted_apple';
or
q.get_equipped_item_name(0) == 'apple' || q.get_equipped_item_name(1) == 'enchanted_apple'
The better way is with this though:
q.is_item_name_any('slot.weapon.mainhand', 0, 'minecraft:apple', 'minecraft:enchanted_golden_apple')