跳到正文

Donation Alerts: Integrated!

作者:bUmmy1337

Let your audience interact with your world through commands.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

banner

Donation Alerts: Integrated

Turn DonationAlerts events into things that happen in your Minecraft game, live on stream.
A donation, a subscription, Twitch Bits or channel points can post a chat message, show a title, play a sound or run any command, all set up from a menu inside the game.

Features

  • Reacts to everything DonationAlerts sends: donations, Twitch Bits, Twitch channel points, YouTube and Twitch subscriptions (including gift and Prime subs and follows)
  • New in-game menu: press = to open a dark glass menu with an overview of recent events, connection, triggers, settings and help. English and Russian.
  • Connect in seconds: copy your secret token or your OBS alert widget link, click Paste from clipboard, done. The mod reconnects by itself and can connect automatically when the game starts.
  • Flexible triggers: pick the event type, the amount range and the currency, then add as many actions as you want, each with its own delay
  • Actions: chat message, command, title and subtitle, action bar text, sound, or say something in chat as you
  • Test button: run any trigger without a real donation
  • On-screen notifications: incoming donations and subscriptions pop up as small cards in the corner of your choice
  • Actions from other mods: any Fabric mod can add its own actions, and they show up in the menu next to the built-in ones

Screenshots

triggers
overview
connection
notifications

How to use

  1. Press = in game (or type /da) and open the Connection page.
  2. Click Open token page. Copy the secret token (General settings → Secret token, click Show), or the link of your alert widget for OBS. This is not an API / OAuth token, no app registration is needed.
  3. Click Paste from clipboard. The mod connects right away. Send a test alert from DonationAlerts and it shows up on the Overview page.
  4. Go to Triggers, create a trigger, choose when it fires and what it does, and click Save (or press Ctrl+S).

The token is stored only on your computer, in ~/.donation-alerts-token. The menu key can be changed in Controls.

Commands

| Command | Description |
|———|————-|
| /da | Open the menu |
| /da set | Save the token or widget link from the clipboard and connect |
| /da connect | Connect with the saved token |
| /da disconnect | Disconnect |
| /da status | Show the connection status |

Note: commands from triggers are sent as you, the player. They only work if you are allowed to run them, so use a world with cheats on, or have operator rights on the server.

Placeholders

Use them in messages, titles and commands:

{username}   — who sent the donation
{amount}     — donation amount
{currency}   — donation currency
{message}    — donation message
{playername} — your Minecraft name

Configuration file

Everything in the menu is saved to .minecraft/donation-alerts-integrate/settings.yaml. You can also edit triggers there by hand; the mod picks up changes automatically.

Conditions (sensitives)

| Type | Fires on |
|——|———-|
| daintegrate/sensitive/always | Any event |
| daintegrate/sensitive/donate | A donation within from–to in currency |
| daintegrate/sensitive/subscribe | A subscription of type: YouTubeSubscription, TwitchSubscription, TwitchFreeFollow, TwitchGiftSubscription, TwitchPrimeSubscription |
| daintegrate/sensitive/twitch/bits | Twitch Bits within from–to |
| daintegrate/sensitive/twitch/points | Twitch channel points within from–to |

Actions (handlers)

| Type | What it does | Fields |
|——|————–|——–|
| daintegrate/handler/message | Adds a message to your chat (only you see it) | message |
| daintegrate/handler/command | Runs a command as you (without /) | command |
| daintegrate/handler/title | Shows a title and subtitle on screen | title, subtitle, seconds |
| daintegrate/handler/actionbar | Shows text above the hotbar | text |
| daintegrate/handler/sound | Plays a sound only you hear | sound, volume, pitch |
| daintegrate/handler/chat | Says something in chat as you, everyone sees it | message |

In the file, delay is in ticks (20 ticks = 1 second). In the menu it is set in seconds.

Example

triggers:
  - name: "Creeper for 10 USD"
    isActive: true
    sensitives:
      - properties:
          type: daintegrate/sensitive/donate
          value:
            from: 10
            to: 49
            currency: USD
    handlers:
      - delay: 0
        properties:
          type: daintegrate/handler/title
          value:
            title: "{username}"
            subtitle: "summons a creeper!"
            seconds: 3
      - delay: 0
        properties:
          type: daintegrate/handler/sound
          value:
            sound: minecraft:entity.creeper.primed
            volume: 1
            pitch: 1
      - delay: 40
        properties:
          type: daintegrate/handler/command
          value:
            command: "summon creeper ~ ~ ~2"

For mod developers

Other Fabric mods can register their own actions through the daintegrate entrypoint (DaIntegratePlugin). The menu builds a settings form from your settings class automatically. See the README on GitHub for an example.

Requirements

  • Minecraft 26.3
  • Fabric Loader 0.19.5+
  • Fabric API
  • Java 25

Support

Report issues on GitHub.

Thanks

This mod is based on Donation Alerts Integrate — thanks, Folleach!

常见问题

Donation Alerts: Integrated! 支持哪些 Minecraft 版本?

Donation Alerts: Integrated! 支持 Minecraft Java 版 26.1–26.3,共 4 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Donation Alerts: Integrated! 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

bUmmy1337 的其他作品

查看全部 →