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

the microsoft hololens

Started by SpencerBeige, 26 June 2015 - 03:58 PM
SpencerBeige #1
Posted 26 June 2015 - 05:58 PM
it would be cool to see someone make microsoft hololens with some sort of mod. does anyone know what mod adds holo glasses?
Cranium #2
Posted 26 June 2015 - 06:37 PM
You can do this with a combination of OpenPeripherals' terminal glasses and command blocks. Terminal glasses for the GUI and command blocks for the head positions.
SpencerBeige #3
Posted 26 June 2015 - 07:07 PM
ok
Bomb Bloke #4
Posted 27 June 2015 - 01:54 AM
… and command blocks for the head positions.

I'm aware you can use command blocks to get player positions, but a method of getting head facings with them escapes me…?

Do you mean sensor peripherals?
Cranium #5
Posted 27 June 2015 - 02:25 AM
I'm aware you can use command blocks to get player positions, but a method of getting head facings with them escapes me…?

Do you mean sensor peripherals?
If I recall, you can use the testfor command to get the NBT info from an entity. I believe the tag you'd want to look for is the two entries in the "Rotation" section.
Bomb Bloke #6
Posted 27 June 2015 - 02:42 AM
Well, yeah, you can, but partial NBT tag matches require MC 1.8. It seems many of the more useful commands do.

That, and a testfor aimed at a specific player effectively only returns a boolean (as the player either matches your test, or does not): even assuming that it allows for greater/lower than checks, given that each call takes the better part of a second, it'd take at least several seconds to figure out facing with any degree of accuracy.
Cranium #7
Posted 27 June 2015 - 02:51 AM
Well, that's disappointing. I was hoping it would be more robust than that. I guess we're gonna have to bug some peripheral developers to add in something like this.
Bomb Bloke #8
Posted 27 June 2015 - 03:07 AM
I'm pretty sure (at least) one of the sensor peripherals already provides the exact head facing of detected players. Their range tends to be a bit low, though.
Luca_S #9
Posted 27 June 2015 - 09:43 AM
I think theres a mod to add sensors to cc that mod can get the player head direction