here's a picture of it. left side is the UI right side is the heart of the spawning.
key:
on/off is a redstone condition
wither spawn is a mob counter checking if there's withers in the chambers being killed.
12 skulls? is a inventory condition in which is checks if there's enough skulls to spawn 4 withers.
So now to the CC part of it. I'm using CC as a more informative UI and i plan on using bundled cables with the same color codes as above to display on a monitor with text what is occurring.
redstone cable colors
Purple = Wither (pulses on/off every 10 ticks)
red = off
green = on
yellow = out of witherskulls (pulses on/off every 10 ticks)
I'm trying to get that cordinate with colored redstone cables and bundled cables. to then display the text in the center of the screen.
this also can get complicated as multiple colors can be on at once. such as it just spawned withers, and is out of heads to spawn more. so yellow and purple are both flashing. but, green is also on. indicating that it's currently toggled on.
so i also need it to be able to tell me that withers are being killed, it's out of heads and toggled online all at the same time.
redstone is all setup for it. just the script isn't.
and here's a image of the UI
here is the script to the layout. (wasn't too hard to figure out)
mon = peripheral.wrap("top")
mon.clear()
mon.setTextScale(.7)
mon.setCursorPos(23, 24)
mon.setTextColor(colors.purple)
mon.write("Wither")
mon.setTextColor(colors.white)
mon.write(" Auto Spawner Ver 2.1")
mon.setCursorPos(1, 23)
mon.setTextColor(colors.white)
mon.write("--------------------------------------------------------------------------------------------------------------")
mon.setCursorPos(1, 5)
mon.setTextColor(colors.white)
mon.write("<-")
mon.setTextColor(colors.green)
mon.write(" on")
mon.setTextColor(colors.white)
mon.write("/")
mon.setTextColor(colors.red)
mon.write("off")
mon.setTextColor(colors.purple)
mon.setCursorPos(1, 1)
mon.write("Wither Spawn")
mon.setCursorPos(23, 1)
mon.setTextColor(colors.yellow)
mon.write("Wither Heads")
mon.setCursorPos(50, 1)
mon.setTextColor(colors.red)
mon.write("Off")
mon.setCursorPos(70, 1)
mon.setTextColor(colors.green)
mon.write("On")