Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("ocs/apis/sensor")
- local s = sensor.wrap("back")
- function getUUAmount(target)
- local amount = 0
- local details = s.getTargetDetails(target)
- for _,content in pairs(details.Slots) do
- if content.Name == "UU-Matter" then
- amount = amount + content.Size
- end
- end
- return amount
- end
- print(getUUAmount("-1,0,-1"))
- if getUUAmount("-1,0,-1") >= 256 then
- print("Du hast genug UU")
- else
- print("Bitte gebe genug UU in Der chest")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement