OC Sensors Mod adds a sensor block for OpenComputers that lets computers scan nearby blocks and mobs. Similar to the classic OpenCCSensors mod, this addon gives your computers three scanning methods to inspect block states, search for matching blocks, and check areas for mobs. You can read stored energy, monitor Extra Utilities 2 generators for redstone automation, or check MooFluid cows near your base. It requires OpenComputers to work in your world.

Requires:

Minecraft Forge

OpenComputers Mod

Features:

  • Adds a sensor block for OpenComputers that lets computers scan nearby blocks and mobs, similar to the classic OpenCCSensors mod.
  • Reads data from blocks around the sensor, including block labels, stored energy, max energy capacity, item slots, and fluid tank contents.
  • Filters nearby blocks by name, metadata, data section (such as energy or extrautils2), and search range.
  • Checks Extra Utilities 2 generators for active process time, item levels, and fluid levels so your computer can control redstone output when every generator is ready.
  • Scans a defined 3D region for mobs and reads mod-specific data, such as checking neutral MooFluid cows to list their fluid types like lava or water.

Available Sensor Methods:

  • scan(x:number, y:number, z:number, [side:number]): Scans a block at coordinates relative to the sensor and returns its info and data.
  • search([name:string=""], [meta:number=-1], [section:string=""], [range:number=]): Searches within a given range for blocks that match your name, metadata, or section criteria.
  • searchEntities(x1:number, y1:number, z1:number, x2:number, y2:number, z3:number): Scans a 3D region relative to the sensor to find mobs inside that area.

How to Use:

  1. Load the OpenComputers component API in your Lua script using local component = require('component') and access the sensor with local sensor = component.sensor.
  2. Search for nearby blocks by calling sensor.search(name, meta, section, range); for example, run sensor.search("", -1, "energy") to get the positions of nearby energy blocks or sensor.search("", -1, "extrautils2") to find Extra Utilities 2 generators.
  3. Inspect any found block by calling sensor.scan(pos.x, pos.y, pos.z) to read its details, such as info.block.label, info.data.energy.energyStored, info.data.energy.maxEnergyStored, info.data.items, and info.data.fluid.
  4. Pair the sensor with component.redstone and require("sides") to automate machines; for example, check each Extra Utilities 2 generator’s processTime, items, and fluid tanks, then run redstone.setOutput(sides.back, 15) when all are ready or 0 if any generator is missing supplies.
  5. Scan an area around the sensor for mobs with sensor.searchEntities(-range, -range, -range, range, range, range); for example, set range = 5 and check entity.type == "neutral" and entity.moofluids to print the fluid names of nearby MooFluid cows.

Screenshots:

Minecraft mod list showing installed mods including OpenComputers Sensors
The OpenComputers Sensors addon displayed in the active Forge mod list menu

OC Sensors Mod Download Links

For Minecraft 1.12.2

Forge version: Download from Server 1 – Download from Server 2

For Minecraft 1.10.2

Forge version: Download from Server 1

Click to rate this post!
[Total: 0 Average: 0]
QUICK MINECRAFT SURVEY · ONE TAP
Mods & Modpacks

What is your stance on mods that feel 'overpowered' or break vanilla balance?

20 responses · See the full results →