OpenMods / OpenPeripheral-Addons

An addon for OpenPeripheral, adding physical blocks and items to the game
MIT License
11 stars 10 forks source link

Add two new features to the Sensor peripheral #90

Closed DeviousNull closed 7 years ago

DeviousNull commented 7 years ago

1:

A new lua-accessible function 'sonicScanTarget(int,int,int)', which is simmilar to 'sonicScan()' except it only returns data for a single block.

2:

The data returned by 'sonicScan()' and 'sonicScanTarget(int,int,int)' now includes map-color information about blocks. The color is provided as a single hexadecimal character as listed on the CC Wiki.

boq commented 7 years ago

Looks good, I will merge tomorrow.

DeviousNull commented 7 years ago

The new commits I've added to this pull request depend on OpenModsLib#63.

Please let me know if you would like me to make any more changes.