Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicHUD MythicHUD
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicHUDMythicHUD
  • Wiki
    • Conditions
  • Gamemode

Last edited by Brickgard Oct 03, 2024
Page history

Gamemode

Checks the player's gamemode.

Attributes


Attribute Aliases Description
gamemode gamemodes, gm The gamemode(s) to look for.

Example


Hides the lucky_charm Asset in its HUD if the player is in Creative or Spectator mode:

lucky_charm:
  conditions:
  - gamemode{gm=creative,spectator} false hide
  layers:
    icon:
      texture:
        path: assets/luck/clover.png
      offset:
        x: -5
        y: 2
Clone repository
Home

Getting Started
What's New in MythicHUD?
Commands and Permissions
Configuration Reference

Layouts
Pop-Ups
HUD Components
  • Asset Layers
  • Assets
  • Listeners
  • Conditions
    • Effect
    • Gamemode
    • Placeholder
    • Progress
    • Logical Operators
Fonts

MythicHUD API
Compatibility
  • Migrating from v1 to v2
  • Supporting Multiple Client Versions
  • Crucible
  • Nexo
  • ItemsAdder
  • Modded Clients