Container Type

Description

Checks the vanilla InventoryType (e.g. CHEST, DISPENSER, HOPPER, BARREL) of the container involved in the triggering event. It is designed for the inventory item triggers (~onInventoryPlace, ~onInventoryTake, ~onInventoryMove, ~onDragDrop), which expose the container the item is being moved through.

Accepts one or more types, separated by commas or pipes. The condition passes if the container matches any of them.

Attributes

Attribute Aliases Description Default
type t One or more InventoryTypes to match, comma or pipe separated the inline argument

Examples

  Conditions:
  - containerType{type=CHEST,DISPENSER} true
  Skills:
  - message{m="You can't store that here"} @self ~onInventoryPlace ?containerType{type=CHEST}

Aliases

  • inventoryType
  • container
Updated Aug 19, 2026