SirSheepe

asd

Jan 24th, 2018
30
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. function getVolume(self)
  3. return self.x * self.y * self.z
  4. end
  5.  
  6. function countItem(id, damage)
  7. damage = damage or 0
  8. local count = 0
  9. for i = 1, 16 do
  10. local data = turtle.getItemDetail(i)
  11. if data then
  12. if data.name == id and data.damage == damage then
  13. count = count + data.count
  14. end
  15. end
  16. end
  17. return count
  18. end
  19.  
  20.  
  21. local smelterySize = vector.new(24, 24, 24)
  22.  
  23. local minBlocksNeeded = getVolume(smelterySize) - smelterySize.x * 4 - (smelterySize.z - 2) * 4 - (smelterySize.y - 2) * 4
  24. print(minBlocksNeeded)
  25. print("hi")
RAW Paste Data