Example :
prevent_map_dupe:
type: item_craft
conditions:
- "%item% == FILLED_MAP"
actions:
default:
- "cancel_event: true"
- "close_inventory: true"
It doesn't work because %item% returns AIR instead of FILLED_MAP while trying to duplicate a map using an empty map and an existing map in the crafting table.