"targeted_entity" in predicates does not work for Hoglins and Zoglins
The bug
Using the targeted_entity parameter in an entity_properties predicate condition does not work for Hoglins and Zoglins. The parameter can be used with other mobs without issues.
Here are examples of affected predicates:
{
"condition": "entity_properties",
"entity": "this",
"predicate": {
"type": "hoglin",
"targeted_entity": {}
}
}
{
"condition": "entity_properties",
"entity": "this",
"predicate": {
"type": "zoglin",
"targeted_entity": {}
}
}
How to reproduce
- Install the data pack below in a world for easier reproduction.
- Use the following command to give yourself a customized Name Tag:
/give @s name_tag{display:{Name:'{"text":"targeted_entity","italic":false}'}} - Use the customized Name Tag on a different mob such as a Zombie, and then make it attack another mob.
→
That mob shows dust particles. - Use the same Name Tag on a Hoglin or Zoglin, and then repeat the same procedure.
→
The Hoglin or Zoglin does not show dust particles.
- Unresolved
user-a4a49
- 15
- 9
- Confirmed
Low
- Platform
- Data Packs
- data-pack datapack hoglin targeted-entity zoglin
20w21a - 21w42a
20w21a 20w22a 1.16-pre1 1.16-pre2 1.16-pre3 1.16-pre4 1.16-pre5 1.16-pre6 1.16-pre7 1.16-pre8 1.16-rc1 1.16 1.16.1 20w27a 20w28a 20w29a 20w30a 1.16.2-pre1 1.16.2-pre2 1.16.2-pre3 1.16.2-rc1 1.16.2-rc2 1.16.2 1.16.3-rc1 1.16.3 1.16.4-pre1 1.16.4-pre2 1.16.4-rc1 1.16.4 20w45a 20w46a 20w48a 20w49a 20w51a 21w03a 1.16.5-rc1 1.16.5 21w05a 21w05b 21w06a 21w07a 21w08a 21w08b 21w10a 21w11a 21w13a 21w14a 21w15a 21w16a 21w17a 21w18a 21w19a 21w20a 1.17-pre1 1.17-pre2 1.17-pre4 1.17-rc1 1.17-rc2 1.17 1.17.1-pre1 1.17.1 21w39a 21w41a 21w42a
Created Issue:
"targeted_entity" in predicates does not work for Hoglins and Zoglins
The bug
Using the targeted_entity parameter in an entity_properties predicate condition does not work for Hoglins and Zoglins. The parameter can be used with other mobs without issues.
How to reproduce
- Download and install the data pack below for easier reproduction.
- Use the following command to give yourself a customized Name Tag:
give @s name_tag{display:{Name:'{"text":"targeted_entity","italic":false}'}}- Use the customized Name Tag on a different hostile mob such as a Zombie, and then make it attack another mob.
→That mob shows dust particles.
- Use the same Name Tag on a Hoglin or Zoglin, and then repeat the same procedure.
→The Hoglin or Zoglin does not show dust particles.
The bug
Using the targeted_entity parameter in an entity_properties predicate condition does not work for Hoglins and Zoglins. The parameter can be used with other mobs without issues.
How to reproduce
- Download and then install the data pack below for easier reproduction.
- Use the following command to give yourself a customized Name Tag:
give @s name_tag{display:{Name:'{"text":"targeted_entity","italic":false}'}}- Use the customized Name Tag on a different hostile mob such as a Zombie, and then make it attack another mob.
→That mob shows dust particles.
- Use the same Name Tag on a Hoglin or Zoglin, and then repeat the same procedure.
→The Hoglin or Zoglin does not show dust particles.
The bug
Using the targeted_entity parameter in an entity_properties predicate condition does not work for Hoglins and Zoglins. The parameter can be used with other mobs without issues.
How to reproduce
- Download and then install the data pack below for easier reproduction.
- Use the following command to give yourself a customized Name Tag:
give @s name_tag{display:{Name:'{"text":"targeted_entity","italic":false}'}}- Use the customized Name Tag on a different
hostilemob such as a Zombie, and then make it attack another mob.
→That mob shows dust particles.
- Use the same Name Tag on a Hoglin or Zoglin, and then repeat the same procedure.
→The Hoglin or Zoglin does not show dust particles.
The bug
Using the targeted_entity parameter in an entity_properties predicate condition does not work for Hoglins and Zoglins. The parameter can be used with other mobs without issues.
How to reproduce
- Download and then install the data pack below for easier reproduction.
- Use the following command to give yourself a customized Name Tag:
/give @s name_tag{display:{Name:'{"text":"targeted_entity","italic":false}'}}- Use the customized Name Tag on a different mob such as a Zombie, and then make it attack another mob.
→That mob shows dust particles.
- Use the same Name Tag on a Hoglin or Zoglin, and then repeat the same procedure.
→The Hoglin or Zoglin does not show dust particles.
The bug
Using the targeted_entity parameter in an entity_properties predicate condition does not work for Hoglins and Zoglins. The parameter can be used with other mobs without issues.
How to reproduce
- Download and then install the data pack below for easier reproduction.
- Use the following command to give yourself a customized Name Tag:
/give @s name_tag{display:{Name:'{"text":"targeted_entity","italic":false}'}}- Use the customized Name Tag on a different mob such as a Zombie, and then make it attack another mob.
→That mob shows dust particles.
- Use the same Name Tag on a Hoglin or Zoglin, and then repeat the same procedure.
→The Hoglin or Zoglin does not show dust particles.
The bug
Using the targeted_entity parameter in an entity_properties predicate condition does not work for Hoglins and Zoglins. The parameter can be used with other mobs without issues.
Here are examples of affected predicates:
{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "hoglin", "targeted_entity": {} } }{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "zoglin", "targeted_entity": {} } }How to reproduce
- Download and then install the data pack below for easier reproduction.
- Use the following command to give yourself a customized Name Tag:
/give @s name_tag{display:{Name:'{"text":"targeted_entity","italic":false}'}}- Use the customized Name Tag on a different mob such as a Zombie, and then make it attack another mob.
→That mob shows dust particles.
- Use the same Name Tag on a Hoglin or Zoglin, and then repeat the same procedure.
→The Hoglin or Zoglin does not show dust particles.
The bug
Using the targeted_entity parameter in an entity_properties predicate condition does not work for Hoglins and Zoglins. The parameter can be used with other mobs without issues.
Here are examples of affected predicates:
{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "hoglin", "targeted_entity": {} } }{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "zoglin", "targeted_entity": {} } }How to reproduce
- Download and then install the data pack below for easier reproduction.
- Use the following command to give yourself a customized Name Tag:
/give @s name_tag{display:{Name:'{"text":"targeted_entity","italic":false}'}}- Use the customized Name Tag on a different mob such as a Zombie, and then make it attack another mob.
→That mob shows dust particles.
- Use the same Name Tag on a Hoglin or Zoglin, and then repeat the same procedure.
→The Hoglin or Zoglin does not show dust particles.
The bug
Using the targeted_entity parameter in an entity_properties predicate condition does not work for Hoglins and Zoglins. The parameter can be used with other mobs without issues.
Here are examples of affected predicates:
{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "hoglin", "targeted_entity": {} } }{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "zoglin", "targeted_entity": {} } }How to reproduce
- Download and then install the data pack below for easier reproduction.
- Use the following command to give yourself a customized Name Tag:
/give @s name_tag{display:{Name:'{"text":"targeted_entity","italic":false}'}}- Use the customized Name Tag on a different mob such as a Zombie, and then make it attack another mob.
→That mob shows dust particles.
- Use the same Name Tag on a Hoglin or Zoglin, and then repeat the same procedure.
→The Hoglin or Zoglin does not show dust particles.
The bug
Using the targeted_entity parameter in an entity_properties predicate condition does not work for Hoglins and Zoglins. The parameter can be used with other mobs without issues.
Here are examples of affected predicates:
{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "hoglin", "targeted_entity": {} } }{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "zoglin", "targeted_entity": {} } }How to reproduce
- Download and then install the data pack below for easier reproduction
.- Use the following command to give yourself a customized Name Tag:
/give @s name_tag{display:{Name:'{"text":"targeted_entity","italic":false}'}}- Use the customized Name Tag on a different mob such as a Zombie, and then make it attack another mob
.
→That mob shows dust particles
.- Use the same Name Tag on a Hoglin or Zoglin, and then repeat the same procedure
.
→The Hoglin or Zoglin does not show dust particles
.
The bug
Using the targeted_entity parameter in an entity_properties predicate condition does not work for Hoglins and Zoglins. The parameter can be used with other mobs without issues.
Here are examples of affected predicates:
{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "hoglin", "targeted_entity": {} } }{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "zoglin", "targeted_entity": {} } }How to reproduce
- Download and then install the data pack below for easier reproduction.
- Use the following command to give yourself a customized Name Tag:
/give @s name_tag{display:{Name:'{"text":"targeted_entity","italic":false}'}}- Use the customized Name Tag on a different mob such as a Zombie, and then make it attack another mob.
→That mob shows dust particles
- Use the same Name Tag on a Hoglin or Zoglin, and then repeat the same procedure.
→The Hoglin or Zoglin does not show dust particles
The bug
Using the targeted_entity parameter in an entity_properties predicate condition does not work for Hoglins and Zoglins. The parameter can be used with other mobs without issues.
Here are examples of affected predicates:
{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "hoglin", "targeted_entity": {} } }{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "zoglin", "targeted_entity": {} } }How to reproduce
- Download and then install the data pack below for easier reproduction.
- Use the following command to give yourself a customized Name Tag:
/give @s name_tag{display:{Name:'{"text":"targeted_entity","italic":false}'}}- Use the customized Name Tag on a different mob such as a Zombie, and then make it attack another mob.
→That mob shows dust particles.
- Use the same Name Tag on a Hoglin or Zoglin, and then repeat the same procedure.
→The Hoglin or Zoglin does not show dust particles.
The bug
Using the targeted_entity parameter in an entity_properties predicate condition does not work for Hoglins and Zoglins. The parameter can be used with other mobs without issues.
Here are examples of affected predicates:
{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "hoglin", "targeted_entity": {} } }{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "zoglin", "targeted_entity": {} } }How to reproduce
- Download and then install the data pack below for easier reproduction.
- Use the following command to give yourself a customized Name Tag:
/give @s name_tag{display:{Name:'{"text":"targeted_entity","italic":false}'}}- Use the customized Name Tag on a different mob such as a Zombie, and then make it attack another mob.
→That mob shows dust particles.
- Use the same Name Tag on a Hoglin or Zoglin, and then repeat the same procedure.
→The Hoglin or Zoglin does not show dust particles.
"targeted_entity"in predicates does not work for Hoglins and Zoglins
"targeted_entity" in predicates does not work for Hoglins and Zoglins
The bug
Using the targeted_entity parameter in an entity_properties predicate condition does not work for Hoglins and Zoglins. The parameter can be used with other mobs without issues.
Here are examples of affected predicates:
{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "hoglin", "targeted_entity": {} } }{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "zoglin", "targeted_entity": {} } }How to reproduce
Download and then install the data pack below for easier reproduction.- Use the following command to give yourself a customized Name Tag:
/give @s name_tag{display:{Name:'{"text":"targeted_entity","italic":false}'}}- Use the customized Name Tag on a different mob such as a Zombie, and then make it attack another mob.
→That mob shows dust particles.
- Use the same Name Tag on a Hoglin or Zoglin, and then repeat the same procedure.
→The Hoglin or Zoglin does not show dust particles.
The bug
Using the targeted_entity parameter in an entity_properties predicate condition does not work for Hoglins and Zoglins. The parameter can be used with other mobs without issues.
Here are examples of affected predicates:
{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "hoglin", "targeted_entity": {} } }{ "condition": "entity_properties", "entity": "this", "predicate": { "type": "zoglin", "targeted_entity": {} } }How to reproduce
- Install the data pack below in a world for easier reproduction.
- Use the following command to give yourself a customized Name Tag:
/give @s name_tag{display:{Name:'{"text":"targeted_entity","italic":false}'}}- Use the customized Name Tag on a different mob such as a Zombie, and then make it attack another mob.
→That mob shows dust particles.
- Use the same Name Tag on a Hoglin or Zoglin, and then repeat the same procedure.
→The Hoglin or Zoglin does not show dust particles.