All Projects → youtube → youtube-chat-for-minecraft

youtube / youtube-chat-for-minecraft

Licence: Apache-2.0 license
A plugin for Minecraft Forge that provides an API for YouTube live chat services

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to youtube-chat-for-minecraft

ytqck.github.io
YouTube quick ⚡ Search and Download Music for Free.
Stars: ✭ 18 (-66.04%)
Mutual labels:  youtube-api, youtube-api-v3
search-youtube
An Android App used for searching and playing videos from YouTube. Used: Youtube Data API v3, YouTube Player API
Stars: ✭ 24 (-54.72%)
Mutual labels:  youtube-api, youtube-api-v3
phpvibe-lite
PHPVibe Open source video CMS / Video Sharing CMS / Youtube Api v3 / Video Embeds
Stars: ✭ 71 (+33.96%)
Mutual labels:  youtube-api, youtube-api-v3
youtube-deno
A Deno client library of the YouTube Data API.
Stars: ✭ 30 (-43.4%)
Mutual labels:  youtube-api, youtube-api-v3
yt-dislikes-viewer
A browser extension that allows you to see dislikes on a youtube video after the youtube update
Stars: ✭ 291 (+449.06%)
Mutual labels:  youtube-api, youtube-api-v3
MrCrayfishGunMod
A Minecraft Mod focused on adding fun and simple weapons wtih lots of customisation including attachments and more!
Stars: ✭ 132 (+149.06%)
Mutual labels:  minecraft-forge
youtube-sr
Simple library for Node, Deno & Bun to make YouTube search easily
Stars: ✭ 68 (+28.3%)
Mutual labels:  youtube-api
Discord-Music-Turret-Bot
A standalone Discord music bot, made with DSharpPlus, using Lavalink.
Stars: ✭ 14 (-73.58%)
Mutual labels:  youtube-api
youcount.github.io
YouCount allows you to see the subscriber count of any YouTube user in realtime. It has been designed using the Material Design language and is optimized for mobile devices and older browsers.
Stars: ✭ 27 (-49.06%)
Mutual labels:  youtube-api
react-youtube-search
⚛️ React with YouTube API
Stars: ✭ 18 (-66.04%)
Mutual labels:  youtube-api
minecraft-forge-kotlin-template
Minecraft 1.12.2 Mod template using Forge and Kotlin
Stars: ✭ 38 (-28.3%)
Mutual labels:  minecraft-forge
Generator-Forge-1.12.2
MCreator generator plugin for Minecraft Forge 1.12.2
Stars: ✭ 20 (-62.26%)
Mutual labels:  minecraft-forge
yt-restore-dislikes
👎 A browser extension for restoring the dislike count on YouTube videos.
Stars: ✭ 24 (-54.72%)
Mutual labels:  youtube-api
statamic-video-embed
A field type for embedding YouTube and Vimeo Videos
Stars: ✭ 16 (-69.81%)
Mutual labels:  youtube-api
Laravel-Youtube-API
A way to add an API to your Laravel app that converts youtube video's to mp3/mp4 and returns a download/stream link and information.
Stars: ✭ 19 (-64.15%)
Mutual labels:  youtube-api
ElectricalAge2
Eln2 Codebase
Stars: ✭ 44 (-16.98%)
Mutual labels:  minecraft-forge
social-post-api
Social Media API: Automate Posting and Analytics to Social Networks like Instagram, TikTok, Twitter, Facebook, LinkedIn, Reddit, YouTube, and Telegram
Stars: ✭ 38 (-28.3%)
Mutual labels:  youtube-api
youtubly-android
An android app to download 📹 videos and 🎶 songs from youtube to phone internal storage. In a nutshell NewPipe for just audio.
Stars: ✭ 24 (-54.72%)
Mutual labels:  youtube-api
angular-youtube-api-factory
AngularJS Factory for Youtube JSON REST API requests
Stars: ✭ 21 (-60.38%)
Mutual labels:  youtube-api
YoutubeLiveChannelRecorder
Records YouTube live streams and Semi-Working TWITCH live streams for given channels automatically.
Stars: ✭ 15 (-71.7%)
Mutual labels:  youtube-api

