scarpet: 'biome' argument type does not autocomplete
fghsgh opened this issue ยท 3 comments
The following is a simple Scarpet script:
__config() -> {
'commands' -> {
'<biome>' -> _() -> null
},
'arguments' -> {
'biome' -> {
'type' -> 'biome'
}
}
}
It implements a single command /command <biome>
which does nothing (obviously it would do something more useful in an actual application). Now, the problem here is, usually with Brigadier commands, even Scarpet-defined ones, there is TAB autocompletion. This is extremely useful if only for seeing a list of possible options that can be passed. As the list of biomes is generally not well-known by most players, it would make sense for this argument type, 'biome'
, to also support autocompletion, especially as similar vanilla scarpet argument types already do support it.
Vanilla also supports biome autocompletion, by the way. It works correctly on /locatebiome
, which presumably takes the same argument type as is being defined here.
I can also confirm this with Carpet mod 1.4.45 and Minecraft 1.17.1. As far as I can tell, the biome
argument type falls back to term
when used in Scarpet-defined custom commands.