Advertisement
Arkieka

boneBuffer

Oct 4th, 2022 (edited)
864
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. barrel = peripheral.wrap("minecraft:barrel_0")
  2. blockReader = peripheral.wrap("blockReader_0")
  3. mobChest = peripheral.wrap("sophisticatedstorage:chest_0")
  4.  
  5. while true do
  6.     boneBuffer = barrel.getIemDetail(1)
  7.     if boneBuffer == nil then
  8.         for i = 1, i <= mobChest.size() do
  9.             item = mobChest.getIemDetail(i)
  10.             if item then
  11.                 if item.name == "minecraft:bone" then
  12.                     mobChest.pushItems("minecraft:barrel_0", i, 64, 1)
  13.                 end
  14.             end
  15.         end
  16.     end
  17.     sleep(5)
  18. end
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement