Help please

  • 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 comminuty!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Diamend

Member
Jul 17, 2023
2
0
1
23
im trying to make it so if a certain named item was in your offhand it would give you levitiation until you removed it this is what i have so far and im not quite sure how to fix it (im new to skript)

on swap hand items:
if off hand item is shulker_shell "&r&dLevitation Charm":
apply levitation 1 for 3 seconds
 
Make sure to define a player in the condition and effect:

code_language.skript:
on swap hand items:
    player's offhand tool = shulker_shell "&r&dLevitation Charm"
    apply levitation 1 to player for 3 seconds