8Crafter's Server Utilities Wiki
  • Home
  • Discord
  • Contribute
  • ModBay
Changelogs
  • Changelogs
  • Releases
    • v1.1.0
    • v1.2.0
    • v1.2.1
    • v1.2.2
    • v1.3.0
    • v1.3.1
    • v1.3.2
    • v1.3.3
    • v1.3.4
    • v1.3.5
    • v1.3.6
    • v1.4.0
    • v1.5.0
    • v1.5.1
    • v1.6.0
    • v1.7.0
    • v1.8.0
    • v1.9.0
    • v1.10.2
    • v1.11.0
    • v1.12.0
    • v1.12.1
    • v1.12.2
    • v1.12.3
    • v1.13.0
    • v1.14.0
    • v1.14.1
    • v1.15.0
    • v1.15.1
    • v1.16.0
    • v1.17.0
    • v1.18.0
    • v1.18.1
    • v1.18.2
    • v1.19.0
    • v1.20.0
    • v1.21.0
    • v1.22.0
    • v1.23.0
    • v1.23.1
    • v1.24.0
    • v1.25.0
    • v1.25.1
    • v1.25.2
    • v1.26.0
    • v1.27.0
    • v1.28.0
    • v1.28.1
    • v1.28.2
    • v1.28.3
    • v1.28.4
    • v1.28.5
    • v1.29.0
    • v1.29.1
    • v1.29.2
    • v1.29.3
    • v1.29.4
    • v1.30.0
    • v1.30.1
    • v1.31.0
    • v1.32.0
    • v1.32.1
    • v1.33.0
    • v1.33.1
    • v1.34.0
    • v1.34.1
    • v1.35.0
    • v1.36.0
    • v1.36.1
    • v1.36.2
    • v1.36.3
    • v1.36.4
    • v1.36.5
    • v1.36.6
    • v1.37.0
  • Pre-Releases
    • v0.1.0
    • v0.2.0
    • v0.3.0
    • v0.3.1
    • v0.3.2
    • v0.4.0
    • v0.5.0
    • v0.5.1
    • v0.6.0
    • v0.8.0
    • v0.8.1
    • v0.8.2
    • v0.8.3
    • v1.0.0-RC.1
    • v1.0.0-RC.2
    • v1.20.0-preview.20
    • v1.20.0-preview.21
    • v1.20.0-preview.22
    • v1.23.0-preview.20+BUILD.1
    • v1.26.0-RC.1
    • v1.26.0-RC.2
    • v1.26.0-RC.3
    • v1.35.0-RC.1
    • v1.35.0-RC.2
General
  • General Information
  • Troubleshooting
  • Downloading
  • Installing
  • Getting Started
Commands
  • Commands Basics
  • Parameters Basics
  • Parameter Types
Commands List
  • Main
    • \align
    • \aligncenter
    • \attribute
    • \binvsee
    • \block
    • \bluemodsversion
    • \clearchat
    • \eval
    • \gma
    • \gmc
    • \gmd
    • \gmg
    • \gmp
    • \gmr
    • \gms
    • \help
    • \mainmenu
    • \playermenu
    • \tpa
    • \tpaccept
    • \tpdeny
  • WorldEdit
    • \\backuparea
    • \\ceil
    • \\chunk
    • \\cone
    • \\copy
    • \\cube
      Non-Functional
    • \\cut
    • \\cyl
    • \\deletesavedpos
    • \\drain
    • \\expandselection
    • \\flood
    • \\floor
    • \\generate
    • \\generatecallback
      Non-Functional
    • \\generatef
    • \\generatejs
      Non-Functional
    • \\generates
    • \\generateterrain
    • \\hcone
      Non-Functional
    • \\hcube
    • \\hcyl
      Non-Functional
    • \\hpos1
    • \\hpos2
    • \\hreplace
    • \\hsphere
    • \\idtfill
    • \\itfill
    • \\listpos
    • \\loadchunks
    • \\loadpos
    • \\maze
    • \\move
      Non-Functional
    • \\offset
    • \\omove
      Non-Functional
    • \\oreplace
    • \\paste
    • \\pos1
    • \\pos2
    • \\protectarea
    • \\regenerateblocks
    • \\remove
    • \\replace
    • \\savepos
    • \\savestructure
    • \\selectmode
    • \\set
    • \\seti
    • \\shift
    • \\smove
      Non-Functional
    • \\sphere
    • \\stack
    • \\stsphere
    • \\tube
    • \\undo
    • \\walls
    • \selectionrender
  • Removed
    • \settings (Old)
Systems
  • Anti-Spam System
  • Ban System
  • Chat Ranks System
  • Home System
  • Player Shop System
  • Rank Name Tags System
  • Server Shop System
  • Shop System
  • Sign Shop System
  • Spawn Protection System
  • TPA System
