iGoodie / TwitchSpawn

๐Ÿ‘พ TwitchSpawn is a Minecraft mod, which is designed for Twitch streamers using 3rd party streaming tools! (comes with its own language!)

Home Page:https://www.curseforge.com/minecraft/mc-mods/twitchspawn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool



Long waited update is finally here! ๐ŸŽ‰ 1.18 Port is alive! (See the user manual!)

Brief Summary

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)

Preview #1 Preview #2

How to use?

Complete user manual can be found on https://igoodie.gitbook.io/twitchspawn/

Features

1. All the events!

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:

(See ๐Ÿ“œ TSL Events & Predicates - https://igoodie.gitbook.io/twitchspawn/twitchspawn-language/tsl-events-and-predicates)

2. Your own, readable rules!

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

3. One server, multiple streamers!

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"

4. Way better customizability

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" : [ ... ],
  ...
}

5. More reliable than before!

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)

Error Display Preview

Translations

  • 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

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!

Facing an Issue?

About

๐Ÿ‘พ TwitchSpawn is a Minecraft mod, which is designed for Twitch streamers using 3rd party streaming tools! (comes with its own language!)

https://www.curseforge.com/minecraft/mc-mods/twitchspawn

License:Eclipse Public License 1.0


Languages

Language:Java 100.0%