1

MobSpawner(Not Working)

214dfsuy754 3/9/22 2:59 pm
165
3/9/2022 6:03 pm
Goal:I wanted to make a spawner that can spawn item.

(https://www.youtube.com/watch?v=IGiQJTBIH1A&t=80s , i did what this Youtuber said)

Command:/give player creeper_spawn_egg{EntityTag:{id:"minecraft:item",Item:{Count:5,id:"diamond"}}} 1




Problem:But when i put that spawn egg inside the spawner , nothing happens , not even a thing is in the spawner.

( Exception loading entity: net.minecraft.ReportedException: Loading entity NBT )

Version(1.18.1)
r/MinecraftCommands - MobSpawner(Not Working)
Posted by
214dfsuy754
Level 1 : New Miner
0

  Have something to say?

JoinSign in

1

sigstop
03/09/2022 6:03 pm
Level 2 : Apprentice Miner
Why don't just go to https://mcstacker.net/ and select setblock, and then fill the form for spawned entity (spawn potentials) as item?
And for your question why its not working on 1.18.1 dunno, maybe (actually it should always be, if you want to do something with nbt) diamond has to be namespaced (minecraft:diamond), or/and Count should have proper type (5b). Again, use mcstacker for generating such tedious commands.
1

Welcome