Talk:Monster Spawner

Mob spawners resetting in SMP server (NBTEdit related)
I host a SMP server for me and my friends to play on. Recently I have been using the in-game NBTEdit mod to create custom mob spawners. Everything works fine here. However, every time when I shut down the server and start it up again, those custom mob spawners reset into normal pig spawners. And when I check them with NBTEdit, all my custom tags for the spawners are gone. It would be very frustrating for me to edit those spawners every single time. How can I fix this problem? Is there a way to keep them unchanged after restarting the server? 14.198.117.118 08:08, 22 April 2013 (UTC)


 * The wiki generally doesn't provide support, especially for mod-related issues; you'll get a better response by posting in the relevant forum thread. -- Orthotope 08:25, 22 April 2013 (UTC)

Decompiled source
Aren't you not supposed to distribute Minecraft code? I am not very knowledgeable in this area if the question may seem stupid to you.

--68.187.156.141 02:56, 11 July 2013 (UTC)NFWright

They're not. Pseudo-code is, essentially, just a description of what some code does. It's not Minecraft code.

Lets take for example this example from the Page:

if (spawner delay == -1) {       reset spawner delay }

This is not valid Java, which is what Minecraft is coded in. In Java, your variable names ("spawner delay") can not include spaces. Also, "reset" is not a valid command in Java. There is no indication that it's a defined function in Java because it would take the form of function_name(parameters), so in our example case it would be: reset(spawner_delay) -- of course, after fixing the invalid variable name.--70.185.228.203 12:40, 26 January 2015 (UTC)

