miku-rpc

Crates.iomiku-rpc
lib.rsmiku-rpc
version0.1.4
sourcesrc
created_at2022-02-14 08:24:05.536151
updated_at2022-03-14 07:39:35.734555
descriptionan implementation of the opencomputers 2 RPC api
homepage
repositoryhttps://github.com/allie-signet/miku-rpc
max_upload_size
id532123
size29,239
kore (kore-signet)

documentation

README

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"))
Commit count: 20

cargo fmt