Data Packs Other

Trigger GameMode

  • Functions
  • 4,318 views • 1 today
  • 591 downloads • 0 today
  • 4
  • 5
  • 3
Chatteo
Level 33 : Artisan System
11
This datapack adds the ability to change gamemode through the use of /trigger

To use it when you join the game do /reload and after you can do :
/Trigger 0 (gamemode survival)
/Trigger 1 (gamemode creative)
/Trigger 2 (gamemode spectator)

Compatible with 1.16x to 1.17x

NOTE : do /reload when you join the game with the datapack

FOR ANY BUGS WRITE BELOW
CompatibilityMinecraft 1.16
toMinecraft 1.17
Tags

  Have something to say?

NikoKun
02/24/2022 4:36 pm
Level 39 : Artisan Professor
I'm trying to figure out how to do something similar.. I'd like to have a command accessible to anyone (or even better, just certain tagged/team users), like /trigger gm, that run's a tellraw menu for changing gamemodes, kinda like this:

/tellraw @p ["",{"text":"Select gamemode:","italic":true,"color":"gray"},"\n",{"text":"Adventure ","bold":true,"color":"dark_aqua","clickEvent":{"action":"run_command","value":"/gamemode adventure"}},{"text":"Survival ","bold":true,"color":"red","clickEvent":{"action":"run_command","value":"/gamemode survival"}},{"text":"Creative ","bold":true,"color":"green","clickEvent":{"action":"run_command","value":"/gamemode creative"}},{"text":"Spectator","bold":true,"color":"light_purple","clickEvent":{"action":"run_command","value":"/gamemode spectator"}}]
1
WalnutIcecream
11/18/2021 10:03 am
Level 1 : New Miner
Does it give that message evrytime someone enters the game?
1
Chatteo
11/18/2021 4:09 pm
Level 33 : Artisan System
no , only when a op player do /reload
1

Welcome