Streamer.bot - MoSadie/EffectMC GitHub Wiki
(or other stream automation tools)
EffectMC can be triggered by tools like Streamer.bot using HTTP requests. (Or may be labeled as "Fetch URL" or something similar)
If you're wanting a quick action to import, click here for an example you can import straight into Streamer.bot. Just open the Import menu and either paste the contents or select the file. This example action triggers on a Twitch subscription and sends a Show Item Toast thanking the subscriber. You can replace the action easily by changing the effect
argument to any effect exported using the /effectmc exporteffect
command. (It does support using %variables% but you may need to add them in after exporting the effect.)
If you're using a different tool, or want to set up the action manually, here is a step by step guide:
Step 1: Get the URL to fetch.
If you're confident in figuring out the URL yourself, you can use the details on the Send HTTP Request to build out the URL.
Otherwise here is an easy way to generate it manually:
- Open your browser of choice. For this example I will be using Edge but the same general steps should work for other browsers.
- Open up Minecraft with the EffectMC mod installed.
- If the computer is the same one running Minecraft, go to
http://localhost:3000
in your browser. (Otherwise go tohttp://<your computer's local IP>:3000
) - Click on the effect you want to trigger.
- Fill out the details on the page.
- Open the developer tools by pressing
F12
or right clicking and selectingInspect
. You will want the network tab open. - Click the button to trigger the effect.
- Look for the request to appear in the network tab. It should be a request to a resource with the name of the effect (ex.
sendchat
) - Right click on the request and select
Copy
->Copy URL
. - Paste the URL into a text editor for later use. The only part you may want to change is
device=browser
todevice=streamerbot
(makes it easier to identify in logs, though you will need to run/effectmc trust
after changing this the first time)
Step 2: Set up an Action in Streamer.bot
- Open Streamer.bot and go to the
Actions
tab. - Right click in the Actions list and select
Add
- Fill out details and select
OK
- Select the Action by left clicking on it in the list.
- Right click in the Sub Actions list and select
Core
->Network
->Fetch URL
- Paste the URL you copied earlier into the
URL
field. - (Optional) Add one or more triggers to the action. (ex a command or on a sub)
- (Optional) Use one or more
%variables%
in the URL. (ex.http://localhost:3000/sendchat?device=streamerbot&message=%message%
, though be careful letting chat input directly into a URL)