4.2 KiB
(S)ophie(I)ncorporated
(S)torage(S)olution |
|
Features
- Lua matching for inventories that are passed into AIL/Hopper
- Import all items from certain inventories (like ender storages for all of your farms)
- Chatbox support for withdrawing and depositing items
- Remote access via enderstorages
- Complete remote access via Modem (RA) and a enderstorage with a UI and everything
How to use
- First, in your /config.lua file, add the following:
return {
["inventories"] = { -- REQUIRED!! Please set at least one inventory pattern.
".*barrel.*" -- Lua patterns to match all barrels
},
["import"] = { -- Not required, just don't set!
"ender_storage_156" -- A inventory I want to move all items from into our storage
},
--- Enable the experimental hopper.lua backend.
-- ["beta"] = {
-- ["hopper"] = true
-- },
["chatbox"] = { -- Not required, just don't set!
["prefix"] = "home",
["players"] = {
["hartbreix"] = "manipulator_42" -- Chatbox support
}
},
["remote"] = { -- Access your items via modem, not required, just don't set!
["ender_storage"] = "ender_storage_493", -- Enderstorage that will be changed (set this to owner-only and computer-chanagable!)
["modem"] = "modem_1277", -- Modem to recieve messages
--- Uses RA backend. Connects with a already running SiSS instance. Not required!
-- ["connection"] = {
-- ["port"] = 32000,
-- ["password"] = "test123",
-- ["connection"] = "white/white/white"
-- },
["remotes"] = { -- Remote access
["red/green/green"] = {
["port"] = 42420,
["password"] = "test123" -- Required!
}
}
}
}
-
Run the following command:
wget run https://git.sad.ovh/sophie/storage-solution/raw/branch/main/src/.main-installer.luaThis will install storage-solution to /storage-solution. To make it start every time you turn on the computer, add
shell.run("wget run https://git.sad.ovh/sophie/storage-solution/raw/branch/main/src/.main-installer.lua")to startup.lua
[EXTRA!]
You can also run wget run https://files.sad.ovh/public/storage-solution/.beta-installer.lua, which is quite unstable. You may experience issues while running the beta version, but also new juicy features :)
RA
SiSS has a remote access system that allows you to access your items via modem.
To use it, first set up your config.lua correctly. After that you need to implement the tiny_ra_library into your program.
You can download it by using wget https://git.sad.ovh/sophie/storage-solution/raw/branch/main/tiny_ra_library.lua.
Example program:
local ra = require("tiny_ra_library")
local modem = peripheral.find("modem")
-- modem, port, password
ra.init(modem, 42420, "test123")
print("withdraws 64 of dirt")
ra.withdraw("minecraft:dirt")
sleep(2)
print("deposits 64 of dirt")
ra.depositByItemName("minecraft:dirt")
sleep(2)
print("withdraws 12 dirt")
ra.withdraw("minecraft:dirt", 12)
sleep(2)
print("deposits the first slot")
ra.depositBySlots({1})
sleep(2)
print("withdraws 32 dirt")
ra.withdraw("minecraft:dirt", 32)
sleep(2)
print("deposits 16 items from the first slot")
ra.depositBySlots({1}, 16)