Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/martindevans/minetest-digital-storage
https://github.com/martindevans/minetest-digital-storage
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/martindevans/minetest-digital-storage
- Owner: martindevans
- Created: 2018-01-10T19:07:55.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-10T19:59:21.000Z (about 7 years ago)
- Last Synced: 2024-12-29T18:31:35.290Z (28 days ago)
- Language: Lua
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
## Digital Storage
This mod for [Minetest](https://www.minetest.net/) adds in persistent storage accessible with [Digilines](https://github.com/minetest-mods/digilines).
To install the mod click Clone or download in Github and "Download Zip". Extract into the minetest mods directory and rename the directory to `digital_storage`.
### Example Usage
1. Place down a `digital_storage:floppy_drive` node.
2. Insert a `digital_storage:floppy_disk` item into the drive.
3. Connect the drive to a LuaController with digiline wiresTo store something in the disk:
```
digiline_send("floppy_channel_name", { op = "put", addr = "key", data = "value" });
```To retrieve something from the disk:
```
digiline_send("floppy_channel_name", { op = "get", addr = "key" });
```This will send back a message on the same channel with the data. No message will be sent if there was no data.
To delete something from the disk:
```
digiline_send("floppy_channel_name", { op = "del", addr = "key" });
```