[SPIGOT-1065] Monster Spawner disappear after placing in creative, when the item was moved in the inventory Created: 21/Jul/15  Updated: 21/Sep/15  Resolved: 21/Sep/15

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: xGhOsTkiLLeRx Assignee: Unassigned
Resolution: Won't Fix Votes: 1
Labels: mobspawner, monster, monsterspawner, spawner
Environment:

Windows 8.1 x64, Java 7 Update 80, MC 1.8.7



 Description   

If a player is in creative mode and obtains a spawner e.g. via the /give command he can place it down just fine.
However if the spawner is moved in the inventory, it disappears after being placed (the placed block and the item in the inventory).

This does only affect creative mode.
It does occur without any plugins loaded, but does not occur in Vanilla Minecraft 1.8.7.

Additional info
There are two reports suspecting that my plugin SilkSpawners is the culprit, see
https://github.com/timbru31/SilkSpawners/issues/17 and
https://github.com/timbru31/SilkSpawners/issues/19



 Comments   
Comment by Hex [ 21/Sep/15 ]

This isn't a spigot bug. From what I know, it's a Mojang 'feature'.

Comment by Shevchik [ 20/Aug/15 ]

Why only creative? Because creative inventory is totally screwed, client can put anything in it's inventory.

Comment by xGhOsTkiLLeRx [ 19/Aug/15 ]

After a month not even an initial review? That's a poor activity, tbh.

Comment by Dave Goldsmith [ 22/Jul/15 ]

So if there is a creative item filter, why does it not apply to command blocks as well? They do not exhibit the same behavior as the spawners when moved in the inventory.

And the filter, if it exists, does act strangely, since the spawners don't show as being removed from the inventory until the player tries to use them after having moved them in the inventory.

Comment by xGhOsTkiLLeRx [ 22/Jul/15 ]

@Shevchik IMHO this makes no sense.
Why is there such a limit but only in Creative? Shouldn't it be in Survival too? Where's the benefit of limiting the Creative mode items?
Second and most important, why is the filter not working correctly? Why is the filter only working when the item was moved in the inventory, but not when it's obtained via e.g. /give and then placed? Because this scenario works fine.

Can somebody clarify this and/or link to specific code fragments that implement this filter?

Thanks,
Tim

Comment by Shevchik [ 22/Jul/15 ]

This is because of creative item filter. All items that can't be got from creative are removed on inventory interact while in creative

Comment by Dave Goldsmith [ 22/Jul/15 ]

I'm able to reproduce this bug, and I'm not using the SilkSpawners plugin.

It looks like the spawner disappears only if it was moved to an inventory spot that was previously empty or if it was moved to a spot held by an item that can't be placed (sword, shovel, etc.). If it is moved in the inventory so that it replaces a block in a different inventory spot, then when the spawner is placed, the spawner changes to the block that it had replaced in the inventory, and the inventory spot changes to that previous block as well.

Generated at Fri Apr 11 15:51:15 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.