-
Bug
-
Resolution: Fixed
-
1.20, 1.20.1 Release Candidate 1, 1.20.1, 1.20.4, 23w51b, 24w03b, 24w05b, 24w13a, 24w14a
-
None
-
Confirmed
-
Commands
-
Low
-
Platform
The Bug
The sub-command of /execute "on target" can select a mob that chasing/attacking by another mob, but it's ineffective for hoglins and zoglins.
Steps to Reproduce:
- Build a pillar to avoid being attacked by mobs.
- Summon a piglin brute below the pillar and fly onto the pillar and change you gamamode to survival, make the piglin brute try to attack you but can't reach you.
- Run this command.
/execute as @e[type=minecraft:piglin_brute,limit=1,sort=nearest] on target at @s run particle lava ~ ~ ~ 0 0 0 0 100
→ There will appear some lava particle on you, because the target of the piglin brute is you.
- Summon a hoglin below the pillar and fly onto the pillar and change you gamamode to survival, make the hoglin try to attack you but can't reach you.
→ The hoglin find you and try to attack you, - Run this command.
/execute as @e[type=minecraft:hoglin,limit=1,sort=nearest] on target at @s run particle lava ~ ~ ~ 0 0 0 0 100
-> It nothing happened, even if the target of the hoglin is you, but this issue don't happen to most mobs
- is duplicated by
-
MC-263654 on target issue
- Resolved
- relates to
-
MC-269650 Goats do not target the entity they want to ram
- Reopened
-
MC-264456 Entity targeted by frogs and axolotls can't be detected by /execute on target
- Resolved
-
MC-269192 Breeze is not affected by the 'execute on target' command
- Resolved
-
MC-270933 Evokers do not target the sheep they want to dye
- Resolved