Solved True invis

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

  • LOOKING FOR A VERSION OF SKRIPT?

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

JesterThr0ugh

Member
Jun 2, 2024
47
0
6
Hello! How do I make a function that lets me go into 'true invis' meaing it shows nothing, not ur tools, not particles, not armour, im very new and i cant figure out functions as i cant find any thing about it online! Please help me.

Code:
on rightclick:
    if player's tool is unbreakable diamond sword of sharpness 4 named "&1&lShadow Sword":
        if {cooldownshadow::%player's uuid%} is not set:
            push player forward with speed 2.3
            # run function here
            play sound "entity.enderman.teleport" at player
            set {cooldownshadow::%player's uuid%} to 3
            loop 3 times:
                wait 1 second
                remove 1 from {cooldownshadow::%player's uuid%}
            send action bar "&1&lShadow Step &c&lAbility &r&1&lis ready to be used!" to player
            delete {cooldownshadow::%player's uuid%}
        else:
            send action bar "&r &1Shadow Step &cAbility &r| &cCD: &b&l%{cooldownshadow::%player's uuid%}% &r" to player


Thats a snippet that im stuck on. Also how do i make it so i can summon particles that trace the player while he teleports where the enderpearl lands!
 
Hello! How do I make a function that lets me go into 'true invis' meaing it shows nothing, not ur tools, not particles, not armour, im very new and i cant figure out functions as i cant find any thing about it online! Please help me.

Code:
on rightclick:
    if player's tool is unbreakable diamond sword of sharpness 4 named "&1&lShadow Sword":
        if {cooldownshadow::%player's uuid%} is not set:
            push player forward with speed 2.3
            # run function here
            play sound "entity.enderman.teleport" at player
            set {cooldownshadow::%player's uuid%} to 3
            loop 3 times:
                wait 1 second
                remove 1 from {cooldownshadow::%player's uuid%}
            send action bar "&1&lShadow Step &c&lAbility &r&1&lis ready to be used!" to player
            delete {cooldownshadow::%player's uuid%}
        else:
            send action bar "&r &1Shadow Step &cAbility &r| &cCD: &b&l%{cooldownshadow::%player's uuid%}% &r" to player


Thats a snippet that im stuck on. Also how do i make it so i can summon particles that trace the player while he teleports where the enderpearl lands!
Try:
Code:
hide player from all players
As for the particles, you could probably do something with vectors for that.
 
You News PoaSK and SkBEE

Code:
on rightclick:
    if player's tool is unbreakable diamond sword of sharpness 4 named "&1&lShadow Sword":
        if {cooldownshadow::%player's uuid%} is not set:
            push player forward with speed 2.3
            # run function here
            play sound "entity.enderman.teleport" at player

            set {cooldownshadow::%player's uuid%} to 3
            set {_helmet} to player’s helmet
            set {_chest} to player’s chestplate
            set {_legs} to player’s leggings
            set {_boots} to player’s boots
            hide player from all players
            make player apper from all players
            fake target entity's equipment slot "HEAD” to air for player
            fake target entity's equipment slot "CHEST" to air for player
            fake target entity's equipment slot "LEGS" to air for player
            fake target entity's equipment slot "FEET” to air for player

            loop 3 times:
                wait 1 second
                remove 1 from {cooldownshadow::%player's uuid%}

            show player from all players
            make player disapper from all players
            fake target entity's equipment slot "HEAD” to {_helmet} for player
            fake target entity's equipment slot "CHEST" to {_chest} for player
            fake target entity's equipment slot "LEGS" to {_legs} for player
            fake target entity's equipment slot "FEET” to {_boots} for player

            send action bar "&1&lShadow Step &c&lAbility &r&1&lis ready to be used!" to player
            delete {cooldownshadow::%player's uuid%}
        else:
            send action bar "&r &1Shadow Step &cAbility &r| &cCD: &b&l%{cooldownshadow::%player's uuid%}% &r" to player
 
I fixed it but i got 11 errors and fixed it down to 4, but now im stuck! I commented below what needs fixing
Code:
on rightclick:
    if player's tool is unbreakable diamond sword of sharpness 4 named "&1&lShadow Sword":
        if {cooldownshadow::%player's uuid%} is not set:
            push player forward with speed 2.3
            play sound "entity.enderman.teleport" at player
            set {cooldownshadow::%player's uuid%} to 3
            set {_helmet} to player's equipment slot "HEAD" #Fixing needed
            set {_chest} to player's equipment slot "CHEST" #Fixing needed
            set {_legs} to player's equipment slot "LEGS" #Fixing needed
            set {_boots} to player's equipment slot "FEET" #Fixing needed
            reveal player from all players
            hide player from all players
            fake target entity's equipment slot "HEAD" to air for player
            fake target entity's equipment slot "CHEST" to air for player
            fake target entity's equipment slot "LEGS" to air for player
            fake target entity's equipment slot "FEET" to air for player

            loop 3 times:
                wait 1 second
                remove 1 from {cooldownshadow::%player's uuid%}

            reveal player from all players
            hide player from all players
            fake target entity's equipment slot "HEAD" to {_helmet} for player
            fake target entity's equipment slot "CHEST" to {_chest} for player
            fake target entity's equipment slot "LEGS" to {_legs} for player
            fake target entity's equipment slot "FEET" to {_boots} for player

            send action bar "&1&lShadow Step &c&lAbility &r&1&lis ready to be used!" to player
            delete {cooldownshadow::%player's uuid%}
        else:
            send action bar "&r &1Shadow Step &cAbility &r| &cCD: &b&l%{cooldownshadow::%player's uuid%}% &r" to player