PneumaticCraft: Repressurized

PneumaticCraft: Repressurized

43M Downloads

Entity detection with universal sensor ignores area set with gps tool

johalun opened this issue ยท 3 comments

commented

Describe the bug

The universal sensor ignores the area set by a gps tool and detects entities with it's normal range, as if the gps tool is not used.

How to reproduce the bug

Setup a universal sensor with entity tracker upgrade. Set it to detect players. Use a gps area tool to set an area with the range of the sensor and insert into to sensor. Move within the range of the sensor but outside the area set by the gps tool.

Expected behavior

The sensor should output redstone only if the player is within the area specified by the gps area tool when the gps area tool is present in the sensor.

Additional details

No response

Which Minecraft version are you using?

1.19

Which version of PneumaticCraft: Repressurized are you using?

4.3.4-24

Crash log

No response

commented

Actually not a bug. Entity sensors have never used GPS tools to set the bounding box. Fundamentally it's an issue of how entities can be queried within arbitrary-shaped areas (as GPS area tools allow defining) - it's actually very difficult to do.

Adding support for simple cubic areas might be an option in future, but it needs a major rewrite of how the Universal Sensor handles the concept of areas. So not likely to happen for 1.19.2, sorry.

commented

Fair enough, but what is then the purpose of the GPS tool slot in the UI? Never mind, I realize there are some other functionality that uses the GPS like block state detection.

commented

Yep, it's for blocks.