Sponge icon indicating copy to clipboard operation
Sponge copied to clipboard

Recipes cannot be created

Open MrHell228 opened this issue 1 year ago • 0 comments

Affected Product(s)

SpongeForge

Version

1.16.5-36.2.5-8.2.0

Operating System

Windows

Java Version

openjdk 11.0.2

Plugins/Mods

-

Describe the bug

Whenever I build a recipe I get an exception. I tried to create Shapeless, Shaped and Cooking recipes and got the same result. Code to reproduce:

@Listener
public void recipeRegistry(final RegisterDataPackValueEvent< RecipeRegistration> e) {
	if (e.type() != DataPackTypes.RECIPE)
		return;
	
	RecipeRegistration r = ShapelessCraftingRecipe.builder()
			.key(ResourceKey.of("myPlugin", "recipe"))
			.addIngredients(Ingredient.of(ItemTypes.ACACIA_BOAT))
			.result(ItemStack.of(ItemTypes.DRAGON_EGG))
			.build();
	e.register(r);
}

Link to logs

https://gist.github.com/MrHell228/482e86321667da6fbd98844d45f7600d

MrHell228 avatar Nov 19 '23 13:11 MrHell228