Advertisement
Ignius12

testing

Aug 12th, 2022 (edited)
780
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local mon = peripheral.find("monitor")
  2. local furnaces = {peripheral.find("minecraft:furnace")}
  3. local chests = {peripheral.find("minecraft:chest")}
  4. local fuel = {"minecraft:coal", "minecraft:coal_block", "minecraft:oak_log", "minecraft:jungle_log", "minecraft:charcoal"}
  5.  
  6.  
  7. function refuel()
  8. fuelChest = furnaces[1]
  9. tarFur = furnaces[2]
  10. print(peripheral.getName(fuelChest))
  11. print(peripheral.getName(tarFur))
  12. tarFur.pushItems(peripheral.getName(fuelChest), 2)
  13.  
  14. end
  15.  
  16. refuel()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement