diff --git a/package-lock.json b/package-lock.json index ccf5b6f9..48d243dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "@mcschema/java-1.20.3": "^0.0.15", "@mcschema/java-1.20.5": "^0.0.40", "@mcschema/java-1.21": "^0.0.25", - "@mcschema/java-1.21.2": "^0.0.8", + "@mcschema/java-1.21.2": "^0.0.10", "@mcschema/locales": "^0.1.104", "@zip.js/zip.js": "^2.4.5", "brace": "^0.11.1", @@ -737,9 +737,9 @@ } }, "node_modules/@mcschema/java-1.21.2": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/@mcschema/java-1.21.2/-/java-1.21.2-0.0.8.tgz", - "integrity": "sha512-BG7R5w/C+XJ1j9nksL8Gslakl5FyZrKb+HxjVkBSzPmTGDFhaaqXd5Oy2LPH6WDvE75RlXURJVH6CvBhQUtgkA==", + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/@mcschema/java-1.21.2/-/java-1.21.2-0.0.10.tgz", + "integrity": "sha512-zDNvgI2UNqsZVixGjqyJ+vBRWz6B2TOBOettKYIjLFlBfK9LeP0+e+Dvh1p6zW5EWRchzlIS19mX8NDCbjx81w==", "dependencies": { "@mcschema/core": "^0.13.0" } @@ -4869,9 +4869,9 @@ } }, "@mcschema/java-1.21.2": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/@mcschema/java-1.21.2/-/java-1.21.2-0.0.8.tgz", - "integrity": "sha512-BG7R5w/C+XJ1j9nksL8Gslakl5FyZrKb+HxjVkBSzPmTGDFhaaqXd5Oy2LPH6WDvE75RlXURJVH6CvBhQUtgkA==", + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/@mcschema/java-1.21.2/-/java-1.21.2-0.0.10.tgz", + "integrity": "sha512-zDNvgI2UNqsZVixGjqyJ+vBRWz6B2TOBOettKYIjLFlBfK9LeP0+e+Dvh1p6zW5EWRchzlIS19mX8NDCbjx81w==", "requires": { "@mcschema/core": "^0.13.0" } diff --git a/package.json b/package.json index a6a0d79e..c7c03bcd 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@mcschema/java-1.20.3": "^0.0.15", "@mcschema/java-1.20.5": "^0.0.40", "@mcschema/java-1.21": "^0.0.25", - "@mcschema/java-1.21.2": "^0.0.8", + "@mcschema/java-1.21.2": "^0.0.10", "@mcschema/locales": "^0.1.104", "@zip.js/zip.js": "^2.4.5", "brace": "^0.11.1", diff --git a/src/app/components/previews/RecipePreview.tsx b/src/app/components/previews/RecipePreview.tsx index a0e9bb00..9eaccba8 100644 --- a/src/app/components/previews/RecipePreview.tsx +++ b/src/app/components/previews/RecipePreview.tsx @@ -136,6 +136,17 @@ function placeItems(version: VersionId, recipe: any, animation: number, itemTags } } } + } else if (type === 'crafting_transmute') { + const inputs = allIngredientChoices(version, recipe.input, itemTags) + if (inputs.length > 0) { + const choice = inputs[animation % inputs.length] + items.set('crafting.0', choice) + } + const materials = allIngredientChoices(version, recipe.material, itemTags) + if (materials.length > 0) { + const choice = materials[animation % materials.length] + items.set('crafting.1', choice) + } } else if (type === 'smelting' || type === 'smoking' || type === 'blasting' || type === 'campfire_cooking') { const choices = allIngredientChoices(version, recipe.ingredient, itemTags) if (choices.length > 0) {