Data on /give

This commit is contained in:
2026-10-25 15:42:20 -03:00
parent 583cce88c1
commit feb1ddd1f7
7 changed files with 121 additions and 25 deletions
+4 -1
View File
@@ -176,10 +176,13 @@ export interface CommandRegistry {
boolean(): ArgumentType<boolean, CommandSource>;
word(): ArgumentType<string, CommandSource>;
greedy_string(): ArgumentType<string, CommandSource>;
// a json value, the rest of the line like greedy_string
json(): ArgumentType<unknown, CommandSource>;
choice<T extends string>(options: readonly T[]): ArgumentType<T, CommandSource>;
// an item or block id. without a namespace, whichever has that name
// an item, block or fluid id. without a namespace, whichever has that name
item(): ArgumentType<Id, CommandSource>;
block(): ArgumentType<Id, CommandSource>;
fluid(): ArgumentType<Id, CommandSource>;
// an online player's name
player(): ArgumentType<Player, CommandSource>;
};