Siphalor / nbt-crafting

A 1.15+ fabric Minecraft mod to enable nbt related recipe stuff
https://modrinth.com/mod/nbt-crafting
Apache License 2.0
49 stars 26 forks source link

[bug] custom brewing recipes do not play sound #94

Closed maityyy closed 2 years ago

maityyy commented 2 years ago

MC 1.18.2, NBT Crafting 1.18:2.1.0+

When a brewing stand has brewed a potion, the SoundEvents.BLOCK_BREWING_STAND_BREW sound is played. However, this does not happen for custom potions, like:

{
    "type": "nbtcrafting:brewing",
    "base": { "potion": "minecraft:awkward" },
    "ingredient": [
        { "item": "minecraft:slime_ball" },
        { "item": "minecraft:rabbit_foot" }
    ],
    "result": {
        "item": "minecraft:potion",
        "data": {
            "Potion": "minecraft:water",
            "CustomPotionEffects": [
                {
                    "Id": 8,
                    "Duration": 4800
                }
            ],
            "display": { "Name": "{\"translate\":\"item.minecraft.potion\"}" }
        }
    }
}

This line is missing here. It is in the vanilla implementation of this method, but NBT Crafting seems to have forgotten to add it.

world.syncWorldEvent(WorldEvents.BREWING_STAND_BREWS, pos, 0);
maityyy commented 2 years ago

image