YouTube Chat for Minecraft

A plugin for Minecraft Forge that provides an API for YouTube live chat services. This is not an official Google product.

Features

  • Broadcasts live chat messages to multiple clients from a single network connection
  • Provides author details (channelId, displayName, isChatModerator, isChatOwner isChatSponser, profileImageUrl) and SuperChat details
  • In-game configuration

Workspace setup

Clone this repository, and open a terminal to the root directory. Navigate to http://files.minecraftforge.net and pick the latest or recommened MDK version. Update the mdkVersion definition in setup.gradle, then run the installMdk task:

./gradlew -b setup.gradle

Next, setup the decompiled workspace and save the build dependencies:

./gradlew setupDecompWorkspace
./gradlew saveDependencies

Build the jar:

./gradlew build

A single .jar file will be output to build/libs, e.g. ytchat-1.0.0.jar.

Intellij Idea Setup

If you have Intellij Idea installed and plan to use it for development, perform these steps to setup the project directory.

  1. Run the following gradle task:
./gradlew idea
  1. Open the project folder with Intellij, and import the Gradle project when prompted.
  2. Make sure you have the 1.8 JDK configured (File->Project Structure->SDKs).
  3. Select Run->Edit Configurations:
  • There should be two configurations - Minecraft Client and Minecraft Server.
  • Edit the Minecraft Client configuration.
  • Go to the Use classpath of a module field
  • Select the module ending with _main.
  • Ensure a valid JRE is selected.
  1. Run the Minecraft Client configuration. Minecraft should open. You may Debug as well.

Installation

Copy the YouTube Chat jar to one these folders depending on your OS:

  • Linux: ~/.minecraft/mods
  • OSX: ~/Library/Application\ Support/minecraft/mods/
  • Windows: %APPDATA%/Minecraft/mods

Obtaining Credentials

  1. Create a project in the Google API Console

  2. Click Create credentials. Select OAuth client ID from the dropdown, followed by Other for the Application type.

  3. Open the API Library and ensure that your application is registered to use the YouTube Data API.

  4. Download the client ID JSON by clicking the following icon for your project: Download json

  5. Run the YouTube Chat jar from a terminal to obtain authorization credentials, pasting the downloaded json when prompted:

java -jar ytchat-1.0.3.jar login

If you want to clear your credentials or sign in as a different user, run logout:

java -jar ytchat-1.0.3.jar logout

Credentials are saved to ~/.oauth-credentials.

Configuration

Configuration

  1. With YouTube Chat installed, open Minecraft with the forge profile.
  2. At the Minecraft main menu, select Mods.
  3. Select YouTube Chat, and click Config. There are 2 settings:
  • Client Secret: (Required) The client secret json downloaded from the Google API Console
  • videoId: (Optional) A videoId associated with the live broadcast to connect to. If blank, will attempt to connect to the signed in user's live broadcast (a Google sign-in dialog will appear when starting YouTube Chat).

Runtime Usage

YouTube Chat supports the following commands in Minecraft:

/ytchat [start|stop|logout|echoStart|echoStop]
  • start: Starts the YouTube Chat service, connecting to the live chat of the signed in user.
  • stop: Stops the YouTube Chat service.
  • logout: Stops the YouTube Chat service and clears saved credentials.
  • echoStart: Starts echoing chat messages into Minecraft chat, for troubleshooting.
  • echoStop: Stops echoing chat messages into Minecraft chat.
/ytcmock <mock author id/name> <mock input>

Provides mock input for testing without a YouTube live chat connection.

API

To use YouTube Chat, copy the jar into the libs folder of your Forge directory. Regenerate the project with gradle, or manually add a dependency to the jar in the project settings.

Add ytchat to the dependencies field in mcmod.info, e.g.:

"dependencies": ["ytchat"]

Get an instance of the YouTubeChatService interface:

YouTubeChatService service = YouTubeChat.getService();

Discussion and Support

Join the discussion group at https://groups.google.com/forum/#!forum/youtube-chat-for-minecraft

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].