Settings
  • Chat Ranks Settings
  • General Settings
  • Home System Settings
  • Manage Game Rules
  • Module Imports
  • Money System Settings
  • Notifications Settings
  • Personal Settings
  • Script Settings
  • TPA System Settings
  • UI Settings
  • Extra Features
    • Extra Features Settings
  • Advanced
    • Advanced Settings
/scriptevent Commands
  • s:e
Blocks
  • ifill Command Placeholder Block
  • Invalid Block Placeholder
Entities
  • Tickingarea
  • Tickingarea 6
Items
  • Debug Sticks
    • Debug Stick
    • Editor Stick
  • UI Items
    • Main Menu
    • Player Menu
  • WorldEdit Items
    • Selection Tool
  • Misc.
    • Programmable Items
    • Ultra Bundle
    • WorldEdit Brushes
Main Menu
  • Main Menu
Player Menu
  • Player Menu
Ultra Security Mode
  • Command Required Permission Levels
Misc
  • Add-On Version Compatibility List
Other Features
  • Enchanting Any Item With Any Enchantment
  • Item Customization
  • No AI Entities
  • Particle Customization
  • Simulated Players
Meta
  • Add-On Performance
  • Style Guide
  • Useful Links

Parameters Basics

Parameters Basics
  • Parameter Categories:
    • Optional Parameters:
    • Required Parameters:
    • Ignorable Parameters:
    • Named Ignorable Parameters:
    • Flags Parameters:
  • Parameter Format:
    • Parameter Restrictions:
  • Next

Some examples of parameters in a command would be [-tfsa], <player: target>, and [name: string] in the following command syntax:

\examplecommand [-tfsa] <player: target> [name: string]

In the syntax of a command there are multiple ways a parameter can be written out:

Parameter Categories: ​

Optional Parameters: ​

Optional parameters are enclosed in square brackets like this: [name: string]

Note: Parameters written as a dash followed by a string of characters enclosed in square brackets (ex. [-tfsa] or [-z]) is not considered an optional parameter, this is a flags parameter.

optional parameters are optional, you can either include them or not include them, however if you do not include them then any parameters after them cannot be included either, so in the following command:

\examplecommand <player: target> [name: string] [escapeCodesEnabled: boolean]

If you choose not to include the name parameter, then you cannot include the escapeCodesEnabled parameter either.

So this means that this command syntax is actually like three separate syntaxes, you can do any of the following:

\examplecommand <player: target> <name: string> <escapeCodesEnabled: boolean>

\examplecommand <player: target> <name: string>

\examplecommand <player: target>

Required Parameters: ​

Required parameters are enclosed in arrow brackets like this: <player: target>

Required parameters are required, the parameter must be included.

Ignorable Parameters: ​

Ignorable parameters are enclosed in curly brackets like this: {includeEntities: boolean}

Ignorable parameters are optional, but unlike optional parameters, if you don't include them, you can still include the parameters after them, so in the following command:

\examplecommand <player: target> {name: string} [escapeCodesEnabled: boolean]

Even if you choose not to include the name parameter, you can still include the escapeCodesEnabled parameter either.

So this means that this command syntax is actually like four separate syntaxes, you can do any of the following:

\examplecommand <player: target> <name: string> <escapeCodesEnabled: boolean>

\examplecommand <player: target> <name: string>

\examplecommand <player: target> <escapeCodesEnabled: boolean>

\examplecommand <player: target>

Named Ignorable Parameters: ​

Named ignorable parameters are enclosed in square brackets that are enclosed in curly brackets like this: {[includeEntities: boolean]}

Named ignorable parameters are like ignorable parameters, except that if you do specify them, you have to include their name, so in the following command:

\examplecommand <player: target> {[name: string]} [escapeCodesEnabled: boolean]

The following would be still be valid, just like with ignorable parameters:

\examplecommand @p true

\examplecommand @p

However the following would not:

\examplecommand @p Herobrine true

Instead you would have to do:

\examplecommand @p name=Herobrine true

And instead of:

\examplecommand @p "Steve but with spaces" true

You would have to do:

\examplecommand @p name="Steve but with spaces" true

Note: The name part of the parameter is not case sensitive, unless the nameIsCaseSensitive parameter restriction is set to true.

Example:

In the following command syntax the name= part is not case sensitive:

\examplecommand <player: target> {[name: string]} [escapeCodesEnabled: boolean]

However, in this command syntax the name= part is case sensitive:

\examplecommand <player: target> {[name: string[nameIsCaseSensitive=true]]} [escapeCodesEnabled: boolean]

Additionally, if the parameterName parameter restriction is provided, then the value of that restiriction must be used as the name of the parameter instead.

Example:

If the syntax is:

\examplecommand <player: target> {[name: string]} [escapeCodesEnabled: boolean]

Then you would put:

