Add partners, Immersive Weathering block growth (#231)

* Add partners: Immersive Weathering block growth

* Fix block state and modded block IDs

* Add categories

* Add custom rule tests

* Add missing translation
This commit is contained in:
Misode
2022-05-14 02:41:01 +02:00
committed by GitHub
parent b2d7ee49c6
commit 114164c740
19 changed files with 357 additions and 18 deletions

View File

@@ -124,6 +124,9 @@ export function ProjectProvider({ children }: { children: ComponentChildren }) {
export function getFilePath(file: ProjectFile) {
const [namespace, id] = file.id.includes(':') ? file.id.split(':') : ['minecraft', file.id]
if (file.type === 'pack_mcmeta') {
return 'pack.mcmeta'
}
const gen = config.generators.find(g => g.id === file.type)
if (!gen) {
throw new Error(`Cannot find generator of type ${file.type}`)