on right click:
if player's held item is unbreakable netherite sword named "&8&o&k--&r&8&oWither Blade&k--":
if difference between now and {wither::%player's uuid%} is less than 15 seconds:
cancel event
send action bar "you cannot use that yet!" to player
else:
apply potion of strength of tier 3 to player for 10 seconds
spawn 1 wither skeleton at location of player's eyes
set {_w} to last spawned wither skeleton
add {_w} to team "Allies"
add player to team "Allies"
set {wither::%player's uuid%} to now
#Trying to get the wither skeletons to NOT attack the user
1 messages · Page 1 of 1 (latest)
you could cancel the target event if the event entity is the spawned either skeleton and the target is the player
please format your code in your next post so that its easier to read
x8ight suggests that you read this embed
Formatting Code In Discord
Why?
Code blocks make it easier for helpers to identify potential errors -- help them help you!
The Format
```vb
on chat:
broadcast "This is how you format code!"
```
How It Looks
on chat:
broadcast "This is how you format code!"
Extra Info
On US keyboards, the grave character (`) is located above the tab key on the top left of the keyboard
yk instead of using "apply potion of strength of tier 3 to player for 10 seconds" you could do "apply strength 3 to player for 10 seconds"
but again if yours work its fine, im still a beginner also🤷
sorry about that
on right click:
if player's held item is unbreakable netherite sword named "&8&o&k--&r&8&oWither Blade&k--":
if difference between now and {wither::%player's uuid%} is less than 15 seconds:
cancel event
send action bar "you cannot use that yet!" to player
else:
apply potion of strength of tier 3 to player for 10 seconds
spawn 1 wither skeleton at location of player's eyes
set {_w} to last spawned wither skeleton
add {_w} to team "Allies"
add player to team "Allies"
set {wither::%player's uuid%} to now```
have you done this?
send code