Crates.io | miku-rpc |
lib.rs | miku-rpc |
version | 0.1.4 |
source | src |
created_at | 2022-02-14 08:24:05.536151 |
updated_at | 2022-03-14 07:39:35.734555 |
description | an implementation of the opencomputers 2 RPC api |
homepage | |
repository | https://github.com/allie-signet/miku-rpc |
max_upload_size | |
id | 532123 |
size | 29,239 |
an implementation of the RPC device API for OpenComputers 2.
named in honor of minecraft's creator, hatsune miku.
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"))