This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
SquidDev's profile picture

[CC 1.7][SSP] Command Computers can be destroyed

Started by SquidDev, 18 February 2015 - 05:52 PM
SquidDev #1
Posted 18 February 2015 - 06:52 PM
I was doing some work with command computers and I noticed some potential issues with them in single player regarding abuse. These may be indented, but could lead to abuse:
  • Normal players can break command computers
  • Creepers, TNT, Wither boss and the Ender dragon can break command computers
  • They can still be wrapped as a peripheral - so can be turned off.
This could lead to them being destroyed, and so not being able to fulfil their function. I guess most command computers are going to be inaccessible (enclosed in bedrock, essentials protected) so this isn't a major issue.
Cranium #2
Posted 18 February 2015 - 07:09 PM
I do believe this is intended behavior
SquidDev #3
Posted 19 February 2015 - 12:09 PM
Ah OK. I was just wondering as normal command blocks cannot be destroyed.
I'm not complaining as I ended up having to destroy one with TNT after a rather stupid mistake of mine.
Edited on 19 February 2015 - 11:10 AM
Bomb Bloke #4
Posted 19 February 2015 - 12:12 PM
Er, what sort of mistake would force that?
SquidDev #5
Posted 19 February 2015 - 12:35 PM
Er, what sort of mistake would force that?

while true do commands.exec("tp @p[r=30] ~ ~30 ~") end

At least it made a nice sphere of where I could go. I ended up having to /summon PrimedTNT.
Edited on 19 February 2015 - 11:35 AM
Bomb Bloke #6
Posted 19 February 2015 - 01:41 PM
Or you could've used setblock. Really I can't see any benefit in allowing anyone without op rights being able to take 'em out, but plenty of drawbacks come to mind…
dan200 #7
Posted 25 February 2015 - 04:39 PM
This is a good suggestion, I hadn't realised command blocks were unbreakable. I've fixed this for the next version, whenever that is.