If the value is greater than 1.39 for distance_to_nearest_player as the test in a minecraft:damage_sensor, it will not trigger no matter the distance. If less than or equal to it will work as intended.
Steps to reproduce
1. place the JSON below in a player.json.
2. Make a event named 'reach' add a queriable dummy comment that runs /say hi
3. hit another player at different distances.
Observed Results
Does nothing at any distance.
Expected Results
Triggers when the target is greater than 5 blocks from the player.
{
"minecraft:damage_sensor": {
"triggers": [
{
"on_damage": {
"filters": {
"test": "distance_to_nearest_player",
"operator": ">",
"value": 5
},
"event": "reach",
"target": "other"
}
}
]
}
}
Comments 2
Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.
For any account or purchasing related issues, please contact Minecraft Customer Support directly, as we cannot assist with those here at the bug tracker.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki
Resolving temporarily as Awaiting Response. Could you please attach the add-ons you're using to this ticket?