# This is the key name of this spell
# It must be unique across the server, and is used in configs and commands such as /mage, /wand and /mgive
# to refer to this spell.
conjurefood:
  creator: spacecostume1
  creator_id: 63922a05-1d30-4fb4-9be0-8452537be79f
  # Name and description may be added here and will appear in lore for this spell.
  name: Conjure Food
  description: Conjure a stack of bread.
  # Choose an icon, used when showing this spell in a wand inventory.
  icon: bread
  # Actions define what this spell does when cast. In this case we will damage the target.
  actions:
    # Actions can be triggered from a few different events, but the most common is "cast",
    # which will happen immediately when the spell is cast.
    cast:
    - class: Command
      command: "give @p bread 64"
    - class: Message
      message_type: chat
      message: "&f &f &f &f &eYou cast &b@spell&e"
  # Effects are particle or sound effects that are shown when the spell is cast.
  effects:
    cast:
    - location: origin
      effectlib:
        class: Sphere
        # This effect will last 2 seconds
        duration: 2000
    - sound: magic.zap
  # Parameters change how a spell behaves, these may be base spell parameters or
  # specific to the set of actions you are using.
  parameters:
    cooldown: 600000 #10 minutes
  costs:
    mana: 65
