movblock.mov

Consumable treatments

Bind item use or consumption to ordered treatment actions.

since NTM 1.0.1Applies to NTM 1.0.1, 1.0.2, 1.0.3, 1.0.4.Shown because All revisions is selected.

File: data/<namespace>/hbm/consumable_treatment/<path>.json.

The registry loads with the world and syncs to clients. Actions execute on the server for players in list order. Each item belongs to one rule; overlapping selectors fail world startup. Replace the original resource ID to change a shipped treatment. Reopen singleplayer or restart the server after editing rules or their tags.

Fields

FieldMeaning and default
targetsItem ID, #namespace:tag, or item-ID list.
triggerconsume runs after the item's normal consumption finishes. use replaces the item's own use action: it runs immediately, consumes one held item and returns remainder.
block_when_potion_sick​OptionalBlocks starting use while potion sickness is active; default false.
remainder​OptionalItem ID returned by a use treatment; omission returns no item. Rejected with consume, which uses the item's vanilla remainder component.
sound​OptionalSound-event ID or vanilla sound-event object played before actions.
actionsOrdered treatment actions; each entry selects its format with type.

consume requires an item that already supports consumption through its item behavior or components. A treatment assignment supplies the additional actions.

Action formats

  • Counter: adjust radiation, digamma or lung-disease counters.
  • Effect: apply or extend a mob effect.
  • Remove effects: remove selected mob effects.
  • Damage: apply damage with optional repetition and chance.
  • Potion sickness: add potion sickness.

Example:

File: data/example/hbm/consumable_treatment/apple.json.

{
  "targets": "minecraft:apple",
  "trigger": "consume",
  "block_when_potion_sick": true,
  "actions": [
    {"type": "potion_sickness", "seconds": 5},
    {"type": "counter", "counter": "radiation", "operation": "add", "amount": -10.0}
  ]
}

© 2026 movblock. Original site text is licensed under CC BY-SA 4.0 unless otherwise noted. Built with Fumadocs.

On this page