Difference between revisions of "OpenCCSensors"
From ComputerCraft Wiki
(Created the page + some basic info + some sensordata + some examples (for Mikee)) |
|||
Line 24: | Line 24: | ||
<tr><td colspan="2" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #D3FFC2; line-height:28px;"> | <tr><td colspan="2" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #D3FFC2; line-height:28px;"> | ||
[[File:Grid_disk.png|24px]] | [[File:Grid_disk.png|24px]] | ||
− | OpenCCSensors Sensor | + | OpenCCSensors Sensor Cards |
</td></tr> | </td></tr> | ||
Line 30: | Line 30: | ||
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Inventory Sensorcard</td> | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Inventory Sensorcard</td> | ||
− | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The Inventory Sensorcard is capable of reading inventories of players and entities (as well as armour slots).</td></tr> | + | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The Inventory Sensorcard is capable of reading inventories of players and entities (as well as armour slots). |
+ | |||
+ | {{Crafting grid | ||
+ | |A1=Redstone |B1=wood_plank |C1=Redstone | ||
+ | |A2=Redstone |B2=Redstone |C2=Redstone | ||
+ | |A3=Paper |B3=Paper |C3=Paper | ||
+ | |Output=Inventory Sensorcard | ||
+ | }} | ||
+ | </td></tr> | ||
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Proximity Sensorcard</td> | <tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Proximity Sensorcard</td> | ||
− | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The Proximity Sensorcard is capable of detecting players and entities within it's range.</td></tr> | + | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The Proximity Sensorcard is capable of detecting players and entities within it's range. |
+ | |||
+ | {{Crafting grid | ||
+ | |A1=Redstone |B1=pressure_plate |C1=Redstone | ||
+ | |A2=Redstone |B2=Redstone |C2=Redstone | ||
+ | |A3=Paper |B3=Paper |C3=Paper | ||
+ | |Output=Proximity Sensorcard | ||
+ | }} | ||
+ | </td></tr> | ||
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">IndustrialCraft 2 Sensorcard</td> | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">IndustrialCraft 2 Sensorcard</td> | ||
− | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The IndustrialCraft 2 Sensorcard is capable of interfacing and reading IC2 machine values (eg, EU in storage, etc).</td></tr> | + | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The IndustrialCraft 2 Sensorcard is capable of interfacing and reading IC2 machine values (eg, EU in storage, etc). |
+ | |||
+ | {{Crafting grid | ||
+ | |A1=Redstone |B1=copper_cable|C1=Redstone | ||
+ | |A2=Redstone |B2=Redstone |C2=Redstone | ||
+ | |A3=Paper |B3=Paper |C3=Paper | ||
+ | |Output=Inventory Sensorcard | ||
+ | }} | ||
+ | </td></tr> | ||
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">BuildCraft Sensorcard</td> | <tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">BuildCraft Sensorcard</td> | ||
− | <td style="border-top: solid #C9C9C9 1px; padding: .4em;"></td></tr> | + | <td style="border-top: solid #C9C9C9 1px; padding: .4em;"> |
+ | |||
+ | {{Crafting grid | ||
+ | |A1=Redstone |B1=lever |C1=Redstone | ||
+ | |A2=Redstone |B2=Redstone |C2=Redstone | ||
+ | |A3=Paper |B3=Paper |C3=Paper | ||
+ | |Output=Buildcraft Sensorcard | ||
+ | }} | ||
+ | </td></tr> | ||
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Liquid Sensorcard</td> | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Liquid Sensorcard</td> | ||
− | <td style="border-top: solid #C9C9C9 1px; padding: .4em;"></td></tr> | + | <td style="border-top: solid #C9C9C9 1px; padding: .4em;"> |
+ | |||
+ | {{Crafting grid | ||
+ | |A1=Redstone |B1=water_bucket |C1=Redstone | ||
+ | |A2=Redstone |B2=Redstone |C2=Redstone | ||
+ | |A3=Paper |B3=Paper |C3=Paper | ||
+ | |Output=Liquid Sensorcard | ||
+ | }} | ||
+ | </td></tr> | ||
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">World Sensorcard</td> | <tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">World Sensorcard</td> | ||
− | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The World Sensorcard is able to tell the time, weather, and more about the world.</td></tr> | + | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The World Sensorcard is able to tell the time, weather, and more about the world. |
+ | |||
+ | {{Crafting grid | ||
+ | |A1=Redstone |B1=ender_pearl |C1=Redstone | ||
+ | |A2=Redstone |B2=Redstone |C2=Redstone | ||
+ | |A3=Paper |B3=Paper |C3=Paper | ||
+ | |Output=World Sensorcard | ||
+ | }} | ||
+ | </td></tr> | ||
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Dropped Item Sensorcard</td> | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Dropped Item Sensorcard</td> | ||
− | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The Dropped Item Sensorcard is able to locate and identify dropped items.</td></tr> | + | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The Dropped Item Sensorcard is able to locate and identify dropped items. |
+ | |||
+ | {{Crafting grid | ||
+ | |A1=Redstone |B1=slime_ball |C1=Redstone | ||
+ | |A2=Redstone |B2=Redstone |C2=Redstone | ||
+ | |A3=Paper |B3=Paper |C3=Paper | ||
+ | |Output=Dropped Item Sensorcard | ||
+ | }} | ||
+ | </td></tr> | ||
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Sign Sensorcard</td> | <tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;">Sign Sensorcard</td> | ||
− | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The Sign Sensorcard is capable of reading signs within it's range.</td></tr> | + | <td style="border-top: solid #C9C9C9 1px; padding: .4em;">The Sign Sensorcard is capable of reading signs within it's range. |
+ | |||
+ | {{Crafting grid | ||
+ | |A1=Redstone |B1=sign|C1=Redstone | ||
+ | |A2=Redstone |B2=Redstone |C2=Redstone | ||
+ | |A3=Paper |B3=Paper |C3=Paper | ||
+ | |Output=Sign Sensorcard | ||
+ | }} | ||
+ | </td></tr> | ||
</table> | </table> |
Revision as of 01:10, 31 December 2012
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!
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 |
Inventory Sensorcard | The Inventory Sensorcard is capable of reading inventories of players and entities (as well as armour slots).
|
Proximity Sensorcard | The Proximity Sensorcard is capable of detecting players and entities within it's range.
|
IndustrialCraft 2 Sensorcard | The IndustrialCraft 2 Sensorcard is capable of interfacing and reading IC2 machine values (eg, EU in storage, etc).
|
BuildCraft Sensorcard |
|
Liquid Sensorcard |
|
World Sensorcard | The World Sensorcard is able to tell the time, weather, and more about the world.
|
Dropped Item Sensorcard | The Dropped Item Sensorcard is able to locate and identify dropped items.
|
Sign Sensorcard | The Sign Sensorcard is capable of reading signs within it's range.
|
Usage Examples