How it works is it sends a signal to a command computer and it summons a mob. I cannot figure out why it isnt working and I do not get an error on other side.
Command Computer Code
rednet.open("top") while true do local id, msg = rednet.receive() if id == 0 then commands.summon(msg, 1220, 6, 1720) end end
Terminal Code
function clearS() term.setBackgroundColor(colors.white) term.clear() term.setTextColor(colors.blue) term.setCursorPos(1,1) end clearS() print("TechedZombie:Command-OS") while true do inp = read() if inp:lower() == "pig" then commands.summon("Pig", 1220, 8, 1720) elseif inp:lower() == "clear" then term.setBackgroundColor(colors.white) term.clear() else shell.run(inp) end sleep(1) clearS() print("TechedZombie:Command-OS V - Alpha 0.1") end
Thank you!