resource
fun <T> resource(name: String, registryKey: RegistryKey<T>, creator: CommandCreator<out ArgumentBuilder<CommandSourceStack, *>>.() -> Unit = {}): CommandCreator<T>
Adds a resource argument to the command.
Parameters
registryKey
the registry to use for lookup
Type Parameters
T
the type of registry entry