@pumpkin-plugins/bedrock-addon-manager API / commands/format / exportLines
Function: exportLines()
exportLines(
entries,force):string[]
Defined in: packages/bedrock-addon-manager/src/commands/format.ts:53
The lines /baddon export prints: a [resource_pack.bedrock] block for pumpkin.toml, with one [[resource_pack.bedrock.packs]] table per pack in list order. Pumpkin reads it on start and offers those packs to Bedrock players when they join.
Parameters
entries
readonly PackEntry[]
The packs currently listed.
force
boolean
packs.force: players must accept the packs to join.
Returns
string[]
One string per line of TOML, or a note when there are no packs.