Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hive = peripheral.find("blockReader")
- print(hive.getBlockData()["BeeList"])
- if (hive.getBlockData()["BeeList"] ~= nil) then
- print(#hive.getBlockData()["BeeList"]["Inhabitants"])
- bees = hive.getBlockData()["BeeList"]["Inhabitants"]
- for k,v in pairs(bees) do
- print(k, v)
- for key, value in pairs(v) do
- print(key, value)
- end
- print("--------------------------")
- os.sleep(1)
- end
- for k, v in pairs (bees[1]["EntityData"]) do
- print(k, v)
- os.sleep(2)
- end
- else
- print("There is no bees")
- end
- -- for k, v in pairs(hive.getBlockData()["upgrades"]["Items"]) do
- -- print(k, v)
- -- if (k == "BeeList") then
- -- for key, value in pairs(v) do
- -- --print(key, value)
- -- end
- -- end
- -- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement