Play a sound on a player.
Arg | Values | Type | Required | Usage |
---|---|---|---|---|
player | All players | Player | No | Specify the player, it is not necessary if you do not want |
sound | All sounds | Text | Yes | The id of sound |
volume | 0.0 - 1.0 | Float | No | The default volume is 1.0 |
pitch | 0.0 - 2.0 | Float | No | The default pith is 1.5 |
playSound { player = $player$ / sound = minecraft:ui.button.click / volume = 0.5 / pitch = 1.5 }
Run command as a player or as a console
Arg | Values | Type | Required | Usage |
---|---|---|---|---|
command | all comands | Text | Yes | The command you want to execute |
asOp | true or false | Boolean | No | Execute the command as op, when doing this if the command requires permissions it will not be necessary to set the permissions |
asConsole | true or false | Boolean | No | Run the command as if it were from the console |
delay | 1 - 99999999999999 | Long | No | The time it takes to execute since it was executed |
executeCommand { command = say hello / asOp = true / asConsole = true / delay = 0 }