Skip to content

The Betweenlands Animator recipe builder fails to register simple item output recipes #356

@AlexCookieDev

Description

@AlexCookieDev

The .register() call on IAnimatorRecipe recipe builder doesn't accommodate for recipes that do not spawn an entity or use a loot table.
Here is the AnimatorRecipe.java from The Betweenlands source code for reference.

So this:

mods.thebetweenlands.animator.recipeBuilder()
    .input(item('thebetweenlands:volarpad'))
    .output(item('thebetweenlands:volarkite'))
    .life(4)
    .fuel(8)
    .register()

will fail to be registered, but this:

mods.thebetweenlands.animator.recipeBuilder()
    .input(item('thebetweenlands:volarpad'))
    .lootTable(resource('minecraft:entities/zombie'))
    .life(4)
    .fuel(8)
    .register()

or this:

mods.thebetweenlands.animator.recipeBuilder()
    .input(item('thebetweenlands:volarpad'))
    .output(item('thebetweenlands:volarkite'))
    .life(4)
    .fuel(8)
    .entity(entity('minecraft:xp_orb').getEntityClass())
    .register()

will be registered, but since both the output item and an entity is specified, the last one will be added as 2 duplicate recipes with unpredictable behavior.

This also applies to the examples on the wiki, the first example recipe does not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions