Hi, I was using the following code to execute event with banned itemsjson "default": { "transitions": [ { "detected": " t.iterator = 0; loop(9, {query.is_item_name_any('slot.hotbar', t.iterator, 'minecraft:ender_pearl') ? {return true;}; t.iterator = t.iterator + 1;}); return false;" } ], "on_exit": [ "/scriptevent awp:banneditems 0" ] }the code basically iterate thru the hotbar for the item specified and return true when it is found to trigger the event on exit.
but unfortunately it stopped working after the update.