Do you know if they are going to be adding your peripheral to any packs?Hi - it looks like I forgot to post the OpenCCSensors 0.1.5c release here.
0.1.5c has been released for minecraft 1.5.1. Quite a few changes in the release:
Applied Energistics is supported by the Inventory sensor
IndustrialCraft2 is supported by the Power and Machines sensor
Universal Electricity is supported by the power sensor
The inventory sensor will now show details of enchanted books (very handy!)
http://www.computercraft.info/forums2/index.php?/topic/5996-151-cc-152-openccsensors/
Do you know if they are going to be adding your peripheral to any packs?
local radius = 10
local player_nearby = false
local targets = prox_sensor.getTargets( )
for k, v in pairs( targets ) do
if distance( v.Position ) < radius then
local details = prox_sensor.getTargetDetails(k)
if details['Gamemode'] ~= nil then
player_nearby = true
break
end
end
end