Item Detector v1.0.0

Item Detector is a Minecraft Bedrock add-on that checks nearby container contents and turns on a redstone output when saved item rules match.

How to use
1. Import Item Detector v1.0.0.mcaddon.
2. Activate both the behavior pack and resource pack in your world.
3. Enable Beta APIs if your world settings show that option.
4. Craft or give yourself the detector:
   /give @s adit:item_detector
5. Place the detector directly beside a chest, barrel, hopper, or other inventory block.
6. Leave the block above the detector empty. The detector uses that space for redstone output.
7. Use/right-click the detector and edit the detection rules.

Rule format
Use item_id|count entries separated by semicolons.

Examples:
minecraft:diamond|64
minecraft:diamond|64;minecraft:diamond|64
minecraft:redstone|32;minecraft:iron_ingot|16

Each rule entry can request 1 to 64 items. Duplicate item entries add together, so two diamond entries of 64 require 128 diamonds total.

Redstone output
When the rules match, the detector places a redstone block above itself.
When the rules stop matching, it removes the redstone block it created.

Known limitation
Minecraft Bedrock custom blocks cannot safely use native redstone output on all versions yet, so this add-on uses a redstone block output method for compatibility.
