Create Mixer bucket duplicating glitch while creating soap
KostromDan opened this issue · 7 comments
One user of my modpack reported this issue.
https://sloth.cdnja.co/v/op/Opewj.mp4
i would add a custom one myself but that wont remove the existing one that's there. i think that create should interpret buckets in a shapeless recipe as a fluid
Ok, I'll try to fix this using kubejs and report to create team.
the bug is on create side here. Im not adding a dedicated recipe for soap in mixer
i would add a custom one myself but that wont remove the existing one that's there. i think that create should interpret buckets in a shapeless recipe as a fluid
ServerEvents.recipes((event) => {
event.forEachRecipe({ input: 'minecraft:water_bucket', type: 'minecraft:crafting_shapeless' }, (recipe) => {
// Loop through every shapeless water bucket recipe and get its other ingredients.
const new_ingredients = [];
recipe.getOriginalRecipeIngredients().forEach((ingredient) => {
ingredient.stacks.forEach((recipe_item) => {
if (recipe_item === '1 water_bucket') return;
new_ingredients.push(recipe_item);
});
});
// Replace the water bucket with water fluid!
new_ingredients.push(Fluid.of('minecraft:water', 1000));
// Blacklist mixing recipes that are already in Create
if (recipe.result === 'create:dough' || recipe.result === 'create:wheat_dough') return;
// Add the old recipe's ingredients to a new mixing recipe
recipe.id(`${recipe.getId()}_manual_only`);
event.recipes.createMixing(
recipe.result,
new_ingredients,
);
});
})```