mojira.dev
MC-69667

/blockdata command not working as expected

/blockdata -108 63 362 {Items:[{Slot:4b,id:minecraft:mob_spawner {EntityId:Zombie,SpawnCount:3,SpawnRange:3,RequiredPlayerRange:30,Delay:5,MaxSpawnDelay:20,MaxNearbyEntities:5},Count:1b}]} or /blockdata -108 63 362 {Items:[{Slot:4b,id:minecraft:mob_spawner,EntityId:Zombie,SpawnCount:3,SpawnRange:3,RequiredPlayerRange:30,Delay:5,MaxSpawnDelay:20,MaxNearbyEntities:5},Count:1b]} or /blockdata -108 63 362 {Items:[{Slot:4b,id:minecraft:mob_spawner,tag:{EntityId:Zombie,SpawnCount:3,SpawnRange:3,RequiredPlayerRange:30,Delay:5,MaxSpawnDelay:20,MaxNearbyEntities:5},Count:1b}]}

are not populating the inv of the drooper,chest,dispencer i have at that position idk if i have the syntax wrong or if the code for a mobspawner is not allowed to be placed into an ivn or what

Comments 1

You have to use first the "tag"-tag and then the "BlockEntityTag"-tag, like this:

/blockdata ~ ~-1 ~ {Items:[{
	Slot:4b,
	id:minecraft:mob_spawner,
	tag:{
		BlockEntityTag:{
			EntityId:Zombie,
			SpawnCount:3,SpawnRange:3,
			RequiredPlayerRange:30,
			Delay:5,
			MaxSpawnDelay:20,
			MaxNearbyEntities:5
		}
	}
	,Count:1b
	}]
}

brian

(Unassigned)

Unconfirmed

Minecraft 1.8-pre2

Retrieved