Long waited update is finally here! ๐ 1.18 Port is alive! (See the user manual!)
TwitchSpawn is a Minecraft mod designed for Twitch streamers using 3rd party streaming platforms!
It listens for live events related to your Twitch channel using various Socket APIs. Then it handles those events with the rules handcrafted by you!
You can say hi to us by giving our Discord Server a visit! (https://discord.gg/KNxxdvN)
Complete user manual can be found on https://igoodie.gitbook.io/twitchspawn/
Thanks to the power of SocketIO, the mod is now able to respond to a wide variety of events! Donations, follows, subscriptions, resubs, bits and many more events including for Youtube and Mixer as well! List of supported streaming platforms:
- Streamlabs - (https://dev.streamlabs.com/docs/socket-api)
- StreamElements - (https://developers.streamelements.com/websockets)
(See ๐ TSL Events & Predicates - https://igoodie.gitbook.io/twitchspawn/twitchspawn-language/tsl-events-and-predicates)
The mod now comes with its own language to understand you: TwitchSpawn Language (TSL)!
With TSL, declaring event handling rules (rule sets) is piece of cake! It is easily understandable.
(E.g following sequence is a valid TSL script: DROP minecraft:diamond ON Twitch Follow
)
(See ๐ TSL Basics - https://igoodie.gitbook.io/twitchspawn/twitchspawn-language/tsl-basics)
# Drops 2 sticks on 0 to 20 unit donation
DROP minecraft:stick 2
ON Donation
WITH amount IN RANGE [0,20]
EITHER # Selects one random action
# Either drops a diamond block
DROP diamond_block 1
OR
# Or drops an iron block named "Iron Golem Body"
DROP %iron_block{display:{Name:"\"Iron Golem Body\""}}% 2
OR
# Or summons a zombie on given coordinate
SUMMON minecraft:zombie ~ ~+10 ~
# By displaying one common message for any action selected!
ALL DISPLAYING %["Get ready for spoils of battle!"]%
ON Donation
WITH amount IN RANGE [21, 999]
# Executes a Minecraft command as the streamer being the source!
EXECUTE %/gamerule keepInventory true%
DISPLAYING %[
{text:"${actor}", color:"red"},
{text:" turned immortality on!", color:"white"},
]%
ON Donation
WITH amount >= 1000
# Instantly does two actions! Throws leggings and boots from the inventory!
BOTH INSTANTLY
THROW leggings AND THROW boots
DISPLAYING %["You forgot to wear your pants!"]%
ON Twitch Subscription
WITH months >= 2
# Drops a stick with NBT data, when a Twitch Follow is received!
DROP %minecraft:stick{display:{Name:"\"Stick of Truth!\""}}% 1
ON Twitch Follow
The mod is capable of parsing more than one ruleset, which makes it possible for multiple streamers to use TwitchSpawn on the same server!
(See ๐ credentials.toml - https://igoodie.gitbook.io/twitchspawn/reference/configurations/credentials.toml)
Exemplar credentials.toml:
moderatorsTwitch = [ "Redowar" ]
moderatorsMinecraft = [ "Redowar" ]
[[streamers]]
minecraftNick = "iGoodie"
twitchNick = "iGoodiex"
platform = "Streamlabs"
token = "YOUR_SOCKET_TOKEN_HERE"
[[streamers]]
minecraftNick = "iGoodie"
twitchNick = "iGoodiex"
platform = "StreamElements"
token = "YOUR_SOCKET_TOKEN_HERE"
You can customize the text that is shown on an action, with an easy JSON format and well known Minecraft Text Component syntax!
(See ๐ฟ Minecraft JSON Text Components - https://github.com/skylinerw/guides/blob/master/java/text%20component.md)
(See ๐ Customizing Messages - https://igoodie.gitbook.io/twitchspawn/basics/customizing-messages)
Exemplar messages.title.json:
{
"donation": [
{
"text": "${actor}",
"color": "aqua"
},
{
"text": " donated you ${amount_f}${currency}",
"color": "white"
}
],
"twitch follow" : [ ... ],
"twitch subscription" : [ ... ],
...
}
Unlike the previous (1.12.x) versions, errors will not cause Minecraft to crash with no report. Instead it is aimed to show errors to the user as much as possible. If you're facing any sort of problem, do not hasitate giving our Discord Server a visit!
(๐พ Discord Invite: https://discordapp.com/invite/KNxxdvN)
- My Guildies: Elanor & Vaelios - German and French translations ๐
- SE7-KN8 - German translation of
test
command module keys
If you would like to contribute to the translations, consider modifying languages and creating a PR!
Special thanks to each one of those beautiful people:
- Redowar - For igniting the initial idea of dropping (actually Spawn'ing :p) stuff in-game, dev-version testing and his amazing company!
- ToastNomNomNom - For reaching me, motivating me for a whole new paradigm and helping me do the alpha testings!
- Kรถfteistkรถfte - For his amazing OS_RUN action idea and testings!
- AdmiralLemon - For his bug reports and helps on debugging!
- Darkphan - For his precious Github issues and suggestions!
- iskall85 - For reaching me and motivating me for a 1.12.x refactor/port!
- TheGreatGildersneeze - For his amazing TwitchSpawn server and correction on a misleading documentation page!
- JimilT92 - For his amazing insight on placeholder expressions and detailed issues!
- BisUmTo - For his priceless bug-reports and endless effort on debugging them!
- Diaval - For his epic memes and pair programming sessions!
- Azelza - For his unconditional support and love to the Spawn Project!
- Atanend, DesimieS, Katayanka, Grishnack and Taul - For their assist in alpha testing the TSL2.0 early features!
- My Guildies: Elanor & Vaelios - For preparing German and French translations!
- And every single person in our Discord Server for keeping us motivated on this project!
- Join our Discord Server - https://discordapp.com/invite/KNxxdvN
- Contact iGoodie via Discord: iGoodie#1945
- Create an issue on Github: https://github.com/iGoodie/TwitchSpawn/issues