mojira.dev
MC-113525

Shift right clicking on a mob spawner with a spawn egg does not spawn the mob

The bug

When I sneak+place a spawn egg on a mob spawner, the mob is placed in the spawner rather than spawning it next to the spawner. This means you are unable to spawn a mob while looking at a spawner without changing the entity to be spawned.

What I expected to happen

The mob would spawn next to the spawner (

[media]

)

What happened

The mob was placed in the spawner (

[media]

)

How to reproduce

  1. Place a mob spawner

  2. Get a spawn egg

  3. Sneak+place your spawn egg on the spawner

Linked issues

Attachments

Comments 14

That is exactly what is supposed to happen.
When you right click a spawn egg on a spawner cage it resets the spawner to spawn that type of mob. It does not instantly spawn said mob. Unless conditions are correct for the spawner cage to spawn, you will see nothing but the spinning mob displayed.

In order for a spawner to spawn mobs, it must be below light level 8 and will spawn most frequently at light level 0.

So if you go back to that spot and "/time set night" you should get (nearly) instant spawn of your mobs.

Please reopen, this is a valid report.

Shift clicking should prevent interaction with the block but instead use the item in hand. Otherwise there is no way to spawn an entity while looking at a spawner without changing the entity to be spawned.

Yes. Right clicking without shift should update the mob in the spawner but right clicking with shift shouldn't do any interaction.

Confirmed (Was gonna report this, but this is open). Just made one command for custom craftable spawners, and can't use the spawn egg (which I execute a setblock on to place the mob spawner than killing the mob) to place a new spawner without having a normal block near it.

Confirmed still for 17w16a

4 more comments

Can confirm in 21w05b.

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w08b.

Can confirm in 21w17a.

Can confirm in 1.19.4 Pre-release 1.

pfg

(Unassigned)

Confirmed

Game Events

shift, shift-click, spawn-egg, spawner, use-item

Minecraft 1.8.1, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w16a, Minecraft 1.12.2, ..., 21w08b, 21w17a, 1.19.4 Pre-release 1, 1.20.3, 1.20.4

Retrieved