Skip to content

RecipeUtil.removeRecipeFor prevents creating world with TechReborn #48

@JFronny

Description

@JFronny

Describe the bug
My mod recently began having compatibility problems with TechReborn. I decided to try to find out where the issue lies. Apparently a mod only containing the line RecipeUtil.removeRecipeFor(new ItemStack(Items.DIAMOND_AXE)); inside onInitialize and a copy of cotton-datapack and dependencies as jij mods:

modImplementation "io.github.cottonmc.cotton:cotton-datapack:1.0.5"
include "io.github.cottonmc.cotton:cotton-datapack:1.0.5"
include "io.github.cottonmc:Jankson-Fabric:3.0.0+j1.2.0"
include "io.github.cottonmc.cotton:cotton-config:1.0.0-rc.7"
include "io.github.cottonmc.cotton:cotton-logging:1.0.0-rc.4"

causes minecraft to throw an exception when creating a new world. The game doesn't crash but displays:
Failed to load datapacks, can't proceed with server load (console)

To Reproduce
Steps to reproduce the behavior:

  1. Create the mod described above (or use my artifact: here)
  2. Create a new minecraft instance (I used MultiMC for convenience) with the mod, fabric api 0.14.1+build.272-1.16 and TechReborn 1.16-3.4.3+build.72 (I have also tested other versions, TechReborn stable crashes too)
  3. Try to create a new world
  4. See error

Expected behavior
I should be able to create a new world

Screenshots
here

Version of the (please complete the following information):

  • cotton-datapack:1.0.5
  • Jankson-Fabric:3.0.0+j1.2.0
  • cotton-config:1.0.0-rc.7
  • cotton-logging:1.0.0-rc.4
  • TechReborn-1.16-3.4.3+build.72
  • fabric-api-0.14.1+build.372-1.16
  • Minecraft 1.16.1

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