Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipes cannot be created #3923

Open
MrHell228 opened this issue Nov 19, 2023 · 0 comments
Open

Recipes cannot be created #3923

MrHell228 opened this issue Nov 19, 2023 · 0 comments
Labels
status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage type: bug Something isn't working

Comments

@MrHell228
Copy link
Contributor

MrHell228 commented Nov 19, 2023

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 MrHell228 added status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage type: bug Something isn't working labels Nov 19, 2023
@MrHell228 MrHell228 changed the title Recipe Registry Recipes cannot be created Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant