
OBSCraft
Control OBS using command blocks/datapacks!
- Загрузки
- 881
- Подписчики
- 12
- Обновлён
- 7 ноября 2025 г.
- Лицензия
- LGPL-3.0-only
Опубликован 25 декабря 2024 г.
Right now this is in active development and still in alpha, please report any bugs you find!
Connect Minecraft directly to OBS Studio using the OBS WebSocket plugin. Allows using command blocks, datapacks, and plugins to trigger various actions in OBS Studio.
This works by listening for a specially formatted translatable chat message, which is decoded then acted upon. You can generate a tellraw command using the /obscraft command.
Demo Video
Features
- Set the active scene from in-game!
- Update a Text source's text.
- Set a source's visibility in a given scene.
- Set the visible status of a filter on a source. (Also works with plugin filters such as the Move plugin)
Each of these options support both typing literal names as well as looking up names from a scoreboard objective. You can either search for the first player with a specific score or search for the score of a specific player. (Works with both dummy objectives and "real" scoreboards)
NOTE: To have the client "see" a scoreboard objective for use in this mod, the scoreboard must be attached to a display. It can be any display, even if it's not visible to the player, like a different teams's sidebar.
Commands
/obscraft listConnections- List all OBS connections by ID. Gives connection status for each one./obscraft reconnect <id>- Reconnect to an OBS connection by ID.- There are more commands to generate tellraw commands and save actions, but the in-game documentation is setup to show them all as you type.
Setup
OBS Studio
First, we need to make sure the websocket server is enabled.
In OBS go to Tools -> WebSocket Server Settings.
Make sure of the following:
Enable WebSocket Serveris checked.Enable Authentificationis checked.- Note down the
Server PortandServer PasswordPressShow Connect Infoto see it.
Minecraft
Note: The mod required the Architectury API installed to load.
Launch the game once to generate the config file, it should be with other configuration files for you mods.
It should look like this:
{
"connections": [
{
"ID": "default",
"host": "127.0.0.1",
"port": 4455,
"password": "password"
}
],
"savedActions": {},
"savedActionKeys": {}
}
IDis a unique identifier for the connection. You can have multiple connections to different OBS instances.hostis the IP address of the computer running OBS. If it's on the same computer, use127.0.0.1portis the port number from the OBS WebSocket settings.passwordis the password from the OBS WebSocket settings.
For a simple setup just make sure port and password match the OBS settings.
After that restart the game and you should be good to go! Make sure everything is connected by running /obscraft listConnections and default should show up under Available Connections.
Ченджлог
0.2.2-NeoForgeРелиз1.21.9, 1.21.10 · 7 ноября 2025 г.
What's Changed
- Update to Minecraft 1.21.9/10 by @MoSadie in https://github.com/MoSadie/OBSCraft/pull/2
NOTE: As part of updating to 1.21.9, if you have set a custom keybind for any of the action keys, you'll need to set it again. Sorry!
Full Changelog: https://github.com/MoSadie/OBSCraft/compare/v0.2.1...v0.2.2
0.2.2-FabricРелиз1.21.9, 1.21.10 · 7 ноября 2025 г.
What's Changed
- Update to Minecraft 1.21.9/10 by @MoSadie in https://github.com/MoSadie/OBSCraft/pull/2
NOTE: As part of updating to 1.21.9, if you have set a custom keybind for any of the action keys, you'll need to set it again. Sorry!
Full Changelog: https://github.com/MoSadie/OBSCraft/compare/v0.2.1...v0.2.2
0.2.1-NeoForgeРелиз1.21.6, 1.21.7, 1.21.8 · 27 мая 2025 г.
Updated to Minecraft 1.21.5
0.2.1-FabricРелиз1.21.6, 1.21.7, 1.21.8 · 27 мая 2025 г.
Updated to Minecraft 1.21.5
0.2.0-NeoForgeБета1.21.4 · 21 февраля 2025 г.
New Feature: Action Keys
Save actions for later use and assign those actions to keys! It supports all current action types and they are saved to your client's config instead of the world.
How to use:
- Create an action and put it in a command block (or any other in-world trigger)
- Run
/obscraft saveAction <id> - Send the translatable component (aka trigger the command block)
You should receive a toast indicating the save was successful.
You can assign an action to a key using /obscraft setActionKey <keyId> <actionId> (omit the actionId to clear a key instead)
Action Keys can be rebound in the normal Controls menu.
As a reminder, Architectury API and Fabric API (for Fabric) is required.
0.2.0-FabricБета1.21.4 · 21 февраля 2025 г.
New Feature: Action Keys
Save actions for later use and assign those actions to keys! It supports all current action types and they are saved to your client's config instead of the world.
How to use:
- Create an action and put it in a command block (or any other in-world trigger)
- Run
/obscraft saveAction <id> - Send the translatable component (aka trigger the command block)
You should receive a toast indicating the save was successful.
You can assign an action to a key using /obscraft setActionKey <keyId> <actionId> (omit the actionId to clear a key instead)
Action Keys can be rebound in the normal Controls menu.
As a reminder, Architectury API and Fabric API (for Fabric) is required.
0.1.0-NeoForgeАльфа1.21.2, 1.21.3, 1.21.4 · 30 декабря 2024 г.
After wayyyy too long, time to get this tested in the wild!
If you haven't yet, I'd recommend reading the Description for information on what functions are available.
If you run into any issues, please report them on the Issue Tracker or reach out to me!
Right now, it supports Minecraft 1.21.1 through the latest version. (1.21.4 as of 12/29) Also required is the Architectury API
0.1.0-FabricАльфа1.21.2, 1.21.3, 1.21.4 · 30 декабря 2024 г.
After wayyyy too long, time to get this tested in the wild!
If you haven't yet, I'd recommend reading the Description for information on what functions are available.
If you run into any issues, please report them on the Issue Tracker or reach out to me!
Right now, it supports Minecraft 1.21.1 through the latest version. (1.21.4 as of 12/29) Also required is the Architectury API
Комментарии
Загружаем…