hmmm
if you use a silk touch enchantment will you get a monster(I don't mean human) spawner? 99.174.200.114 03:16, 15 July 2013 (UTC)
 * No. Like the article says, a spawner can't be retrieved at all in survival mode.  --Mental Mouse 03:35, 15 July 2013 (UTC)
 * Mental Mouse is right you cant even with a solk touch 127 pick (the ledgends are true!).  LABHOUSE (talk) 22:50, 22 October 2013 (UTC)

Creepers
Why does the article say that naturally spawners will not spawn Creepers? I found a Creeper spawner in a legit vanilla world.--96.227.140.85 03:47, 18 July 2013 (UTC)


 * If you're certain no mods or world editors were involved, post the world seed and coordinates so other people can confirm this. -- Orthotope talk 05:21, 18 July 2013 (UTC)


 * The net seems to insist that creeper spawners used to occur naturally, but we can see from the code that they don't today. I wonder when they were removed, and why? Courtes 09:15, 23 July 2013 (UTC)
 * Who is "the net" that's insisting on this? I seriously doubt there were even creeper spawners in vanilla survival, and certainly not in dungeons.  Besides being OP, there's a little problem that the first time someone goes in there, they'll blow up their own spawner block.  Of course, adventure-mode maps are another story -- there are ways to finess those issues for a non-random map.  --Mental Mouse 10:45, 23 July 2013 (UTC)

Blaze spawners have a glitched active range.
I have confirmed in 1.6.2 on SMP and SSP, that blaze spawners are not always active when within 16 blocks of the spawner block. The cage will light on and spin correctly when in that range, but does not necessarily spawn new mobs. The horizontal range seems to act correctly, but vertical distance is glitched. You need to be about 14.5 blocks below the spawner, or 17.5 blocks above the spawner for it to make new mobs.

It appears that the 16 block radius is shifted focus above the actual spawner. This only affects blazes and I can confirm that my distances are correct, because I used a mini map way-point.--71.185.114.250 15:10, 24 July 2013 (UTC)


 * This bug has been on the tracker for a while now: MC-13381. It seems to me that visual spawner activity (light, spinning) is determined by your head's distance from the spawner block, while its generation of mobs is triggered by your feet being within range (the F3 screen gives you both). Thus, it does kind of matter horizontally (see screenshots in the bug report). Plus, I suspect that this is an issue with every type of spawner; at least it is easily reproducible with a pig spawner in creative single player. It's most annoying with blazes, because of the funnel-shaped XP farm design ... Thilo77 22:55, 22 August 2013 (UTC)

yeah i've noticed that after i've built the grinder - they aren' spawning at 16 blocks below in 1.7.294.143.240.176 12:50, 18 February 2014 (UTC)

The spawning range seems to be 16 blocks from the center of the spawner block, so spawning can only be expected when the player's feet are no more than 15.5 blocks below the bottom of the spawner block. BTW, the bug mentioned above seems to be fixed in current snapshots (14w04a and later) - now the spawner's visual activity and the generation of mobs seem to be consistent (the feet pos, now the only player coordinates available in the F3 screen, triggers both). This doesn't make an actual difference for the generation of mobs, but players are no longer lured into waiting endlessly for blazes (too far) below a visually active blaze spawner. --Thilo77 (talk) 21:41, 21 February 2014 (UTC)

Squids!
How do you get other spawners like squid or Iron Golem? I saw it in a map. Hehe, you need a WorldEdit program like MCEdit. Follow this tutorial: http://www.youtube.com/watch?v=8dRidXHMYRE --NecropoGames 13:36, 16 August 2013 (UTC)

Ender Dragon Spawner
Could someone give me a give or summon command for for a non-hostile, tamed, saddled ender dragon spawner? I'm asking since we can spawn basically any mob spawner with basically any properties according to the page. If there is a way to do this please let me know. Also, if it's possible maybe a command string for the same ender dragon spawner mentioned above with chest equipped like that of a donkey. Please. Brickticks (talk) 21:05, 20 November 2013 (UTC) If it's even possible. Brickticks (talk) 23:42, 20 November 2013 (UTC)


 * Not possible. Only horses (including all variants), wolves, and ocelots can be tame; only horses and pigs can have saddles. Yes, you can spawn other entities with those tags, but the game won't do anything with them. -- Orthotopetalk 02:31, 21 November 2013 (UTC)


 * Oh, OK. Brickticks (talk) 16:16, 2 December 2013 (UTC)

Kinds Of Mobs
Uh I need a little help on how to switch mobs from pigs to well anything just HELP!!!! PLZ!!!!--Hhawa (talk) 17:55, 26 November 2013 (UTC)

Keep in mind this involves replacing the spawners, not changing their tags. Try

Or if you want to keep it simple just replace everything in the brackets with "EntityId:Zombie". Long commands may require using command blocks (which in turn requires creative mode). Also these commands won't replace a block with the same type of block so you need to either pick a new spot or break the pig spawners. 24.68.154.229 07:13, 3 January 2014 (UTC)

Monster spawned on PE
I just got the update and was messing around with monster spawners. If one of the mobs is spawned on top of the spawner, they all will be at that same level. I don't know if this is a bug only on PE or in all of the games. 50.80.134.121 07:11, 11 July 2014 (UTC)

Changes in 1.8
I've heard in a 1.8 review that not only the exclusion zone was reduced, but the spawning zone was also increased to 9x9. --Morenohijazo 21:26, 6 September 2014 (UTC)


 * The exclusion zone was fixed to allow Y values to be set by the range, rather than always being 4. As for the spawning zone, there was a bug fixed that would seem to change that, but it does not seem to be true. --KnightMiner  (t 20:17, 6 September 2014 (UTC)


 * I take that back, in my spawner test area I found zombies within a 9x9 area, it seems that was fully fixed. --KnightMiner  (t 20:25, 6 September 2014 (UTC)
 * The exclusion zone was reduced horizontally from being twice the spawn range to being the same as the spawn range; the Y change came later. The spawning zone was adjusted to be horizontally centered on the center of the block rather than on the northwest corner, so instead of being -4 to +3 (8 blocks) it's -3.5 to +3.5 (still 8 blocks, but "rounds" to 9). Anomie x (talk) 22:12, 6 September 2014 (UTC)

Light
How much light do spawners emit in pocket edition?75.165.49.48 02:02, 28 January 2015 (UTC)

Drops
Monster spawners drop nothing, but the digging table indicates that it does. Experience doesn't count because it is not an item. Besides, you would get much more experience by letting it spawn mobs and killing the mobs.75.165.49.48 02:02, 28 January 2015 (UTC)


 * No, it is correct, just because there are better ways of getting experience does not mean it drops nothing. All the other blocks that drop nothing will yield exactly nothing, not even experience. – KnightMiner  (t·c) 02:15, 28 January 2015 (UTC)

Rename to "Mob Spawner"
I propose the page be renamed to "Mob Spawner" rather than the existing "Monster Spawner", simply because the code easily exists in the game for mob spawners to spawn any sort of mob, not exclusively monsters, while they only appear in the world as monster spawners. –Preceding unsigned comment was added by 73.43.144.74 (talk) at 1:20, 03 March 2015 (UTC). Please sign your posts with


 * We name article based on in game name, and if you either check the .lang file or give yourself one ingame, it displays the name of "Monster Spawner". – KnightMiner  t/c 01:31, 3 March 2015 (UTC)