Advertisement
Corbinhol

Urn Automator

Feb 9th, 2023 (edited)
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1.  
  2. while true do
  3. redstone.setOutput("top", true);
  4. redstone.setOutput("front", false);
  5. urn = peripheral.wrap("right").getBlockMeta(-1,0,0).state.urntype;
  6. print(urn);
  7. if urn == "EMPTY" then
  8. redstone.setOutput("top", false);
  9. os.sleep(.2);
  10. redstone.setOutput("top", true);
  11. elseif urn == "FULL" then
  12. redstone.setOutput("front", true);
  13. os.sleep(.2);
  14. redstone.setOutput("front", false);
  15. end
  16. os.sleep(0);
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement