apply effect while not holding specific item

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

Diamendd

New Member
Jul 29, 2024
6
0
1
hello, is there anyone who could make me a skript that gives you a potion effect while not holding a specific item with a specific name? any time I've tried it doesn't work ;-;
 
Last edited:
every 1 real tick:
loop all players:
if loop-player is not holding a stick named "&ename":
apply potion effect of haste of tier 2 without particles to loop-player

every 1 real tick:
loop all players:
if loop-player is holding a stick named "&ename":
remove haste from loop-player


requires skript 2.5+ or smth
 
Last edited:
  • Like
Reactions: Diamendd
every 1 real tick:
loop all players:
if loop-player is not holding a stick named "&ename":
apply potion effect of haste of tier 2 without particles to loop-player

every 1 real tick:
loop all players:
if loop-player is holding a stick named "&ename":
remove haste from loop-player


requires skript 2.5+ or smth
I don't mean to be a bother but is there a way to get this to work with multiple items with different names at the same time?