Make iron Golems angry at Enemy team

  • 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 comminuty!

    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!

audijon

Member
Nov 24, 2024
4
1
3
24
Hi, I am new to this forum.
I am currently working on a small Minecraft 1.21.1 bukkit pvp project.
I want to have an item that spawns 1 iron golem that attacks the nearest player from the enemy team.

I have already built a permission system.:
Code:
command /team <text>:
    trigger:
        if arg-1 is "red":
            set {team.%player%} to "red"
            execute console command "lp user %player% parent add team-rot"
            execute console command "lp user %player% parent remove team-blau"
            send "&cDu bist jetzt im Team Rot!" to player
        else if arg-1 is "blue":
            set {team.%player%} to "blue"
            execute console command "lp user %player% parent add team-blau"
            execute console command "lp user %player% parent remove team-rot"
            send "&9Du bist jetzt im Team Blau!" to player
        else:
            send "&7Nutze: /team <red/blue>" to player

i am also using the citizens2 plugin, so you could also create golems with it and give them the destination information. but i am not able to do it, i tried asking chat gpt for help but it didnt work.

Thanks !
 
im lazy so here take this and do what u want with it (not me getting progressively lazier) if I feel less lazy me make proper response

(u don't need addons for this)
Code:
set {_golem} to iron golem
summon {_golem}
set target of {_golem} to {_player} ignoring blocks (replace player with the player u want it to target)
 
  • Like
Reactions: audijon
im lazy so here take this and do what u want with it (not me getting progressively lazier) if I feel less lazy me make proper response

(u don't need addons for this)
Code:
set {_golem} to iron golem
summon {_golem}
set target of {_golem} to {_player} ignoring blocks (replace player with the player u want it to target)
Thanks worked for me
 
  • Like
Reactions: Doodle