Mojira Archive
MC-42131

Mob Spawner NBT tag "RequiredPlayerRange" doesn't work

Well I was creating custom mob spawners using command blocks and it was going great. I really love all the options and variety you can get out of them. Anyway, the only thing that didn't work was "RequiredPlayerRange". I was trying to create a spawner that only had a 3 block range so you'd have to walk immediately beside the glass wall it was behind to get it to activate. But it was staying at the default (16 I think). I even opened the level up on an external map editor to eyeball the current values and sure enough everything I set was what it was supposed to be except RequiredPlayerRange. I can change it with that map editor so I'm alright but it still needs fixing. And yes, I was exact about the spelling of RequiredPlayerRange. I must've eyeballed that code for small spelling mistakes 10 times before giving up and admitting it wasn't a mistake on my end.

Steps to Reproduce:
On a single player map with cheats enabled and creative on, give yourself a Command Block ("/give @p 137"), set it down, and program the following code:
/setblock ~0 ~0 ~-3 mob_spawner 0 replace

{EntityId:Blaze,SpawnRange:2,MinSpawnDelay:100,MaxSpawnDelay:200,SpawnCount:4,RequiredPlayerRange:3}

Only the last of those tags matters of course but I thought I should include the exact code I used just in case there's something I've overlooked.

Duplicate

Tokes

2013-12-13, 10:36 AM

2017-12-30, 12:13 AM

2014-02-24, 09:02 AM

3

1

Unconfirmed

command_block, spawner

Minecraft 1.7.2

-