Setting up a food

On this page, you'll learn how to set up a food configuration!

Display Name

# The display name of the item
displayname: '&cApple'

Material

You can find the latest material id HERE

material: PLAYER_HEAD

Textures

You can find plenty of heads on Minecraft Heads

# Affect only when the material is PLAYER_HEAD
# Enter the base64 value of the head you want
textures: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTIxMTI3ZDIyNjc1YzVjNzY5YTBjMDhiNTcyMDE4ZDI5OWM4MzA0NmY4ZTFmOTQzZWQ5ZDUxYmUwM2IwNyJ9fX0=

Lores

# The lores of the item
lores:
- '&fAlso known as Ringo, native to Central Asia.'

Custom Model

custom-model:
  # Whether the food item applies the custom model
  enabled: false
  # Custom data value
  data: 1

Food & Saturation Levels

Learn more about Hunger on Minecraft Wiki

# The hunger level, shown on the hunger bar.
food-levels: 4
# The saturation level, determines how fast the hunger level depletes.
saturation-levels: 2.4

Eating Delay

# The time consumed when eating food (by ticks, 20 ticks = 1 second)
eating-delay: 32

Eating Particle

# Fill in a material id
eating-particle: APPLE

Eating Sound

You can find all available sounds HERE

eating-sound: ENTITY_GENERIC_EAT

Potion Effects

You can find all potion effect id HERE

# [Percent (1 = 1%)]:[Effect]:[Ticks (20 Ticks = 1 Sec)]:[Strength (0 = Level I)]
effects:
- 1:CONFUSION:100:0
- 0.1:POISON:200:0
- 0.01:POISON:200:4

Full Eatable

# Whether a player is able to consume food when is full.
full-eatable: false

Execute Commands

execute-commands:
- '@chance=50 spawn'
- '@console tell %player% You ate an %food%!'

Last updated