Solved Won't replace with iron golem spawner

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Williambriggs

Member
Jan 13, 2019
10
0
0
I am trying to make it so when i place a bedrock named Ig spawner it replaces it with an Iron golem spawner. It replaces the bedrock with a pig spawner though. How would i make it so it works?


Code:
on place:
    if event-block is bedrock:
        tool's name = "&7Ig Spawner":
            set nbt-block at event-location to monster spawner with nbt "{SpawnData:{id:minecraft:villager_golem}}"

I figured it out sorry if i wasted time!
 
Last edited:
Status
Not open for further replies.