EvanWard29 / MC-Interactions

MIT License
0 stars 0 forks source link

MC Interactions

...

Minecraft Interactions is a Minecraft Java mod I've developed for personal use, inspired by the TwitchSpawn mod.

The mod was designed to connect to the Twitch API using a WebSocket and listen for subscribed events, such as gaining a new follower or subscriber.

Triggered events would then perform an action in-game, like spawning a mob when someone follows, or changing the time of day to night when someone redeems a custom channel point.

From this project, I learnt a number of skills which I could apply to other projects:

  • A much better understaning of Object Oriented Programming.
  • Implementing OAuth 2.0 for Twitch to retrieve user access tokens.
  • Using Java-WebSocket to connect to Twitch's EventSub API and listen out for event messages.
  • Using the Spark framework to setup a minimalist webserver for user authentication.
  • Using Cloudflare Tunnels and DNS to route traffic.

The mod was developed as a bespoke project, but at some point in the future, I plan to redesign the mod to be more flexible.