Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local crafter_side = "back"
- local hammer_found_status = "right"
- local redstone_output = "front"
- local inv = peripheral.wrap(crafter_side)
- local hammer_name = "alltheores:copper_ore_hammer"
- while true do
- local found = false
- for slot,item in pairs(inv.list()) do
- if item.name == hammer_name then
- found = true
- redstone.setOutput(hammer_found_status,true)
- redstone.setOutput(redstone_output,false)
- end
- if found == false then
- redstone.setOutput(hammer_found_status,false)
- redstone.setOutput(redstone_output,true)
- end
- end
- end
Add Comment
Please, Sign In to add comment