\examplecommand @p name=Herobrine true

But if the syntax is:

\examplecommand <player: target> {[name: string[parameterName=playerName]]]} [escapeCodesEnabled: boolean]

Then you would put:

\examplecommand @p playerName=Herobrine true

Flags Parameters: ​

Flags parameters are written as a dash followed by a string of characters enclosed in square brackets like this: [-tfsa]

For a flags parameter, it has no specified parameter type. Instead, you just either put nothing and ignore the parameter, or you put a dash followed by the flags you want to enable, each flag is its own unique character, you can type these characters in any order, and you can include any combination of them that you like, however if you put a dash there then you must include at least one flag.

So, for the parameter [-tfsa] you could do any of the following examples:

Nothing, -t, -f, -s, -a, -tf, -ts, -ta, -ft, -fs, -fa, -at, -af, -as, -tfs, -tfa, -tsf, -tsa, -taf, -tas, -fta, -fts, -fsa, -fst, -fat, -fas, -stf, -sta, -sft, -sfa, -saf, -sat, -atf, -ats, -aft, -afs, -ast, -asf, -tfsa, -tfas, -tsfa, -tsaf, -tafs, -tasf, -ftsa, -ftas, -fsta, -fsat, -fast, -fats, -stfa, -staf, -sfta, -sfat, -satf, -saft, -atfs, -atsf, -afts, -afst, -astf, -asft.

Parameter Format: ​

For all parameter categories except for flags parameters, a parameter will be written in one of the following formats inside of the parameter category's bracket type:

parameterName: parameterType

parameterName: parameterType[parameterRestrictions]

Here are some examples:

  • <name: string>
  • [size: number[?=1,??=1,min=-1000,max=1000,allowNaN=false,allowNegatives=false,precision=20]]
  • {player: target[?=@s,maxTargets=1]}
  • [-tfsa]

Parameter Restrictions: ​

Parameter restrictions work as follows:

Parameter restrictions are specified inside of square brackets after the parameter's type.

Parameter restrictions are a comma-separated list of restrictions, each restriction is formatted as restrictionName=restrictionValue.

An example of a parameter with parameter restrictions would be: [size: number[?=1,??=1,min=-1000,max=1000,allowNaN=false,allowNegatives=false,precision=20]]

Some commonly used restrictions include:

?=value

This specifies the default value for the parameter, this will be used if it is not specified.

??=value

This specified the value to be used for the parameter in the event of an error when parsing the parameter.

min=number

The minimum value of the parameter.

max=number

The maximum value of the parameter.

maxLength=int

The maximum length of the list parameter type or string parameter type.

maxElementLength=int

The maximum length of the strings and/or lists inside of the list parameter type.

maxStringElementLength=int

The maximum length of the strings inside of the list parameter type.

maxListElementLength=int

The maximum length of the lists inside of the list parameter type.

escapeCodesAllowed=boolean

Indicates whether JаvaScript escape codes are allowed.

allowInfinity=boolean

Indicates whether the number parameter type allows for Infinity and -Infinity to be used.

allowNaN=boolean

Indicates whether the number parameter type allows for NaN to be used.

allowNegatives=boolean

Indicates whether negative number values are allowed in the number parameter type.

precision=int

Indicates the precision to be used when parsing the number parameter type. This means that the actually inputted number will be that same as that number with the JаvaScript toPrecision() function ran on it with the precision set to the value of this restriction.

canError=boolean

Indicates whether this parameter can throw an error.

minTargets=int

The minimum number of targets for a target parameter type.

maxTargets=int

The maximum number of targets for a target parameter type.

mustBeLowercase=boolean

Whether this string or boolean parameter must be in all lowercase.

mustBeUppercase=boolean

Whether this string or boolean parameter must be in all uppercase.

mustBeLowercase=boolean

Whether this string or boolean parameter must be in all lowercase.

mustBeCamelcase=boolean

Whether this string or boolean parameter must be in all camelcase.

mustBeTitlecase=boolean

Whether this string or boolean parameter must be in all titlecase.

allowMultiple=boolean

Whether this parameter type allows for multiple items.

For an array this would determine if the array could have more than one item in it.

For a target this would mean that it could have multiple targets.

caseSensitive=boolean

Whether or not this parameter is case-sensitive.

playersOnly=boolean

Whether or not this target parameter only allows targeting players.

Next ​

Next: Parameter Types
Edit Parameters Basics on GitHub

8Crafter's Server Utilities Wiki by 8Crafter-Studios

"Minecraft" is a trademark of Mojang AB.

8Crafter-Studios, 8Crafter's Server Utilities Wiki and 8crafter.com are not affiliated in any way with Microsoft or Mojang AB.

  • Privacy Policy
  • Join our Discord
  • Learn how to Contribute
  • Visit our Repository
  • Wiki Settings