TransWikia.com

Custom Minecraft 1.8 spawners

Arqade Asked by A user on February 1, 2021

I am working on a minecraft 1.8 server and am trying to make a mob spawner that spawns items. This example:How can I make a spawner that summons Items? works on new versions of minecraft but not on 1.8. It seems that any mob spawners placed down by command blocks don’t work. The following command:

/setblock ~ ~1 ~ mob_spawner 0 replace {SpawnData:{id:zombie},Delay:299}

Creates an empty mob spawner that does not spawn anything. I am using minecraft forge with worldedit but no other mods. How can I fix this?

2 Answers

I don't believe that you can get custom mob spawners in Java Edition and that the only spawners you can get are Pig Spawners. They way you can obtain pig spawners is using the /give command. Example: /give @p 52 1

Answered by darthvader1925 on February 1, 2021

The below code is generated from mcstacker 1.8, 1.9, and 1.10 version. The following code should place a zombie spawner.

/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {EntityId:Zombie,Delay:299}

The next command should place a spawner that spawns diamonds.

/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {EntityId:Item,SpawnData:{Item:{id:diamond,Count:1}},Delay:299}

Try that. The command isn't tested, but mcstacker usually works for me. It may not for you because you are on a server. You can change it with mcstacker. I hope this helps.

Answered by randomuser922 on February 1, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP