cc-tweaked / CC-Tweaked

Just another ComputerCraft fork
https://tweaked.cc
933 stars 211 forks source link

Add ability to use Command Computer in survival mode #442

Closed zmilla93 closed 4 years ago

zmilla93 commented 4 years ago

Suggestion

Currently command computers require a player to be both opped and in creative mode to use command computers. I'd suggest changing this to requiring op only and not creative, perhaps via a config option.

Use Case

I'm currently using CC Tweaked on a private modded survival server with friends where I don't need to worry about people attempting exploits. Command computers add some really cool options like displaying TPS, modifying scoreboard, or reading block NBT data, but having to swap to creative mode when editing a program creates the risk of accidentally deleting items or breaking the computer itself.

Solution

I'm fairly certain the change would be made here, but I'm not familiar enough with Gradle/MC modding in general to want to try making the change myself.

Thanks for updating computercraft!

SquidDev commented 4 years ago

Possibly a duplicate of #325.

zmilla93 commented 4 years ago

Sorry for the duplicate, only checked open issues. Will look into the cloned computer trick.

While I understand the desire for consistency, I'd argue command blocks are generally a map making tool, whereas computercraft is mainly something that will be added to survival worlds. It feels like wasted potential to limit this option to creative only. It is also a somewhat redundant check, as anyone with op has access to creative. By using the config, you'd be able to get the best of both options.