Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local peripheralList = peripheral.getNames()
- print("Seznam připojených zařízení:")
- for i, peripheralName in ipairs(peripheralList) do
- print(i, peripheralName)
- end
- local itemCount = 0
- for i = 1, 16 do
- itemCount = itemCount + turtle.getItemCount(i)
- end
- print("Počet itemů v inventáři nad turtlou: " .. itemCount)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement