Summary:
Frogs and axolotls don't target the entity they want to attack.
Steps to reproduce:
frog:
Get a spawn egg using:
/give @p slime_spawn_egg{EntityTag:{Size:0}} 1
/setblock ~ ~-1 ~ repeating_command_block{auto:1b,Command:"/execute as @e[type=minecraft:frog] on target run say hi"}
Spawn a frog.
Spawn the small slime.
axolotl:
/setblock ~ ~-1 ~ repeating_command_block{auto:1b,Command:"/execute as @e[type=minecraft:axolotl] on target run say hi"}
Spawn an axolotl.
Spawn a drowned/tropical fish.
Observed results:
The message "Hi" does not appear in the chat.
Expected results:
Frogs and axolotls will target an entities and the message "Hi" will appear in the chat.
The /setblock commands provided place a blank repeating command