#"There's no item stack in a periodical event"

1 messages · Page 1 of 1 (latest)

smoky flint
#

I havent used skript in a while but have you tried loop-player's instead of loop-players?

#

Also on the last line, I dont believe you need the

native nest
#

tried thata

#

that*

#

nothing changed

smoky flint
native nest
#

"There's no item stack in a periodical event"

smoky flint
#
  loop all players:
    if loop-player's inventory contains netherite sword named "&c&klll&cSword Of Health&c&klll":
      apply health boost 2 to loop-player for 0.5 seconds```

Is this your exact code?
native nest
#

no

#
  loop all players:
    if loop players inventory contains item named "&c&klll&cSword Of Health&c&klll":
      apply health boost 2 to player for 0.5 seconds```
#

the code I have rn

native nest
#

so

#

it kinda works

#

but when I make it unbreakable

#

it stops working

#

which is why I made it item

#

and not netherite sword

smoky flint
#
  loop all players:
    if loop-player's inventory contains item named "&c&klll&cSword Of Health&c&klll":
      apply health boost 2 to loop-player for 0.5 seconds```

Then just use item, as it should work. Because it was not why the skript gave you an error.
native nest
#

and now it doesnt work

smoky flint
#

Ah. Well im not sure I can help you then