emiellr

main.lua

Jul 6th, 2022 (edited)
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. local chest = require("chest")
  2. local menu = require("menu")
  3.  
  4. local menu = menu.new()
  5. menu:run()
  6.  
  7. local chestList = {}
  8. for i=1, 16 do
  9.     chestList[i] = chest.new(i, "", math.random(0, 64))
  10. end
  11.  
  12. chestList[1].item = "minecraft:charcoal"
  13.  
  14.  
  15.  
  16. --[[
  17. for i=1, 16 do
  18.     shell.run("clear")
  19.     print("index: "..chestList[i].index)
  20.     print("item: "..chestList[i].item)
  21.     print("itemCount: "..chestList[i].itemCount)
  22.     sleep(2)
  23. end
  24. ]]--
  25.  
  26. --[[
  27. print("index:\t"..chest1.index)
  28. print("item:\t"..chest1.item)
  29. print("itemCount:\t"..chest1.itemCount)
  30. print("chest x:\t"..chest1.location.x);
  31. print("chest y:\t"..chest1.location.y);
  32. print("chest side:\t"..chest1.location.side);
  33. ]]--
Add Comment
Please, Sign In to add comment