Advertisement
emiellr

storageMain

Jul 5th, 2022
887
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local chest = require("chest")
  2. local accessor = require("accessor")
  3.  
  4. accessor = accessor.new()
  5.  
  6. --[[ Setting the number of chests ]]--
  7. print("Give number of chests: ")
  8. accessor.setChestCount(8)
  9.  
  10. for i = 1, accessor.getChestCount() do
  11.     accessor.addChest(chest.new(i-1, "", math.random(0,64)))
  12. end
  13.  
  14. accessor:printChests()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement