Difference between revisions of "OpenCCSensors"
From ComputerCraft Wiki
Line 7: | Line 7: | ||
http://www.youtube.com/watch?v=i8Bv7uKkIOM&feature=youtu.be | http://www.youtube.com/watch?v=i8Bv7uKkIOM&feature=youtu.be | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;"> | <table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;"> | ||
Line 47: | Line 27: | ||
|Output=Sensor Peripheral | |Output=Sensor Peripheral | ||
}} | }} | ||
+ | <table style="width: 100%; border-spacing: 0px;"> | ||
+ | |||
+ | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">os.loadAPI("ocs/apis/sensor")</td> | ||
+ | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">Load the sensor API</td></tr> | ||
+ | |||
+ | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">mySensor = sensor.wrap(side)</td> | ||
+ | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">Returns the wrapped sensor on the side specified.</td></tr> | ||
+ | |||
+ | <tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">mySensor.getTargets()</td> | ||
+ | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">Returns a a table of all the targets for mySensor, where the keys are used as a numerical index, and the values are each a table of basic details.</td></tr> | ||
+ | |||
+ | |||
+ | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">mySensor.getTargetDetails(key)</td> | ||
+ | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">Returns a table of full details for that particular target from the sensor mySensor - where the the "key" is the key returned from getTargets()</td></tr> | ||
+ | |||
+ | </table> | ||
</td></tr> | </td></tr> | ||
</table> | </table> |
Revision as of 03:52, 22 January 2013
This page needs some serious TLC, stat! Please help us by cleaning it, fixing it up, or sparing it some love.
(Reason: I no dun with this, but 'tis a start! AfterLifeLochie 03:34, 25 December 2012 (MSK)) |
OpenCCSensors is a new, open-source, up to date replacement for CcSensors (outdated), allowing monitoring and gathering information from the Minecraft environment - including players, entities, proximity, world info, IndustrialCraft 2, BuildCraft 2, liquids, inventories - and more!
OpenCCSensors comes with its own API, and automatically installs a new program for you at /ocs/programs/sensorview. sensorview is a handy program for very quickly looking at the information gathered from your sensors.
http://www.youtube.com/watch?v=i8Bv7uKkIOM&feature=youtu.be
Name | Description | ||||||||
Sensor Peripheral |
The Sensor Peripheral needs to be placed next to a computer and it has a single slot to insert a Sensor Card
|
Name | Description |
Inventory Sensor Card | The Inventory Sensor Card is capable of reading inventories of players and entities (as well as armour slots).
|
Proximity Sensor Card | The Proximity Sensor Card is capable of detecting players and entities within it's range.
|
Industrial Craft 2 Sensor Card | The IndustrialCraft Sensor Card is capable of interfacing and reading IC2 machine values (eg, EU in storage, etc).
|
BuildCraft Sensor Card |
|
Tank Sensor Card |
|
World Sensor Card | The World Sensor Card is able to tell the time, weather, and more about the world.
|
Dropped Item Sensor Card | The Dropped Item Sensor Card is able to locate and identify dropped items.
|
Sign Sensor Card | The Sign Sensor Card is capable of reading signs within it's range.
|
Thaumcraft Sensor Card | The Thaumcraft Card can read XP levels from a "brain in a jar" and read aspect levels from crucibles and jars
|
Minecart Sensor Card | The Minecart Sensor Card can detect minecarts in the area and give basic information about them
|
Usage Examples