How do I Make a "Custom mob spawner block"

Started by ThePiXeL on Sun, 09/20/2020 - 08:23

Topic category: Help with modding (Java Edition)

Last seen on 11:41, 13. Oct 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I Make a "Custom mob spawner block"
Sun, 09/20/2020 - 08:23

Hi I would like to know if its possible to make a custom block that spawns creatures just like a normal spawner. And how. 

Last seen on 20:37, 19. Oct 2020
Joined Jan 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Set its tick speed to the…
Mon, 09/28/2020 - 19:57

Set its tick speed to the number of seconds you want for the delay times 20 (so 30 seconds would be 600 tick speed), then on an Update Tick procedure have it spawn mobs. You can't get it as advanced as Vanilla spawners (they wait a random amount, and spawn the mobs randomly in a certain area, with all sorts of conditions), but you can have it very basic (such as every 30 seconds, spawn 1-4 zombies on top of it).