Advertisement
emiellr

storageMain

Jul 5th, 2022
802
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None
  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
RAW Paste Data Copied
Advertisement