mojira.dev
MCPE-239332

minecraft:target_nearby_sensor and minecraft:behavior.owner_hurt_target returns an error

When using: minecraft:target_nearby_sensor and Minecraft: behavior.owner_hurt_target, after taming an entity, when an already tamed entity is hit, it starts attacking it, ignoring the taming tag.

how the error occurs, and what is its bug: the mob attacks already tamed entities if a combination is used: taget_nearby_sensor and owner_hurt_target, and with entities that do not use: minecraft:target_nearby_sensor, everything works stably.

reproducing the error:

1, use the code: "minecraft:target_nearby_sensor": {

"must_see": true,

"inside_range": 4,

"outside_range": 5,

"on_inside_range": {

"event": "to_melee",

"target": "self"

},

"on_outside_range": {

"event": "to_ranged",

"target": "self"

}

}

},

"ranged_mode": {

"minecraft:behavior.ranged_attack": {

"priority": 4,

"attack_interval_min": 1,

"attack_interval_max": 3,

"speed_multiplier": 1,

"attack_radius": 15,

"swing": true

},

"minecraft:shooter": {

"def": "minecraft:thrown_trident"

}

},

"melee_mode": {

"minecraft:attack": {

"damage": 3

},

"minecraft:behavior.melee_box_attack": {

"priority": 4,

"can_spread_on_fire": true,

"speed_multiplier": 1,

"track_target": true

}

},

"minecraft:behavior.owner_hurt_target": {

"priority": 3,

"the essence must be tamed."

After hitting

Linked issues

Attachments

Comments 4

Thank you for helping us improve Minecraft! We saved your files:

[media]

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Could you please attach an example addon showcasing the issue?

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

I'm attaching an add-on that demonstrates the problem. To reproduce it, you need to first tame an entity called mcpe:test_mob in the add-on, then feed it an apple, and then tame a wolf. After the wolf's owner hits it, the tamed entity with

[media]

minecraft:target_nearby_sensor will start attacking it, ignoring the taming of the wolf or another entity.

Thank you for your report!
Aftering reviewing your addon, it shows the same issue that we're tracking in MCPE-164588 , so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines -- 💬 Community Support -- 📧 Mojang Support (Technical Issues) -- 📧 Microsoft Support (Account Issues) -- 📓 Project Summary -- ✍️ Feedback and Suggestions -- 📖 Game Wiki

Frosting

(Unassigned)

Unconfirmed

Android

14

26.30.31 Preview

Retrieved