-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtop-level.lua
More file actions
31 lines (24 loc) · 767 Bytes
/
Copy pathtop-level.lua
File metadata and controls
31 lines (24 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
-- Copyright umnikos (Alex Stefanov) 2023-2025
-- Licensed under MIT license
local _ENV = setmetatable({}, {__index = _ENV})
version = "v1.4.5"
help_message = [[
hopper.lua ]]..version..[[, made by umnikos
example usage:
hopper *chest* *barrel* -not *:pink_wool
documentation & bug reports:
https://github.com/umnikos/hopper.lua]]
-- v1.4.5 changelog:
-- turtle transfers with UnlimitedPeripheralWorks
-- faster .list() with UnlimitedPeripheralWorks
-- energy transfer with -energy and UnlimitedPeripheralWorks
-- tag-based filtering: `hopper left right $c:ores`
-- table-based lua api
-- special casing for apotheosis library
local function using(s, name)
local f, err = load(s, name, nil, _ENV)
if not f then
error(err, 0)
end
return f()
end