#Cancel Event if dont have certain item

1 messages · Page 1 of 1 (latest)

ornate valve
#

Okay So, whenever I do this skript and whenever I try fix it it always doesnt work.
I'm trying to get it so that it will cancel the event if you do not have the "&cReborn Arrow" but it isnt working any ideas?

on shoot:
    shooter is player
    "%projectile%" is "arrow"
    name of tool of shooter is "&c&lReborn Bow"
    {nospam::%shooter%} is not set
    set {nospam::%shooter%} to true
    loop 3 times:
        if player inventory does not contain arrow with name "&cReborn Arrow":
        cancel event
        else:
        remove arrow with name "&cReborn Arrow" from shooter
        make shooter shoot a arrow
        wait a tick
    delete {nospam::%shooter%} 
#

I've been trying like everything to get it fixed

#

I managed once but it still wouldnnt cancel event.

#

Heres a clearly pic of the script

woeful basin
#
    shooter is player
    "%projectile%" is "arrow"
    name of tool of shooter is "&c&lReborn Bow"
    {nospam::%shooter%} is not set
    set {nospam::%shooter%} to true
    loop 3 times:
        if player inventory does not contain arrow with name "&cReborn Arrow":
            cancel event
        else:
            remove arrow with name "&cReborn Arrow" from shooter
            make shooter shoot a arrow
            wait a tick
    delete {nospam::%shooter%}

Try this

#

Your formatting was wrong xd

#

indents*

ornate valve
#

lemme see

#

thank you so much

woeful basin
#

np ❤️

ornate valve
#

wait

#

one prob

#

now it doesnt work even with the arrow

#

@woeful basin

woeful basin
#

uh

#

wym

ornate valve
#

like when i shoot

#

nothing comes out

#

even with the correct ammunition

woeful basin
#

you reloaded the plugin?

ornate valve
#

yea

#

well

#

onlyt skript

woeful basin
#

yeh

#

gimme a sec

ornate valve
#

?