Skip to content

Brewing Stand fails to brew custom potions #71

Open

Description

@TZTGa

Describe the bug
I created a custom recipe for brewing stands but it didn't work.

The code
{ "group" : "", "hidden" : false, "priority" : "NORMAL", "exactItemMeta" : true, "conditions" : [ { "id" : "world_name", "option" : "IGNORE", "names" : [ ] }, { "id" : "craft_limit", "option" : "IGNORE", "limit" : 0 }, { "id" : "world_biome", "option" : "IGNORE", "biomes" : [ ] }, { "id" : "world_time", "option" : "IGNORE", "time" : 0 }, { "id" : "weather", "option" : "IGNORE", "weather" : "NONE" }, { "id" : "permission", "option" : "IGNORE", "permission" : "customcrafting.craft.%namespace%.%recipe_name%" }, { "id" : "elite_crafting_table", "option" : "IGNORE", "elite_crafting_tables" : [ ] }, { "id" : "advanced_workbench", "option" : "IGNORE" }, { "id" : "player_experience", "option" : "IGNORE", "experience" : 0 }, { "id" : "craft_delay", "option" : "IGNORE", "delay" : 0 } ], "ingredients" : { "items" : [ { "custom_amount" : 1, "wolfyutilities" : "customcrafting:potion/atavistic_orb" } ], "tags" : [ ] }, "fuel_cost" : 1, "brew_time" : 400, "allowed_items" : { "items" : [ { "custom_amount" : 1, "wolfyutilities" : "customcrafting:potion/powerful_potion" } ], "tags" : [ ] }, "results" : { "items" : [ { "custom_amount" : 1, "wolfyutilities" : "customcrafting:potion/atavistic_potion" } ], "tags" : [ ], "extensions" : [ ] }, "duration_change" : 0, "amplifier_change" : 0, "reset_effects" : false, "color" : null, "effect_removals" : [ ], "effect_additions" : [ ], "effect_upgrades" : [ ], "required_effects" : [ ] }

The Log Output
[05:00:33 WARN]: [CustomCrafting] Task #1812 for CustomCrafting v1.7.1.3 generated an exception java.lang.NoSuchMethodError: org.bukkit.craftbukkit.v1_17_R1.block.CraftBrewingStand: method 'void <init>(org.bukkit.block.Block)' not found at me.wolfyscript.utilities.api.nms.v1_17_R1_P1.block.NMSBrewingStand.<init>(NMSBrewingStand.java:9) ~[wolfyutilities-1.7.3.0.jar:?] at me.wolfyscript.utilities.api.nms.v1_17_R1_P1.BlockUtilImpl.getNmsBrewingStand(BlockUtilImpl.java:16) ~[wolfyutilities-1.7.3.0.jar:?] at me.wolfyscript.customcrafting.listeners.BrewingStandListener.lambda$onInv$4(BrewingStandListener.java:94) ~[customcrafting-spigot-1.7.1.3f.jar:?] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[minecraft_server.jar:git-Paper-349] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[minecraft_server.jar:git-Paper-349] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1564) ~[minecraft_server.jar:git-Paper-349] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:490) ~[minecraft_server.jar:git-Paper-349] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1480) ~[minecraft_server.jar:git-Paper-349] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1279) ~[minecraft_server.jar:git-Paper-349] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[minecraft_server.jar:git-Paper-349] at java.lang.Thread.run(Thread.java:831) ~[?:?]
Screenshots
If applicable, add screenshots to help explain your problem.
image

Server (please complete the following information):

  • Server Software Spigot
  • Minecraft version 1.17.1
  • Java version 16

Additional context
Add any other context about the problem here.

