Parties and integrations

Discord notifications

Send progress, quest and purchase notifications to Discord.

Minecraft 1.21.1 · Fabric≈ 2 min read
CobblemonFabric

Configure a webhook

Use webhook.yml and a webhook from a channel you administer. Fill in url and enable enabled when ready to send:

webhooks:
  conclusoes:
    enabled: false
    url: 'https://discord.com/api/webhooks/SEU_ID/SEU_TOKEN'
    event: COMPLETE_QUEST
    username: 'BattlePass'
    embed:
      title: 'Quest completed'
      description: '{player} concluiu {quest_display}.'
      color: '57F287'
      fields:
        - name: 'XP'
          value: '{xp_gain}'
          inline: true
        - name: 'Points'
          value: '{points_gain}'
          inline: true
      timestamp: true

Events and placeholders

event When to send Specific fields
LEVEL_UP Level up {level}, {xp_total}
COMPLETE_QUEST Quest completion {quest_display}, {xp_gain}, {points_gain}
ACTIVATE_QUEST Quest activation {quest_display}
QUEST_CANCEL Quest cancellation {quest_display}
PROGRESS_OBJECTIVE Objective progress {quest_display}, {progress}, {target}, {percent}
RECEIVE_XP Receiving XP {amount}, {buff}
XP_TRIGGER Activity gains {xp_gain}, {points_gain}
BUY_SHOP Shop purchase {display}, {points}

Use {player}, {uuid} and {date} for all these events. Choose other fields according to the event; xp_total does not represent a history of all XP ever earned.

In the embed, configure title, description, color, author.name/icon-url, fields, footer.text/icon-url and timestamp. Outside it, configure username and avatar-url.

Prefer completion and level notifications to avoid excessive messages. Do not share the real webhook URL: it contains the sending token. For charges and deliveries, also check the in-game result; a purchase notification alone does not confirm all deliveries.