Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- component = require("component");
- controller = component.me_controller;
- exportbus = component.me_exportbus;
- args = {...};
- print("Searching For Data on " .. args[1]);
- function getItems()
- return controller.getItemsInNetwork();
- end
- local largeItem;
- for i, item in ipairs(getItems()) do
- if item.name == args[1] then
- for t, data in pairs(item) do
- print(t, " -- ", data);
- end
- block = item;
- break;
- end
- end
- if block == nil then
- print("Could not locate", args[1], ". Please ensure it is in system.");
- else
- for i = 0, 5, 1 do
- exportbus.setExportConfiguration(i, block);
- end
- print("Set Export bus!");
- end
Add Comment
Please, Sign In to add comment