Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local config = fs.open("ItemRestrictConfig".."w")
- local chest = peripheral.wrap("left")
- local size = chest.getInventorySize()
- config.writeLine("Worlds:")
- config.writeLine("- All")
- config.writeLine("Scanner:")
- config.writeLine(" event:")
- config.writeLine(" - onPlayerJoin: 1")
- config.writeLine(" - onChunkLoad: 0.1")
- config.writeLine("Bans:")
- config.writeLine(" Usage:")
- for x = 1,size do
- local slot = chest.getStackInSlot(x)
- local id = tostring(slot.id)
- local damage = tostring(slot.damage)
- config.writeLine(" - "..id.."-"..damage)
- end
- config.writeLine(" Ownership:")
- for x = 1,size do
- local slot = chest.getStackInSlot(x)
- local id = tostring(slot.id)
- local damage = tostring(slot.damage)
- config.writeLine(" - "..id.."-"..damage)
- end
- config.writeLine(" World:")
- config.writeLine("Messages")
- config.writeLine(" labels:")
- for x = 1,size do
- local slot = chest.getStackInSlot(x)
- local id = tostring(slot.id)
- local damage = tostring(slot.damage)
- local name = tostring(slot.name)
- config.writeLine(" - "..id.."-"..damage..": "..name)
- end
- config.writeLine(" reasons:")
- for x = 1,size do
- local slot = chest.getStackInSlot(x)
- local id = tostring(slot.id)
- local damage = tostring(slot.damage)
- config.writeLine(" - "..id.."-"..damage..": xxx")
- end
- config.close()
Advertisement
Add Comment
Please, Sign In to add comment