Skip to main content

Minecraft Arguments

The Arguments and Literals page covers the most used, native Brigadier arguments. But Minecraft (and Paper) define a few more. These can be accessed in a static context using the ArgumentTypes class. We will go over all of those in this section.

Quick overview

A quick overview of all possible arguments is defined here:

Method NameReturn ValueQuick Link
blockPosition()BlockPositionResolverBlock Position Argument
blockState()BlockStateBlock State Argument
component()Component (Kyori)Component Argument
doubleRange()DoubleRangeProviderDouble Range argument
entity()EntitySelectorArgumentResolverEntity Argument
entities()EntitySelectorArgumentResolverEntities Argument
entityAnchor()LookAnchorEntity Anchor Argument
finePosition(boolean centerIntegers)FinePositionResolverFine Position Argument
gameMode()GameModeGameMode Argument
heightMap()HeightMapHeightMap Argument
integerRange()IntegerRangeProviderInteger Range Argument
itemPredicate()ItemStackPredicateItem Predicate Argument
itemStack()ItemStackItemStack Argument
key()Key (Kyori)Key Argument
namedColor()NamedTextColor (Kyori)Named Color Argument
namespacedKey()NamespacedKeyBukkit NamespacedKey Argument
objectiveCriteria()CriteriaObjective Criteria Argument
player()PlayerSelectorArgumentResolverPlayer Argument
players()PlayerSelectorArgumentResolverPlayers Argument
playerProfiles()PlayerProfileListResolverPlayer Profiles Argument
resource(RegistryKey)(Depends on RegistryKey)Resource Argument
resourceKey(RegistryKey)(Depends on RegistryKey)Resource Key Argument
style()Style (Kyori)Style Argument
signedMessage()SignedMessageResolverSigned Message Argument
scoreboardDisplaySlot()DisplaySlotScoreboard Display Slot Argument
time(float mintime)IntegerTime Argument
templateMirror()MirrorTemplate Mirror Argument
templateRotation()StructureRotationTemplate Rotation Argument
uuid()UUIDUUID Argument
world()WorldWorld Argument