Package your files using this all-in-one filter! This filter works with all types of minecraft package types (mcpack, mcaddon, mcworld, mctemplate).
regolith install package==latest
You use the settings object to customise the output of the filter.
config.json
{
"name": "Project name",
"packs": {
"behaviorPack": "./packs/BP",
"resourcePack": "./packs/RP"
},
"worlds": [
"./worlds/hello"
],
"regolith": {
"profiles": {
"default": {
"export": {
"readOnly": false,
"target": "local"
},
"filters": [
{
"filter": "package",
"settings": {
"package": {
"mcaddon": { }
}
}
}
]
}
}
}
}
Creates an mcaddon file containing the resource and behaviour packs.
config.json > regolith > profiles > default > filters > 0
{
"settings": {
"package": {
"mcaddon": { }
}
}
}
Creates mcpack files with seperate resource and behaviour packs.
Create a resource pack:
config.json > regolith > profiles > default > filters > 0
{
"settings": {
"package": {
"mcpack": {
"RP": true
}
}
}
}
Create a behaviour pack:
config.json > regolith > profiles > default > filters > 0
{
"settings": {
"package": {
"mcpack": {
"BP": true
}
}
}
}
Create a skin pack:
config.json > regolith > profiles > default > filters > 0
{
"settings": {
"package": {
"mcpack": {
"skins": true
}
}
}
}
config.json > regolith > profiles > default > filters > 0
{
"settings": {
"package": {
"mcworld": { }
}
}
}
Does the same thing at the mcworld property, but changes the extention to mctemplate
. You must include the world manifest within the world file if you want minecraft to interpret it correctly.
config.json > regolith > profiles > default > filters > 0
{
"settings": {
"package": {
"mctemplate": { }
}
}
}
config.json
{
"name": "Project name",
"packs": {
"behaviorPack": "./packs/BP",
"resourcePack": "./packs/RP"
},
"worlds": [
"./worlds/hello"
],
"regolith": {
...
}
}
config.json > regolith > profiles > default > filters > 0
{
"settings": {
"package": {
"mcworld": { },
"world": "0"
}
}
}
config.json
{
"name": "Project name",
"packs": {
"behaviorPack": "./packs/BP",
"resourcePack": "./packs/RP",
"worldTemplate": "./packs/myWorld"
},
"regolith": {
...
}
}
config.json > regolith > profiles > default > filters > 0
{
"settings": {
"package": {
"mcworld": { },
"world": "worldTemplate"
}
}
}
config.json > regolith > profiles > default > filters > 0
{
"settings": {
"package": {
"mcworld": { },
"world": "./packs/myWorld"
}
}
}
Don't include packs.
Reference the packs but don't include them within the world download.
Reference the packs and include them within the world file
config.json > regolith > profiles > default > filters > 0
{
"settings": {
"package_location": "./build"
}
}
by default, it converts your project name to snake_case, but if you'd like to have a custom name, you can use the file_name settings property.
config.json > regolith > profiles > default > filters > 0
{
"settings": {
"file_name": "./my_pack"
}
}