พิมพ์
/setblock ~ ~ ~ minecraft:mob_spawner 0 replace {SpawnPotentials:[{Type:ชื่อของmobที่จะspawn,Weight:1}]}
ชื่อของmobที่จะspawn เช่น Bat,Blaze,CaveSpider,Cow,Chicken,Creeper,EnderDragon,Enderman,Ghast,Giant,EntityHorse,LavaSlime,
MushroomCow,Ozelot,Pig,PigZombie,Sheep,Silverfish,Skeleton,Slime,Snowman,Spider,Squid,Villager,
VillagerGolem,Witch,WitherBoss,Wolf,Zombie,Arrow,Snowball,Fireball,SmallFireball,ThrownEnderpearl,
ThrownExpBottle,ThrownPotion,WitherSkull,Item,XPOrb,Boat,MinecartRideable,MinecartChest,MinecartFurnace,MinecartSpawner,MinecartTNT,MinecartHopper,MinecartCommandBlock,PrimedTnt,FallingSand,EnderCrystal,
EyeOfEnderSignal,FireworksRocketEntity,ItemFrame,LeashKnot,Painting