UltimateChristmas 4.0 Wiki

UltimateChristmas / Feasts

Feasts

Festive food and drink with buffs. Each food is an edible item that applies its effects when eaten — sell them in the shop, drop them from bosses, or hand them out at events.

module id: feasts config: modules/feasts.yml

Commands

/christmas feast                              list the foods (players)
/christmas feast give <food> <player> [amount]   hand them out (admin)

Player permission: ultimatechristmas.feasts.

Defining a food

particles-on-eat: true

foods:
  hot_cocoa:
    material: HONEY_BOTTLE          # should be an edible material
    name: "&6&lHot Cocoa"
    lore: ["&7Warms you to the core."]
    effects: ["FIRE_RESISTANCE:2400:0", "REGENERATION:100:0"]
    restore-food: 4
    cooldown: 60
    message: "&6You sip the hot cocoa and feel cosy."

  roast_dinner:
    material: COOKED_BEEF
    name: "&6&lChristmas Roast"
    lore: ["&7A proper festive feast.", "&7Fills you right up."]
    effects: ["REGENERATION:200:1", "SATURATION:200:2"]
    restore-food: 10
    heal-hearts: 6
    cooldown: 300
    message: "&6You tuck into the Christmas roast. Delicious!"
KeyMeaning
materialThe item; pick an edible material so eating works naturally.
effectsPotion effects as "TYPE:ticks:amplifier".
restore-foodHunger points restored.
heal-heartsHearts healed directly.
cooldownSeconds before the same player can eat this food again.
messageSent to the player on eating.

The default menu

FoodEffects
Hot CocoaFire Resistance 2 min, Regeneration — cosy survival utility
Gingerbread ManSpeed 30 s — "run, run, as fast as you can"
Candy CaneSpeed II + Jump Boost — a sugar rush
Christmas RoastRegeneration II, Saturation, +10 food, +6 hearts — the big one, 5 min cooldown
Mulled WineFire Resistance 3 min, Resistance — for the grown-up elves

Feast foods pair well with the shop's effects key — Hot Cocoa is already a default shop entry — and with boss loot tables for fight consumables.