Consumable

Classic methods

Food

info:
  namespace: my_items
items:
  my_food:
    enabled: true
    display_name: My Food
    resource:
      material: COOKED_PORKCHOP
      generate: true
      textures:
        - item/my_food
    events:
      eat:
        feed:
          amount: 7
          saturation: 4

Drink

Optional (thirst)

if you are using the thirst bar from he default assets, you can also add a drink event to increase the thirst bar.

Modern method

Food

Drink

Optional (thirst)

if you are using the thirst bar from he default assets, you can also add a drink event to increase the thirst bar.

Last updated

Was this helpful?