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

Helmet trigger

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.

thedeibo

Department Head
Staff Member
Department Head
Community Team
#2
A question needs to be asked.
Please to not make a random statement in hopes that people would instantly understand what you want.
 

thorn1376

Tree Puncher
#5
You will have to make a loop, probably at login.
cmd create login
cmd add login let %pa% = playerarmor(%p%)
cmd add login let %helmet% = %pa%[0]
cmd add login if varset(%helmet%) then goto 8
cmd add login let %helmetcheck%[%p%] = array(0)
cmd add login save %helmetcheck%
cmd add login sleep 0.2
cmd add login goto 1
cmd add login load %helmetcheck%
cmd add login if %helmetcheck%[%p%] = array(1) then goto 5
cmd add login{Whatever you want it to do}
cmd add login let %helmetcheck%[%p%] = array(1)
cmd add login save %helmetcheck%
cmd add login goto 6
 
#6
Thanks, i will try

Ok, but now how to trigger when you put a particular monster head or helmet on your head ? Also effect don't be the same when you put a zombie head or a creeper head.
 
#12
Ok, it's was what i think, so could you help me to develop a program to trigger when a particular helmet is on our head ?
(sorry for the faults, I speak frensh)