Closed NAHFE closed 4 years ago
You can use them in the same way as with normal commands. There are four different entity argument types:
EntityArgumentType.entity()
: one entityEntityArgumentType.entities()
: many entitiesEntityArgumentType.player()
: one player)EntityArgumentType.players()
: many players)Then you can do the normal ArgumentBuilders.argument(<your argument name>, EntityArgumentType.entity() /* or one of those others */)
.
Edit: the player ones will not work with client-side commands as they provide ServerPlayerEntity
s. The entity ones also need a server-side command source, which CCC can't provide. You'll need your own alternative, sorry.
How do i I use for example "EntityArgumentType" as argument?