Shops_World: type: world debug: false events: on player clicks in inventory: else if { - determine cancelled passively - if > { - queue clear } - if == i@redstone { - inventory open d:in@ - queue clear } - if != i@air { - define payment |].get[2]> - if ].quantity[]> { # - take # - if ]> >= { - foreach { - if ]> && == null { # - if ] THIS IS WHERE I NEED TO CHECK IF ITEM IS EQUIPPED - take qty: from: - give money qty: - if > 1 { - narrate "You sold for <&a>$<&f>!" targets: } else { - narrate "You sold for <&a>$<&f>!" targets: } - narrate "Balance: <&a>$" - queue clear } } - narrate "<&c>You don't have that item to sell!" - queue clear } else { - narrate "<&c>You don't have that item to sell!" - queue clear } } }