Difference between revisions of "OpenCCSensors"
From ComputerCraft Wiki
Line 60: | Line 60: | ||
<tr><td style="width: 350px; background: #E0E0E0; padding: .4em; font-weight:bold;">Name</td><td style="background: #E0E0E0; padding: .4em; font-weight:bold;">Description</td></tr> | <tr><td style="width: 350px; background: #E0E0E0; padding: .4em; font-weight:bold;">Name</td><td style="background: #E0E0E0; padding: .4em; font-weight:bold;">Description</td></tr> | ||
− | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Inventory | + | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Inventory Sensor Card</td> |
− | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The Inventory | + | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The Inventory Sensor Card is capable of reading inventories of players and entities (as well as armour slots). |
{{Crafting grid | {{Crafting grid | ||
Line 67: | Line 67: | ||
|A2=Redstone |B2=Redstone |C2=Redstone | |A2=Redstone |B2=Redstone |C2=Redstone | ||
|A3=paper |B3=paper |C3=paper | |A3=paper |B3=paper |C3=paper | ||
− | |Output=Inventory | + | |Output=Inventory Sensor Card |
}} | }} | ||
</td></tr> | </td></tr> | ||
− | <tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Proximity | + | <tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Proximity Sensor Card</td> |
− | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The Proximity | + | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The Proximity Sensor Card is capable of detecting players and entities within it's range. |
{{Crafting grid | {{Crafting grid | ||
Line 78: | Line 78: | ||
|A2=Redstone |B2=Redstone |C2=Redstone | |A2=Redstone |B2=Redstone |C2=Redstone | ||
|A3=paper |B3=paper |C3=paper | |A3=paper |B3=paper |C3=paper | ||
− | |Output=Proximity | + | |Output=Proximity Sensor Card |
}} | }} | ||
</td></tr> | </td></tr> | ||
− | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Industrial Craft 2 | + | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Industrial Craft 2 Sensor Card</td> |
− | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The IndustrialCraft | + | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The IndustrialCraft Sensor Card is capable of interfacing and reading IC2 machine values (eg, EU in storage, etc). |
{{Crafting grid | {{Crafting grid | ||
Line 89: | Line 89: | ||
|A2=Redstone |B2=Redstone |C2=Redstone | |A2=Redstone |B2=Redstone |C2=Redstone | ||
|A3=paper |B3=paper |C3=paper | |A3=paper |B3=paper |C3=paper | ||
− | |Output=Industrial Craft 2 | + | |Output=Industrial Craft 2 Sensor Card |
}} | }} | ||
</td></tr> | </td></tr> | ||
− | <tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">BuildCraft | + | <tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">BuildCraft Sensor Card</td> |
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"> | <td style="border-top: solid #C9C9C9 1px; padding: .4em;"> | ||
Line 100: | Line 100: | ||
|A2=Redstone |B2=Redstone |C2=Redstone | |A2=Redstone |B2=Redstone |C2=Redstone | ||
|A3=paper |B3=paper |C3=paper | |A3=paper |B3=paper |C3=paper | ||
− | |Output=Buildcraft | + | |Output=Buildcraft Sensor Card |
}} | }} | ||
</td></tr> | </td></tr> | ||
− | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"> | + | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Tank Sensor Card</td> |
<td style="border-top: solid #C9C9C9 1px; padding: .4em;"> | <td style="border-top: solid #C9C9C9 1px; padding: .4em;"> | ||
Line 111: | Line 111: | ||
|A2=Redstone |B2=Redstone |C2=Redstone | |A2=Redstone |B2=Redstone |C2=Redstone | ||
|A3=paper |B3=paper |C3=paper | |A3=paper |B3=paper |C3=paper | ||
− | |Output=Liquid | + | |Output=Liquid Sensor Card |
}} | }} | ||
</td></tr> | </td></tr> | ||
− | <tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">World | + | <tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">World Sensor Card</td> |
− | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The World | + | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The World Sensor Card is able to tell the time, weather, and more about the world. |
{{Crafting grid | {{Crafting grid | ||
Line 122: | Line 122: | ||
|A2=Redstone |B2=Redstone |C2=Redstone | |A2=Redstone |B2=Redstone |C2=Redstone | ||
|A3=paper |B3=paper |C3=paper | |A3=paper |B3=paper |C3=paper | ||
− | |Output=World | + | |Output=World Sensor Card |
}} | }} | ||
</td></tr> | </td></tr> | ||
− | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Dropped Item | + | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Dropped Item Sensor Card</td> |
− | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The Dropped Item | + | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The Dropped Item Sensor Card is able to locate and identify dropped items. |
{{Crafting grid | {{Crafting grid | ||
Line 133: | Line 133: | ||
|A2=Redstone |B2=Redstone |C2=Redstone | |A2=Redstone |B2=Redstone |C2=Redstone | ||
|A3=paper |B3=paper |C3=paper | |A3=paper |B3=paper |C3=paper | ||
− | |Output=Dropped Item | + | |Output=Dropped Item Sensor Card |
}} | }} | ||
</td></tr> | </td></tr> | ||
− | <tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Sign | + | <tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Sign Sensor Card</td> |
− | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The Sign | + | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The Sign Sensor Card is capable of reading signs within it's range. |
{{Crafting grid | {{Crafting grid | ||
Line 144: | Line 144: | ||
|A2=Redstone |B2=Redstone |C2=Redstone | |A2=Redstone |B2=Redstone |C2=Redstone | ||
|A3=paper |B3=paper |C3=paper | |A3=paper |B3=paper |C3=paper | ||
− | |Output=Sign | + | |Output=Sign Sensor Card |
}} | }} | ||
</td></tr> | </td></tr> |
Revision as of 01:16, 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
Method Name | Description |
sensor.wrap(side) | Returns the wrapped sensor on the side specified. |
mySensor.getTargets() | 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. |
mySensor.getTargetDetails(key) | Returns a table of full details for that particular target from the sensor mySensor - where the the "key" is the key returned from getTargets() |
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.
|
Usage Examples