Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echest = "west"
- net = peripheral.wrap("back")
- ae = "appeng_me_tilecolorlesscable_1"
- glass= "openperipheral_glassesbridge_0"
- net.callRemote(glass,"clear")
- screenheight = 768
- screenwidth = 1366
- request = function()
- event,itmqty = os.pullEvent("chat_command")
- if type(itqty) == "number" then
- event,itmid = os.pullEvent("chat_command")
- if type(itmid) == "number" then
- event,itmdmg = os.pullevent("chat_command")
- if type(itmdmg) == "number" then
- reqitem = {qty = itmqty;id = itmid;dmg = itmdmg}
- else
- if itmdmg == "none" then
- reqitem = {qty = itmqty,id = itmid}
- end
- end
- unavailable = itmqty - net.callRemote(ae,"reqitem")
- if unavailable > 0 then
- craft = reqitem
- craft[qty] = unavailable
- net.callRemote(ae,requestCrafting,craft)
- end
- net.callRemote(ae,"extractItem",reqitem,echest)
- end
- end
- end
- refresh = function()
- end
- event,action = os.pullEvent("chat_command")
- if action == "req" then
- request()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement