mojira.dev
MC-264456

Entity targeted by frogs and axolotls can't be detected by /execute on target

Summary:
Frogs and axolotls don't target the entity they want to attack.

Steps to reproduce:
frog:

  1. 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"}
  1. Spawn a frog.

  2. Spawn the small slime.

axolotl:

/setblock ~ ~-1 ~ repeating_command_block{auto:1b,Command:"/execute as @e[type=minecraft:axolotl] on target run say hi"}
  1. Spawn an axolotl.

  2. 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.

Linked issues

Comments 2

The /setblock commands provided place a blank repeating command

[Mod] EVGENSYPERPRO

gegy

Confirmed

Platform

Low

Commands

1.20.1

1.20.5 Pre-Release 1

Retrieved