HomeJavaModsCraftUA
CraftUA

CraftUA — Minecraft ↔ OPC UA


A Paper 1.21.1 plugin that links Minecraft redstone components to OPC UA server variables, letting you control and monitor industrial automation systems (PLCs, SCADA) directly from your Minecraft world!


Features


⚙️ Requirements


Installation


Configuration (config.yml)

Code (YAML):
servers:
  MICROSOFT
:
    endpoint
: "opc.tcp://192.168.1.100:50000"
  CODESYS
:
    endpoint
: "opc.tcp://192.168.1.101:4841"
    username
: "user"           # optional
    password
: "pass"           # optional
    # securityPolicy: "Basic256Sha256"   # optional: force a specific policy
  NODE_OPC
:
    endpoint
: "opc.tcp://192.168.1.102:4840"
    # no auth needed

debug
:
  enabled
: false

In-Game Usage

1. Browse a server
Code (Text):
/craftua browse <serverId> [namespace]
Lists all available variables on the server. Node IDs are cached locally so you can use their short names/aliases on signs.

2. Place a sign
Create a sign and place it directly adjacent to a lever, button, redstone lamp, wire, or composter:
Code (Text):
[CraftUA]
myplc
4:myVariable
bit:3              (optional — line 4)
Tip: You can also use /craftua getsign <serverId> <ns> <varName> to get a pre-filled sign item directly in your inventory!

️ Commands

Command Description
/craftua listServers Show configured servers and their current connection status (✔/✘).
/craftua listNodes List all registered links, their data types, and linked block counts.
/craftua showNodes [name] [block] Visually highlight linked blocks with gold/emerald blocks.
/craftua hideNodes Remove highlights and restore original blocks.
/craftua showNodeInfo Toggle live value overlay in your actionbar when looking at a block.
/craftua saveNodes Force-save all active links to nodes.yml.
/craftua browse <serverId> [ns] Browse OPC UA variables and cache aliases.
/craftua reconnect <serverId> Force-reconnect to a specific server.
/craftua disconnect <serverId> Disconnect from a specific server.
/craftua getsign <serverId> <ns> <name> Get a pre-filled sign item for easy placement.
/craftua toggleDebug Toggle verbose debug logging.


[HR][/HR]

Block Reference & Directions

Block Output (MC → OPC) Input (OPC → MC)
Lever / Button Toggle/pulse writes true/false to OPC UA. OPC value physically controls the lever position.
Redstone Lamp Lights up and writes true to OPC UA.
Redstone Wire Signal strength change writes 0–15 to OPC UA.
Composter OPC UA analog value controls the level (0–8).


Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

CraftUA is a free Minecraft Java mod. Compatible with Minecraft 1.21. Downloaded 8 times (via Spigot). Download it and open it directly in the game.

Explore more