Change Entity in mob spawner

Started by RogueWorks on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Change Entity in mob spawner
Fri, 01/28/2022 - 18:14 (edited)

I'm trying to make a spawn egg for Iron golem and i want to right click on a spawner like all spawn eggs and change it's data so it can start spawning iron golems

Edited by RogueWorks on Fri, 01/28/2022 - 18:14
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On block right clicked with…
Fri, 01/28/2022 - 18:20

On block right clicked with item in right hand etc...

Execute command: /data merge block ~ ~ ~ {SpawnData:{id:"minecraft:iron_golem"}}