I need help with a variable that turns you into spectator mode when you die

Started by zackarygonzo04 on

Topic category: Help with modding (Java Edition)

Last seen on 08:12, 19. Sep 2020
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help with a variable that turns you into spectator mode when you die
Tue, 02/11/2020 - 12:49 (edited)

Im making a mod that turns you to spectator mode when you died all I got is 

 

if:entity health=0

do:set game mode of the provided player to:spectator

I also want a command to toggle this

 

Edited by zackarygonzo04 on Tue, 02/11/2020 - 12:49
Last seen on 08:12, 19. Sep 2020
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but it docent work as…
Tue, 02/11/2020 - 11:31

but it docent work as suspected

 

Last seen on 08:12, 19. Sep 2020
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it works perfectly  
Thu, 04/30/2020 - 05:58

it works perfectly