Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Output Redstone Signal when ID changes states
- local altar = peripheral.wrap("tealtar_3")
- function getStack() return altar.getStackInSlot(1) end
- function isOrb(stack)
- if stack == nil then return nil end
- if string.find(stack.id, "BloodOrb") then return true end
- return false
- end
- function hasChanged(stack)
- local id = stack.id
- if getStack().id == id then return true end
- return false
- end
- while true do
- sleep(0)
- redstone.setOutput("top", false)
- local stack = getStack()
- print("Stack: "..stack.id)
- if getStack().id ~= stack.id then
- redstone.setOutput("top", true)
- sleep(0.1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement