Change Entity in mob spawner

Started by RogueWorks on Fri, 01/28/2022 - 18:13

Topic category: Help with modding (Java Edition)

Last seen on 18:14, 5. Feb 2022
Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
Last seen on 19:55, 28. May 2022
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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"}}