Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("ocs/apis/sensor")
- senI = sensor.wrap("back")
- while true do
- zieleinv = senI.getTargets()
- for k,v in pairs(zieleinv) do
- if v.Name == "Player" then
- details = senI.getTargetDetails(k)
- for i = 1,40 do
- item = details.Inventory[i].Name
- anzahl = details.Inventory[i].Size
- maxanzahl = details.Inventory[i].MaxStack
- if item == "empty" then
- print("123")
- end
- end
- end
- end
- sleep(3)
- end
Add Comment
Please, Sign In to add comment