Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aeBridge = peripheral.wrap("right")
- craftTable = {}
- aeTable = {}
- function setCraftTable(craftid,quantity,name)
- craftTable[craftid] = {}
- craftTable[craftid]["quantity"] = quantity
- craftTable[craftid]["name"] = name
- end
- function setCraftingList()
- setCraftTable(5,512,"Oak Wood Planks")
- setCraftTable(280,512,"Sticks")
- end
- function main()
- setCraftingList()
- while true do
- aeTable = aeBridge.listCraft()
- for i,j in pairs(craftTable) do
- if aeTable[i]<j then
- aeBridge.craft(i,j-aeTable[i])
- end
- end
- end
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement