ImDeegan

quantum_entangled_singularity_contraption

May 19th, 2022 (edited)
181
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. modem = peripheral.wrap("bottom")
  2. ender_dust = "storagedrawers:standard_drawers_1_6"
  3. singularity = "storagedrawers:standard_drawers_1_5"
  4.  
  5. while true do
  6.     if modem.callRemote(ender_dust, "list") ~= nil then
  7.         ender_dust_count = modem.callRemote(ender_dust, "list")[2]["count"]
  8.     end
  9.     if modem.callRemote(singularity, "list") ~= nil then
  10.         singularity_count = modem.callRemote(singularity, "list")[2]["count"]
  11.     end
  12.     if ender_dust_count > 65 and singularity_count > 65 then
  13.         redstone.setOutput("top", false)
  14.         redstone.setOutput("left", true)
  15.     else
  16.         redstone.setOutput("top", true)
  17.         redstone.setOutput("left", false)
  18.     end
  19. end
RAW Paste Data Copied