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.:
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 !
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 !