Add 1.20.2

This commit is contained in:
Misode
2023-10-02 18:43:47 +02:00
parent bbae8af938
commit 3355d083c0
6 changed files with 38 additions and 14 deletions

View File

@@ -19,7 +19,7 @@ interface Props {
export function Customized({}: Props) {
const { locale } = useLocale()
// const { version, changeVersion } = useVersion()
const version = '1.20'
const version = '1.20.2'
const changeVersion = () => {}
useTitle(locale('title.customized'))
@@ -87,7 +87,7 @@ export function Customized({}: Props) {
<span class={tab === 'basic' ? 'selected' : ''} onClick={() => setTab('basic')}>{locale('customized.basic')}</span>
<span class={tab === 'structures' ? 'selected' : ''} onClick={() => setTab('structures')}>{locale('customized.structures')}</span>
<span class={tab === 'ores' ? 'selected' : ''} onClick={() => setTab('ores')}>{locale('customized.ores')}</span>
<VersionSwitcher value={version} onChange={changeVersion} allowed={['1.20']} />
<VersionSwitcher value={version} onChange={changeVersion} allowed={['1.20.2']} />
</div>
<div class="customized-tab">
{tab === 'basic' && <BasicSettings {...{model, initialModel, changeModel}} />}

View File

@@ -5,10 +5,10 @@ import { message } from '../Utils.js'
import { initPartners } from '../partners/index.js'
import { fetchData } from './DataFetcher.js'
export const VersionIds = ['1.15', '1.16', '1.17', '1.18', '1.18.2', '1.19', '1.19.3', '1.19.4', '1.20'] as const
export const VersionIds = ['1.15', '1.16', '1.17', '1.18', '1.18.2', '1.19', '1.19.3', '1.19.4', '1.20', '1.20.2'] as const
export type VersionId = typeof VersionIds[number]
export const DEFAULT_VERSION: VersionId = '1.20'
export const DEFAULT_VERSION: VersionId = '1.20.2'
export type BlockStateRegistry = {
[block: string]: {
@@ -49,6 +49,7 @@ const versionGetter: {
'1.19.3': () => import('@mcschema/java-1.19.3'),
'1.19.4': () => import('@mcschema/java-1.19.4'),
'1.20': () => import('@mcschema/java-1.20'),
'1.20.2': () => import('@mcschema/java-1.20.2'),
}
export let CachedDecorator: INode<any>

View File

@@ -100,6 +100,11 @@
"id": "1.20",
"ref": "1.20.1",
"pack_format": 15
},
{
"id": "1.20.2",
"ref": "1.20.2",
"pack_format": 18
}
],
"generators": [