distance_to_nearest_player filter does not work
The following behaviour code for a custom entity results in the behaviour as shown in the attached video. The distance_to_nearest_player filter returns true regardless of the operator and value. As well as the <= and > operators, I attempted to use most other operators that should return false, but to no success.
"component_groups": { "cyd:no_player": { "minecraft:environment_sensor": [{ "filters": { "test": "distance_to_nearest_player", "operator": "<=", "value": "5.0" }, "event": "player" }], "minecraft:scale": { "value": 1 } }, "cyd:player": { "minecraft:environment_sensor": [{ "filters": { "test": "distance_to_nearest_player", "operator": ">", "value": "5.0" }, "event": "no_player" }], "minecraft:scale": { "value": 3 } }
2019-06-20, 05:12 PM
2019-09-20, 03:34 PM
2019-09-20, 03:34 PM
0
1
-