config-breakdown

Config Breakdown

# Where all the settings would go in the config
Settings:
# If set to true enables some debug stuff
  debug: false 
# Where all the consumables would go in the config
Consumables:
 # Material Id of the Consumable
  '282':
 # Consumable name
    name: '&cPvP Soup'
# Marks where the Consumable's lore would go
    lore: 
# Lore line 1 of the Consumable can add as many lines as you want
    - '&7A mix of mushroomy goodness' 
# Lore line 2 of the Consumable can add as many lines as you want
    - '&6Yummy!' 
# Marks where the Consumable's potion effects would go
    potions:
# Potion effect Id current would give the player regeneration
      '10': 
 # Potion strength 0 is actually level 1, 1 is actually level 2, & so on
        level: 1
# Potion Length measured in ticks 20 ticks = 1 second
        length: 130 
# Block id of block break effect that appears on players head when Consumable is eaten
    effect: 40 
# Amount of food restored when Consumable is eaten max is 20 
    food: 4 
 # Amount of saturation restored when Consumable is eaten max is 20
    saturation: 8
# Custom permission required to eat the consumable current would require that the player have consumables.pvpsoup
    permission: pvpsoup

This config would make it so if a player had the permission consumables.pvpsoup & right clicked a mushroom stew that matched the name and lore said above it would consume the item, play a red mushroom block break effect on the player's head, give the player Regeneration 2 for 6.5 seconds, add 4 food to the player, & set the player's saturation to 8.