3 posts
Posted 21 February 2015 - 10:26 PM
.
Edited on 08 July 2018 - 12:38 PM
3057 posts
Location
United States of America
Posted 21 February 2015 - 10:32 PM
No. There is no way of identifying a person with plain cc, with the possible exception of command computers in 1.7 (Can they do this?).
You can identify people with a player detector, from MoarPeripherals.
3 posts
Posted 21 February 2015 - 10:52 PM
.
Edited on 08 July 2018 - 12:39 PM
7083 posts
Location
Tasmania (AU)
Posted 21 February 2015 - 11:31 PM
… with the possible exception of command computers in 1.7 (Can they do this?).
Nope. There's a MineCraft command which returns the usernames of all players online, but Command Computers don't return string output from commands - only the boolean success values (eg, you can't use "seed" to do anything useful).
In any case, that wouldn't give you any clue as to which user was directly interacting with the system (unless only one player was online…).
One way to make such a door in vanilla ComputerCraft is to set up a rolling key system on a pocket computer, similar to a RL garage door opener.
With certain peripheral mods (eg
OpenCCSensors), you can detect players and get all sorts of information about them.
23 posts
Posted 23 February 2015 - 11:19 AM
Wait, seriously? We get a computer dedicated to interacting with the server via commands, and we still can't use them to read information? I though that was the entire point of introducing them.
7083 posts
Location
Tasmania (AU)
Posted 23 February 2015 - 11:44 AM
Sorry, forgot to mention - the player-listing command I was talking about is for MC 1.8. I was sure I'd written that…
In any case, a CC 1.71 build has just been released to add the string-reading functionality. I've not had an opportunity to test it as yet, but it'll hopefully open up some interesting capabilities.
23 posts
Posted 23 February 2015 - 07:03 PM
Aaand now it's fixed. I can't complain about their timing.