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.

FigurOSC Mod

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 using sender: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), and Remote (all interfaces).
  • Includes clean teardown methods (listener:close() and sender: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 Local scope 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), or Remote (all network interfaces).

How to Use:

  1. Install Figura alongside this addon and make sure the Enable OSC setting is turned on.
  2. Choose your preferred Maximum scope setting: leave it on Local for loopback-only apps on the same machine, or switch to LAN or Remote if you need broader network access.
  3. Inside your Figura Lua script, open a listener with osc:listener(port, pattern, callback) to react to incoming OSC addresses and arguments, passing nil for the pattern if you do not want a filter.
  4. Open an outgoing sender with osc:sender(host, port) and call sender:send(address, args) with your target address string and table of arguments.
  5. Call listener:close() or sender: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()

FigurOSC Mod Download Links

Filter by

For Minecraft 1.21.4

For Minecraft 1.21.1, 1.21

For Minecraft 1.20.1, 1.20

Click to rate this post!
[Total: 0 Average: 0]
QUICK MINECRAFT SURVEY · ONE TAP
Mods & Modpacks

What graphic style do you prefer for your modded game?

33 responses · See the full results →