#Trying to get the wither skeletons to NOT attack the user

1 messages · Page 1 of 1 (latest)

zinc jay
#

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

bronze cypress
#

you could cancel the target event if the event entity is the spawned either skeleton and the target is the player

balmy token
#

please format your code in your next post so that its easier to read

neat runeBOT
#

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

ionic pebble
zinc jay
#
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```
zinc jay
#

yeah

#

didnt work

bronze cypress
#

send code