Activity

  1. TZTGa commented on Oct 21, 2021

    @TZTGa
    Author

    To clarify,the bottles are Awkward Potions, the expected result is the potion the mouse was pointing to. Thx!

  2. WolfyScript commented on Oct 22, 2021

    @WolfyScript
    Owner

    You can not create custom potion ingredients that are the same as the vanilla ones.
    So no gunpowder, glowstone dust, sugar, etc.

    Looks like I should implement a limit in the GUI to prevent such items from being added.

  3. TZTGa commented on Oct 22, 2021

    @TZTGa
    Author

    Thanks!

  4. TZTGa commented on Oct 22, 2021

    @TZTGa
    Author

    It didnt work this time despite I used no Vanilla ingredients.
    Screenshot:
    image

    The same warning
    [04:14:14 WARN]: [CustomCrafting] Task #178 for CustomCrafting v1.7.1.3 generated an exception
    java.lang.NoSuchMethodError: org.bukkit.craftbukkit.v1_17_R1.block.CraftBrewingStand: method 'void (org.bukkit.block.Block)' not found
    at me.wolfyscript.utilities.api.nms.v1_17_R1_P1.block.NMSBrewingStand.(NMSBrewingStand.java:9) ~[wolfyutilities-1.7.3.0.jar:?]
    at me.wolfyscript.utilities.api.nms.v1_17_R1_P1.BlockUtilImpl.getNmsBrewingStand(BlockUtilImpl.java:16) ~[wolfyutilities-1.7.3.0.jar:?]
    at me.wolfyscript.customcrafting.listeners.BrewingStandListener.lambda$onInv$4(BrewingStandListener.java:94) ~[customcrafting-spigot-1.7.1.3f.jar:?]
    at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[minecraft_server.jar:git-Paper-349]
    at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[minecraft_server.jar:git-Paper-349]
    at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1564) ~[minecraft_server.jar:git-Paper-349]
    at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:490) ~[minecraft_server.jar:git-Paper-349]
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1480) ~[minecraft_server.jar:git-Paper-349]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1279) ~[minecraft_server.jar:git-Paper-349]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[minecraft_server.jar:git-Paper-349]
    at java.lang.Thread.run(Thread.java:831) ~[?:?]

  5. TZTGa commented on Oct 22, 2021

    @TZTGa
    Author

    Code in data
    {
    "group" : "",
    "hidden" : false,
    "priority" : "NORMAL",
    "exactItemMeta" : true,
    "conditions" : [ {
    "id" : "world_name",
    "option" : "IGNORE",
    "names" : [ ]
    }, {
    "id" : "craft_limit",
    "option" : "IGNORE",
    "limit" : 0
    }, {
    "id" : "world_biome",
    "option" : "IGNORE",
    "biomes" : [ ]
    }, {
    "id" : "world_time",
    "option" : "IGNORE",
    "time" : 0
    }, {
    "id" : "weather",
    "option" : "IGNORE",
    "weather" : "NONE"
    }, {
    "id" : "permission",
    "option" : "IGNORE",
    "permission" : "customcrafting.craft.%namespace%.%recipe_name%"
    }, {
    "id" : "elite_crafting_table",
    "option" : "IGNORE",
    "elite_crafting_tables" : [ ]
    }, {
    "id" : "advanced_workbench",
    "option" : "IGNORE"
    }, {
    "id" : "player_experience",
    "option" : "IGNORE",
    "experience" : 0
    }, {
    "id" : "craft_delay",
    "option" : "IGNORE",
    "delay" : 0
    } ],
    "ingredients" : {
    "items" : [ {
    "custom_amount" : 1,
    "wolfyutilities" : "customcrafting:potion/atavistic_orb"
    } ],
    "tags" : [ ],
    "replaceWithRemains" : true
    },
    "fuel_cost" : 1,
    "brew_time" : 400,
    "allowed_items" : {
    "items" : [ {
    "custom_amount" : 1,
    "wolfyutilities" : "customcrafting:potion/effective_potion"
    } ],
    "tags" : [ ],
    "replaceWithRemains" : true
    },
    "results" : {
    "items" : [ {
    "custom_amount" : 1,
    "wolfyutilities" : "customcrafting:potion/atavistic_potion"
    } ],
    "tags" : [ ],
    "extensions" : [ ]
    },
    "duration_change" : 0,
    "amplifier_change" : 0,
    "reset_effects" : false,
    "color" : null,
    "effect_removals" : [ ],
    "effect_additions" : [ ],
    "effect_upgrades" : [ ],
    "required_effects" : [ ]
    }

  6. WolfyScript commented on Oct 27, 2021

    @WolfyScript
    Owner

    Ah ok... that issue is because of some changes internally in Bukkit. Next 2.16 update will fix this. So for now you are not able to use BrewingRecipes.

  7. TZTGa commented on Oct 28, 2021

    @TZTGa
    Author

    OK, Thanks a lot! I look forward to your brilliant update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions