I'm guessing such a system could work like this:
- "Pellet" items can be spawned from bricks like normal items (wrench) or by the spawnItem event. There are several kinds. (example)
- Red Pellet: Holding down the trigger it is 'used' every second. Reusable.
- Green Pellet: Clicking once will use it one time. It can be clicked repeatedly. Reusable.
- Blue Pellet: When used once, it disappears from your inventory. You can hold more than one at a time.
- Yellow Pellet: When used once, it disappears from your inventory. You can only hold one at a time.
- Picking up the item 'links' it with its spawn brick. This carries over between throwing the item away and picking up other pellets.
- When you use the item, the onPelletUse event is triggered on the spawn brick. Any action can be done with the spawn brick, player, client, minigame or other named bricks via events.