if not term.isColor() then
  print("Advanced computer required")
  error()
end

local sides = peripheral.getNames()
local cloakingCore
for _, side in pairs(sides) do
  os.sleep(0)
  local deviceType = peripheral.getType(side)
  if deviceType == "warpdriveCloakingCore" then
    cloakingCore = peripheral.wrap(side)
  end
end

if cloakingCore == nil or cloakingCore.isInterfaced() ~= true then
  term.setBackgroundColor(colors.red)
  term.setTextColor(colors.white)
  print("No Cloaking core detected")
else
  cloakingCore.enable(false)
  os.sleep(1)
  term.setBackgroundColor(colors.lime)
  term.setTextColor(colors.blue)
  print("Cloaking core is disabled")
end

term.setBackgroundColor(colors.black)
term.setTextColor(colors.white)
print()
