so I'm making a boss for my server and I'm trying to give it a bow and i cant find a way to do it when I reload it it says that there are no errors if anyone can help me that would be great!
Code:
command /boss2:
permission: op
permission message: "&cYou do not have permission to do that!"
trigger:
spawn wither skeleton at location of player
set name of last spawned wither skeleton to "&l&aplace holder"
set max health of last spawned wither skeleton to 1500
set health of last spawned wither skeleton to 1500
if name of last spawned wither skeleton is "&l&aplace holder":
set the held item to bow