FigurOSC Mod (1.21.4, 1.20.1) – Connect Figura Scripts With Live OSC Messages
FigurOSC Mod adds an OSC communication API for Figura so Lua scripts send and receive OSC messages. With simple listener and sender calls, this mod lets scripts listen on a chosen port for matching address patterns and send message lists to a target host and port. Built-in settings manage safety through a global OSC toggle and three network scope limits: Local, LAN, and Remote. Figura is required for this addon to work.
![]()
Features:
- OSC Listener API: Creates listeners with
osc:listener(port, pattern | nil, callback(addr, args))to watch a port, filter incoming address patterns, and trigger Lua callbacks with the received address and arguments. - OSC Sender API: Opens outgoing connections with
osc:sender(host, port)and transmits custom addresses and argument lists usingsender:send(address, args). - Network Scope Controls: Restricts which network interfaces OSC traffic can reach by choosing between
Local(loopback only),LAN(loopback plus private network interfaces), andRemote(all interfaces). - Includes clean teardown methods (
listener:close()andsender:close()) so scripts can shut down open listeners and senders when no longer needed. - Provides a global OSC switch in the mod settings so you can turn all OSC traffic on or off at any time.
- Defaults to the
Localscope to keep incoming and outgoing OSC connections limited to loopback traffic until you choose a wider scope.
Configuration:
Enable OSC: Global toggle that turns OSC communication on or off across the mod.Maximum scope: Sets the allowed network reach for OSC traffic –Local(default, loopback only),LAN(loopback and private network interfaces), orRemote(all network interfaces).
How to Use:
- Install Figura alongside this addon and make sure the
Enable OSCsetting is turned on. - Choose your preferred
Maximum scopesetting: leave it onLocalfor loopback-only apps on the same machine, or switch toLANorRemoteif you need broader network access. - Inside your Figura Lua script, open a listener with
osc:listener(port, pattern, callback)to react to incoming OSC addresses and arguments, passingnilfor the pattern if you do not want a filter. - Open an outgoing sender with
osc:sender(host, port)and callsender:send(address, args)with your target address string and table of arguments. - Call
listener:close()orsender:close()when your script finishes using a connection.
-- listener(port, pattern | nil, callback(addr, args))
local listener = osc:listener(9000, "/avatar/parameters/*", function(addr, args)
print(addr, args)
end)
-- listener:close()
-- sender(host, port)
local sender = osc:sender("localhost", 9001)
sender:send("/hello/i/am/an/address", { "meow", true })
-- sender:close()
How to Install:
New to Minecraft? Follow our step-by-step guide to install Mods on your PC.View Guide
FigurOSC Mod Download Links
For Minecraft 1.21.4
For Minecraft 1.21.1, 1.21
For Minecraft 1.20.1, 1.20
What graphic style do you prefer for your modded game?
33 responses · See the full results →
0
























This post has no comments yet. Be the first — your comment will appear here.