Wiki 9Minecraft Wiki 9Minecraft
Dispenser Configurator Wiki › Guides › Choosing Between ITEM_USE and BLOCK_USE Usage Types

Choosing Between ITEM_USE and BLOCK_USE Usage Types

Understanding Usage Types

The mod uses data-driven usage types to determine how a dispenser handles an item when triggered by redstone. Two primary usage types supported are ITEM_USE and BLOCK_USE.

  • ITEM_USE: Intended for actions where the item itself is used directly into space or triggered as an item interaction.
  • BLOCK_USE: Intended for interactions directed at a specific block adjacent to the dispenser's front face.

Configuring and Testing the Behavior

1. Open your custom dispenser configuration file within your active data pack.

2. Locate the item or item tag you wish to customize.

3. Set the usage type to either ITEM_USE or BLOCK_USE depending on whether the action targets empty space/entities or an adjacent block.

4. Save your configuration file and enter /reload in your Minecraft chat.

5. In-game, place a dispenser facing your intended target area (place a target block directly in front for BLOCK_USE, or leave the front clear for ITEM_USE).

6. Insert the configured item into the dispenser and activate it with a redstone pulse to confirm the behavior functions properly.