5 releases

0.1.4 Mar 14, 2022
0.1.3 Mar 2, 2022
0.1.2 Feb 17, 2022
0.1.1 Feb 14, 2022
0.1.0 Feb 14, 2022

#775 in Hardware support

Custom license

29KB
606 lines

Crates.io docs.rs

miku-rpc

an implementation of the RPC device API for OpenComputers 2.

named in honor of minecraft's creator, hatsune miku.

using as a lua module

you can use this library from lua! you can download it as a datapack and, after installing it, use it as a lua module from your OC2 vms. the exposed API is designed to be as similar as possible to the default lua RPC api:

local DeviceBus = require("libmiku")
local bus = DeviceBus:new("/dev/hvc0")

local redstone = bus:find("redstone")
print(redstone:getRedstoneInput("left"))

Dependencies

~2MB
~47K SLoC