Package dev. kotx. flylib. command. arguments
Types
Boolean argument. It must take true or false. If the input value is neither true nor false (not a valid expression of a boolean), an error will be displayed on the client side, and even if you try to execute it, it will not be accepted. Expected input: true
false
TRUE
'False'
Double precision floating point argument. You can set the minimum and maximum values. If it falls below the minimum value or exceeds the maximum value, an error will be displayed on the client side, and even if you try to execute it, it will not be accepted. Expected input: 2
6.3
-12
0
0.0
An argument that takes a player name or entity selector as input. If a player name that does not exist or an invalid selector is entered, an error will be displayed on the client side, and even if you try to execute it, it will not be accepted. Expected input: PlayerName
@a
, @r
, @e[distance=..5]
Anti-precision floating point argument. You can set the minimum and maximum values. If it falls below the minimum value or exceeds the maximum value, an error will be displayed on the client side, and even if you try to execute it, it will not be accepted. Expected input: 2
6.3
-12
0
0.0
Integer argument. You can set the minimum and maximum values. If it falls below the minimum value or exceeds the maximum value, an error will be displayed on the client side, and even if you try to execute it, it will not be accepted. Expected input: 2
-12
0
An argument that does not have any user input. Input other than "name" is not allowed. If anything other than "name" is entered, an error will be displayed on the client side and even if you try to execute it, it will not be accepted. Expected input (if "name" specified "test"): test
An argument that takes coordinates as an input value. You can also use "~" and "^". If it falls below the minimum value or exceeds the maximum value, an error will be displayed on the client side, and even if you try to execute it, it will not be accepted. Expected input : 123 456 789
~ ~10 ~
111 ~5 ^10
Long value argument. You can specify the maximum and minimum values. If you enter it in the wrong coordinate format, an error will be displayed on the client side and even if you try to execute it, it will not be accepted. Expected input: 2
-12
0
String argument type. You can specify string type. If it is not the specified type, an error will be displayed on the client side and the attempt to execute will not be accepted. String Type: WORD ->hello
world
String Type: PHRASE_QUOTED ->hello
world
"This is quoted string"
String Type: PHRASE ->hello string
word
"Quoted string"
An argument that takes direction as an input value. You can also use "~" and "^". If it falls below the minimum value or exceeds the maximum value, an error will be displayed on the client side, and even if you try to execute it, it will not be accepted. Expected input : 123 456 789
~ ~10 ~
111 ~5 ^10