sell_container

Sells the sellable contents of the container at the trigger location, like a sell wand.

Categories: economy

Inherited argument blocks

  • subsection filters — Which items to sell: shops, whitelist, blacklist, and extra multipliers for matching items.

  • subsection bypass — Shop checks to skip: dynamic-pricing, player-limits and global-limits. A bypassed check is ignored, and the sale doesn't count towards it.

Optional arguments

Key(s)DescriptionTypeDefault
wandThe ID of a sell wand to copy the filters, multiplier, caps, containers, cooldown and period limit from.STRING
multiplierThe sell price multiplier. Supports expressions.EXPRESSION1
containersThe container blocks this works on. shulker_box matches every colour.
Choices: any Material value
STRING_LIST[chest, trapped_chest, barrel]
max-itemsThe max items sold per use, or -1 for no limit. Supports expressions.EXPRESSION-1
max-valueThe max money earned per use, or -1 for no limit. Only counts eco:economy prices. Supports expressions.EXPRESSION-1

Trigger parameters required

  • PLAYER

  • LOCATION

Example

effects:
  - id: sell_container
    args:
      wand: golden # ← Optional
      multiplier: 1 + %level% * 0.1 # ← Optional
      containers: # ← Optional
        - "chest"
        - "barrel"
        - "shulker_box"
      max-items: 1728 # ← Optional
      max-value: 50000 # ← Optional

Behaviour

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue