def insert_parse_bridge(parsebridge: ParseBridge): parsebridge.main_entry = "clone" parsebridge.add_subcommand(SubCommand(ParseType.POSITION).add_subcommand(SubCommand( ParseType.POSITION).add_subcommand(SubCommand(ParseType.POSITION).add_subcommand( SubCommand(ParseType.STRING_WITHOUT_QUOTES, mode=ParseMode.OPTIONAL).add_subcommand( SubCommand(ParseType.STRING_WITHOUT_QUOTES, mode=ParseMode.OPTIONAL).add_subcommand( SubCommand(ParseType.BLOCKNAME, mode=ParseMode.OPTIONAL)))))))
def insert_parse_bridge(parsebridge: ParseBridge): parsebridge.add_subcommand( SubCommand(ParseType.SELECT_DEFINITED_STRING, "0", "1", "2", "3", "survival", "creative", "hardcore", "spectator").add_subcommand( SubCommand(ParseType.SELECTOR, mode=ParseMode.OPTIONAL))) parsebridge.main_entry = "gamemode"
def insert_parse_bridge(parsebridge: ParseBridge): parsebridge.main_entry = "fill" parsebridge.add_subcommand( SubCommand(ParseType.POSITION).add_subcommand( SubCommand(ParseType.POSITION).add_subcommand( SubCommand(ParseType.BLOCKNAME).add_subcommand( SubCommand(ParseType.DEFINIED_STRING, mode=ParseMode.OPTIONAL).add_subcommand( ParseType.BLOCKNAME)))))
def insert_parse_bridge(parsebridge: ParseBridge): parsebridge.main_entry = "iteminfo" parsebridge.add_subcommand(SubCommand(ParseType.DEFINIED_STRING, "hand")) parsebridge.add_subcommand(SubCommand(ParseType.DEFINIED_STRING, "inventory")) parsebridge.add_subcommand(SubCommand(ParseType.DEFINIED_STRING, "item").add_subcommand(SubCommand( ParseType.ITEMNAME))) parsebridge.add_subcommand(SubCommand(ParseType.DEFINIED_STRING, "block").add_subcommand( SubCommand(ParseType.DEFINIED_STRING, "inventory").add_subcommand(SubCommand(ParseType.POSITION))))
def insert_parse_bridge(parsebridge: ParseBridge): parsebridge.main_entry = "replaceitem" parsebridge.add_subcommand( SubCommand(ParseType.DEFINIED_STRING, "block").add_subcommand( SubCommand(ParseType.POSITION).add_subcommand( SubCommand(ParseType.INT).add_subcommand( SubCommand(ParseType.ITEMNAME).add_subcommand( SubCommand(ParseType.INT, mode=ParseMode.OPTIONAL)))))) parsebridge.add_subcommand( SubCommand(ParseType.DEFINIED_STRING, "entity").add_subcommand( SubCommand(ParseType.SELECTOR).add_subcommand( SubCommand(ParseType.INT).add_subcommand( SubCommand(ParseType.ITEMNAME).add_subcommand( SubCommand(ParseType.INT, mode=ParseMode.OPTIONAL))))))
def insert_parse_bridge(parsebridge: ParseBridge): parsebridge.main_entry = "datapack" parsebridge.add_subcommand( SubCommand(ParseType.DEFINIED_STRING, "enable").add_subcommand( SubCommand(ParseType.STRING_WITHOUT_QUOTES))) parsebridge.add_subcommand( SubCommand(ParseType.DEFINIED_STRING, "disable").add_subcommand( SubCommand(ParseType.STRING_WITHOUT_QUOTES))) parsebridge.add_subcommand( SubCommand(ParseType.DEFINIED_STRING, "list")) parsebridge.add_subcommand( SubCommand(ParseType.DEFINIED_STRING, "release"))
def insert_parse_bridge(parsebridge: ParseBridge): parsebridge.main_entry = ["xp", "experience"] parsebridge.add_subcommand( SubCommand(ParseType.DEFINIED_STRING, "add").add_subcommand( SubCommand(ParseType.SELECTOR).add_subcommand( SubCommand(ParseType.INT).add_subcommand( SubCommand(ParseType.DEFINIED_STRING, "points", mode=ParseMode.OPTIONAL)).add_subcommand( SubCommand(ParseType.DEFINIED_STRING, "levels", mode=ParseMode.OPTIONAL)))) ).add_subcommand( SubCommand(ParseType.DEFINIED_STRING, "set").add_subcommand( SubCommand(ParseType.SELECTOR).add_subcommand( SubCommand(ParseType.INT).add_subcommand( SubCommand(ParseType.DEFINIED_STRING, "points", mode=ParseMode.OPTIONAL)).add_subcommand( SubCommand(ParseType.DEFINIED_STRING, "levels", mode=ParseMode.OPTIONAL)))))
def insert_parse_bridge(parsebridge: ParseBridge): parsebridge.add_subcommand( SubCommand(ParseType.SELECTOR).add_subcommand( SubCommand(ParseType.ITEMNAME).add_subcommand( SubCommand(ParseType.INT, mode=ParseMode.OPTIONAL)))) parsebridge.main_entry = "give"
def insert_parse_bridge(parsebridge: ParseBridge): parsebridge.main_entry = ["tp", "teleport"] # both are valid parsebridge.add_subcommand(SubCommand(ParseType.SELECTOR).add_subcommand(SubCommand(ParseType.SELECTOR)). add_subcommand(SubCommand(ParseType.POSITION))).\ add_subcommand(SubCommand(ParseType.POSITION))
def insert_parse_bridge(parsebridge: ParseBridge): parsebridge.main_entry = "setblock" parsebridge.add_subcommand( SubCommand(ParseType.POSITION).add_subcommand( SubCommand(ParseType.BLOCKNAME)))
def insert_parse_bridge(parsebridge: ParseBridge): parsebridge.main_entry = ["tell", "msg", "w"] parsebridge.add_subcommand( SubCommand(ParseType.SELECTOR).add_subcommand( SubCommand(ParseType.OPEN_END_UNDEFINITED_STRING)))
def insert_parse_bridge(parsebridge: ParseBridge): parsebridge.main_entry = "registryinfo" parsebridge.add_subcommand(SubCommand(ParseType.STRING_WITHOUT_QUOTES))
def insert_parse_bridge(parsebridge: ParseBridge): parsebridge.add_subcommand( SubCommand(ParseType.STRING_WITHOUT_QUOTES).add_subcommand( SubCommand(ParseType.STRING_WITHOUT_QUOTES, mode=ParseMode.OPTIONAL))) parsebridge.main_entry = "gamerule"
def insert_parse_bridge(parsebridge: ParseBridge): parsebridge.main_entry = ["help", "?"] parsebridge.add_subcommand( SubCommand(ParseType.INT, mode=ParseMode.OPTIONAL)).add_subcommand( SubCommand(ParseType.STRING, mode=ParseMode.OPTIONAL))
def insert_parse_bridge(parsebridge: ParseBridge): parsebridge.main_entry = "generate" parsebridge.add_subcommand(SubCommand(ParseType.INT, mode=ParseMode.OPTIONAL).add_subcommand( SubCommand(ParseType.INT).add_subcommand(SubCommand(ParseType.INT, mode=ParseMode.OPTIONAL).add_subcommand( SubCommand(ParseType.INT)))))
def insert_parse_bridge(parsebridge: ParseBridge): parsebridge.main_entry = "clear" parsebridge.add_subcommand( SubCommand(ParseType.SELECTOR, mode=ParseMode.OPTIONAL))