This file contains 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
START_X = 109 | |
START_Y = 61 | |
START_Z = 769 | |
FARM_X_END_EVEN = 108 | |
FARM_X_END_ODD = 97 | |
FARM_Z_START = 769 | |
FARM_Z_END = 782 | |
NUM_SLOTS = 16 |
This file contains 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
-- Globals | |
FARM_X_SIZE = 14 | |
FARM_Y_SIZE = 13 | |
NUM_SLOTS = 16 | |
-- Utils | |
function harvest_kelp() |
This file contains 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
START_X = 109 | |
START_Y = 57 | |
START_Z = 769 | |
FARM_X_END_EVEN = 108 | |
FARM_X_END_ODD = 97 | |
FARM_Z_START = 769 | |
FARM_Z_END = 782 | |
NUM_SLOTS = 16 |
This file contains 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
-- Globals | |
STATES = {} | |
CURRENT_STATE = nil | |
NUM_SLOTS = 16 | |
PRICES = { | |
["minecraft:coal"] = 1, | |
["minecraft:iron_ingot"] = 6, | |
["minecraft:diamond"] = 45, |
This file contains 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
FILES = { | |
["foofile1"] = "url1", | |
["foofile2"] = "url2" | |
} | |
function update_file(filename, url) | |
local cacheBreak = tostring(math.random(0, 99999)) | |
res, err = http.get(url .. "?breaker=" .. cacheBreak) | |
if not res then error(err) end |