Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- component = require("component")
- computer = require("computer")
- os = require("os")
- sides = require("sides")
- event = require("event")
- red = component.redstone
- ms = component.motion_sensor
- ic = component.inventory_controller
- cb = component.command_block
- --frontDoor = sides.bottom
- --innerDoor = sides.right
- trash = sides.top
- reqItems = {"hiemal", "depone", "belloc", "recool", "remake", "lierne", "curage", "elohim", "staves", "kabyle"}
- bools = {false, false, false, false, false, false, false, false, false, false}
- artCoin = "Artifice:item.artifice.coin"
- artDmg = 3
- artSize = 1
- --[[
- function frontOpen()
- red.setOutput(frontDoor, 255)
- end
- function frontClose()
- red.setOutput(frontDoor, 0)
- end
- function innerOpen()
- red.setOutput(innerDoor, 255)
- end
- function innerClose()
- red.setOutput(innerDoor, 0)
- end
- --]]
- function emptyChest()
- red.setOutput(trash, 255)
- sleep(10)
- red.setOutput(trash, 0)
- end
- function checkItems()
- local name = {}
- local label = {}
- local size = {}
- local dmg = {}
- for i=1, 27 do
- local item = ic.getStackInSlot(sides.top,i)
- if item == nil then
- item = {"Empty slot"}
- else
- --name[i] = item.name
- label[i] = item.label
- dmg[i] = item.damage
- size[i] = item.size
- --print(name[i], label[i], dmg[i], size[i])
- if dmg[i] == artDmg and size[i] == artSize then
- if label[i] == reqItems[1] then
- bools[1] = true
- elseif label[i] == reqItems[2] then
- bools[2] = true
- elseif label[i] == reqItems[3] then
- bools[3] = true
- elseif label[i] == reqItems[4] then
- bools[4] = true
- elseif label[i] == reqItems[5] then
- bools[5] = true
- elseif label[i] == reqItems[6] then
- bools[6] = true
- elseif label[i] == reqItems[7] then
- bools[7] = true
- elseif label[i] == reqItems[8] then
- bools[8] = true
- elseif label[i] == reqItems[9] then
- bools[9] = true
- elseif label[i] == reqItems[10] then
- bools[10] = true
- end
- end
- end
- end
- end
- function telePlayer(name)
- end
- function reward()
- end
- function reset()
- end
- function instructions()
- end
- function gratsMsg()
- end
- function wrongMsg()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement