mojira.dev
MC-273635

Trial spawners forget their designated mob when placed by player out of creative mode, assigned by spawn eggs

How to reproduce:

  1. Create a new world in creative mode.

  2. Get a trial spawner and a spawn egg of your choice.

  3. Place down the trial spawner, right click the block with the spawn egg.

  4. Change into survival mode.

  5. Kill the mobs spawned by trial spawner.

  6. Wait until the recharge time is over.

  7. Execute /data get block <coordinates> <of> <trial spawner>.

Observed result:
You will notice that the spawner will turn its block state into "waiting_for_player" for a quick moment before going on inactive again.
You will see that the trial spawner's entry for mob to spawn is empty.
The same applies when the block is placed with /setblock or /fill.

Expected result:
The trial spawner does not forget its designated mob

Video documenting the steps to replicate this bug

Linked issues

Comments 3

Curently this issue can be worked around by using commands on the placed block such as "/data modify block ~ ~-1 ~ normal_config.spawn_potentials set value [{data:{entity:{id:"minecraft:spider"}},weight:1}]". this bug is spawn egg specific

 

This is happening to me in Bedrock Edition as well.

wostramock

(Unassigned)

1263325

Confirmed

Expansion B

(Unassigned)

spawn_egg, trial-spawner

1.21

24w45a

Retrieved