mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 23:27:09 +00:00
Support 24w37a and 24w38a
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user