• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

Vanish

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.

DataLion

Retired Staff
#1
First you need to make the command!

cmd create vanish

Then:


cmd add vanish load %vanish%
cmd add vanish if varset(%vanish%[%p%]) = 0 then let %vanish%[%p%] = \"off\"
cmd add vanish let %checkvanish% = %vanish%[%p%]
cmd add vanish if %checkvanish% = \"off\" then goto 7
cmd add vanish if %checkvanish% = \"on\" then goto 12
cmd add vanish exit
cmd add vanish ascon /effect %p% invisibility 10000 1 True
cmd add vanish message %p% [Vanish] You're vanished now!
cmd add vanish let %vanish%[%p%] = \"on\"
cmd add vanish save %vanish%
cmd add vanish exit
cmd add vanish ascon /effect %p% invisibility 0 0 True
cmd add vanish message %p% [Vanish] You're no longer vanished!
cmd add vanish let %vanish%[%p%] = \"off\"
cmd add vanish save %vanish%
cmd add vanish exit
 
#5
To answer GreenBoy657_YT's question, you can, but don't need to. What it basically does is detecting whether or not the person has turned invisible, which is quite helpful in many situations. For example, it can contribute in a fair combat system, where players can't turn invisible or fly around to cheat during a duel. If you have no need for such a system, then you don't really have to input the entire command as DataLion suggested.

So, my answer to this would be, it depends. Anyways, I think the OP did a great job of designing this command. No comment about it!