This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Coater | Pixel render API | v.1.0 | |
================================= | |
Available under the MIT Licence | |
Copyright (c) 2022 Sammy L. Koch | |
]] | |
local ccExpect = require("cc.expect") | |
local expect,field,range = ccExpect.expect,ccExpect.field,ccExpect.range | |
local tCToB = {[1]='0',[2]='1',[4]='2',[8]='3',[16]='4',[32]='5',[64]='6',[128]='7',[256]='8',[512]='9',[1024]='a',[2048]='b',[4096]='c',[8192]='d',[16384]='e',[32768]='f' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Chromy | A small Bimg API | v.1.6 | |
================================= | |
Available under the MIT Licence | |
Copyright (c) 2022 Sammy L. Koch | |
--------------------------------- | |
Load images or animations in the | |
unofficial official bimg (blit - | |
image) format! | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Insert name of 'wireless_modems' (attatched to wired_modems), used for GPS here | |
-- Remove the already existing onces! | |
-- EXAMPLE: ["modem_0"] = {x=1, y=2, z=3} | |
local point = { | |
["modem_0"] = {x=151, y=56, z=-43}, | |
["modem_1"] = {x=156, y=56, z=-43}, | |
["modem_2"] = {x=151, y=56, z=-38}, | |
["modem_3"] = {x=151, y=60, z=-43} | |
} | |
local CHANNEL_GPS = gps.CHANNEL_GPS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Title: downloadGitHubRepo | |
Author: Kristify Team | |
Licence: MIT Licence (for more details: https://mit-license.org/) | |
Version: 1.0 | |
]] | |
--Configuration------------------------------------ | |
local bSilent = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
This is a small api to make wireless messages somewhat secure. | |
It is not recommended to use this in production as this is just awful. Use something strong. | |
However, this may be worth a look to understand what kind of steps could be used to secure a system. | |
]] | |
local tools = {} | |
---Gets a "random" number in hex format. | |
---@return string salt The number as string in hex format. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- By Sammy (1Turtle) | |
-- Licence: The Unlicence | |
-- Get poster printer | |
local poster = peripheral.find("poster_printer") | |
if not poster then | |
error("A poster printer is required.") | |
end | |
-- Print usage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- log4l.lua | |
-- A small enhanced logging module for Lua. | |
-- @licence MIT | |
-- @autor Sammy L. Koch (1Turtle) | |
-- @version 1.2 | |
local wrap = require("cc.strings").wrap | |
local log4l = {} | |
local meta = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local coal_slot = 16 | |
local wait_delay = 30 -- In seconds | |
local start = { -154, 69, 74 } | |
--[[ Instruction set: | |
- Move: { <dir>, <steps> } | |
- dir = "north", "east", "south", "west", "y" | |
- steps = how many steps it should go, e.g: 3 | |
- Placing: { "place", <side>, <slot> } | |
- side = "left" or "right" | |
- slot = 1 to 16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Gather peripherals | |
local mon = peripheral.find("monitor") | |
-- Create is used as an example here. | |
local vault = peripheral.find("create:item_vault") | |
local speedometer = peripheral.find("Create_Speedometer") | |
local stressometer = peripheral.find("Create_Stressometer") | |
-- Init | |
mon.setTextScale(0.5) |