|
Mechanic: Set Game Mode
|
|
|
|
=======================
|
|
=======================
|
|
|
|
|
|
|
|
## Description:
|
|
|
|
|
|
Sets the gamemode of the target player. Does nothing if the target is
|
|
Sets the gamemode of the target player. Does nothing if the target is
|
|
not a player. Requires the `sync=true` attribute.
|
|
not a player. Requires the `sync=true` attribute.
|
|
|
|
|
|
Attributes
|
|
## Attributes:
|
|
----------
|
|
|
|
|
|
|
|
| Attribute | Aliases | Description | Default Value |
|
|
| Attribute | Aliases | Description | Default Value |
|
|
|-----------|---------|---------------------------------------|---------------|
|
|
|-----------|---------|---------------------------------------|---------------|
|
|
| mode | m | The gamemode to change the target to. | SURVIVAL |
|
|
| mode | m | The gamemode to change the target to. | SURVIVAL |
|
|
|
|
|
|
|
|
|
|
|
|
## Examples:
|
|
|
|
|
|
Examples
|
|
```yaml
|
|
--------
|
|
Skills:
|
|
|
|
|
|
Skills:
|
|
|
|
- setgamemode{m=CREATIVE;sync=true} @PlayersInRadius{r=10} ~onSpawn
|
|
- setgamemode{m=CREATIVE;sync=true} @PlayersInRadius{r=10} ~onSpawn
|
|
- ...
|
|
- ...
|
|
|
|
``` |
|
|
|
\ No newline at end of file |