mojira.dev
MC-31115

Fields needing a "short" tag are ignored when used in commands such as /setblock [nevermind : seems intended]

I'm not sure if I'm the one doing something wrong, but everytime I tried to use a field that require a short tag, it seems ignored while the rest work just fine.

Here is an exemple :

setblock ~ ~ ~ minecraft:mob_spawner 0 destroy {
    MaxSpawnDelay:1,
    RequiredPlayerRange:1,
    EntityId:Creeper,
    SpawnData:
        {
        powered:0
        },
    SpawnPotentials:[
        {
        Type:Creeper,
        Weight:2,
        Properties:
            {
            powered:0
            }
        },
        {
        Type:Creeper,
        Weight:1,
        Properties:
            {
            powered:1
            }
        }
    ]
}

Note : Since the chat can't handle more than 256 characters, you have to put this code into a command block and activate it with redstone to make it work.

This code is supposed to replace the command block by a custom spawner which spawn at first a normal creeper
(because of "EntityId:Creeper" and "SpawnData:{powered:0}") and then randomly a normal or a charged creeper with weights of 2 and 1 respectively.

This part works fine but "RequiredPlayerRange:1" and " MaxSpawnDelay:1" seem ignored : the spawner keeps its normal range of activation and the delay between each spawning is default.

Linked issues

Comments 5

If you want to use the tag "RequiredPlayerRange" you must write the "MaxNearbyEntities" tag too. It's the same things for the " MaxSpawnDelay", you must write the "MinSpawnDelay".
Both of these tags are linked, they are ignored if their counterpart is not specified.

It ... works ! ... Well, nevermind, then 🙂.
How do I inform the moderators about this ? 😛

This still does not work, unfortunately. I'm trying to create a map that re-creates the Siege of Helms Deep from Lord of the Rings, and my Orc spawners aren't detecting the player when they are inside the range, even though I have both the "RequiredPlayerRange" and "MaxNearbyEntities" in the same command.

This is my code: /setblock ~0 ~1 ~0 mob_spawner 0 replace {SpawnData:{HandItems:[{Count:1,id:iron_axe,tag:{Unbreakable:1,display:{Name:Orc Axe,Lore:[Orc Set Piece 1]},ench:[{id:16,lvl:1}]}},{}],ArmorItems:[{Count:1,id:iron_boots,tag:{Unbreakable:1,display:{Name:Orc Boots,Lore:[Orc Set Piece 5]},ench:[{id:3,lvl:1},{id:0,lvl:2}]}},{Count:1,id:iron_leggings,tag:{Unbreakable:1,display:{Name:Orc Leggings,Lore:[Orc Set Piece 4]},ench:[{id:3,lvl:1},{id:0,lvl:2}]}},{Count:1,id:iron_chestplate,tag:{Unbreakable:1,display:{Name:Orc Chestpiece,Lore:[Orc Set Piece 3]},ench:[{id:3,lvl:1},{id:0,lvl:2}]}},{Count:1,id:iron_helmet,tag:{Unbreakable:1,display:{Name:Orc Helmet,Lore:[Orc Set Piece 2]},ench:[{id:3,lvl:1},{id:0,lvl:2}]}}],CustomName:Orc,CustomNameVisible:1,Attributes:[{Name:generic.attackDamage,Base:3},{Name:generic.followRange,Base:80},{Name:zombie.spawnReinforcements,Base:0.1F}],HandDropChances:[0.2F,0.0F],ArmorDropChances:[0.1F,0.1F,0.1F,0.1F],Silent:1,PersistenceRequired:1,Health:25.0f,id:Zombie},SpawnCount:1,SpawnRange:2,maxNearbyEntities:10,requiredPlayerRange:200,Delay:10,MinSpawnDelay:40,MaxSpawnDelay:80}

@@unknown All tags are case-sensitive; it must be MaxNearbyEntities and RequiredPlayerRange, not maxNearbyEntities and requiredPlayerRange.

Thanks, it's working now.

Missingno_26

(Unassigned)

Unconfirmed

Minecraft 13w37b, Minecraft 13w38b, Minecraft 13w38c, Minecraft 13w39a, Minecraft 13w39b

Retrieved