Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hello all, new day, new low effort meme

spacer.png

 

On to the problem, I've decided to do datagen for the recipes for my grinder, which you can see here:
https://github.com/MistaOmega/Opes/blob/master/src/main/java/mistaomega/opes/datagen/GrindingRecipeBuilder.java

It's basically a slightly rewritten ShapedRecipeBuilder without things like keys and whatnot

 

The thing I would like to do is set a constant location for what I make, say for example, I need a recipe for diamonds from diamond ore, this will go under opes/recipes/grinder/diamond.json

I thought this line would be the culprit: https://github.com/MistaOmega/Opes/blob/master/src/main/java/mistaomega/opes/datagen/GrindingRecipeBuilder.java#L84

More importantly the "pathIn" field, but no matter what I change it to, it always outputs as minecraft/recipes/diamond.json

 

Where could I set this file path so that it goes where I would like it to?

 

Thank you all, covid safe hugs to whoever has the big brain to solve❤️

~Omega

Edited by MistaOmega

You use the #build(Consumer) overload of your GrindingRecipeBuilder, which uses the registry name of the result ItemStack for the recipe ID. In all of your cases, the items come from vanilla Minecraft ("minecraft:diamond", "minecraft:glowstone", etc.), meaning the recipe ID is the same so they are stored under the "minecraft" namespace. Use the #build(Consumer, ResourceLocation) overload to pass in your own custom recipe ID ("opes:grinder/diamond" for 'data/opes/recipes/grinder/diamond').

  • Author
8 hours ago, sciwhiz12 said:

You use the #build(Consumer) overload of your GrindingRecipeBuilder, which uses the registry name of the result ItemStack for the recipe ID. In all of your cases, the items come from vanilla Minecraft ("minecraft:diamond", "minecraft:glowstone", etc.), meaning the recipe ID is the same so they are stored under the "minecraft" namespace. Use the #build(Consumer, ResourceLocation) overload to pass in your own custom recipe ID ("opes:grinder/diamond" for 'data/opes/recipes/grinder/diamond').

 

10 hours ago, poopoodice said:

Not sure but you did not pass your mod id into the resource location?

Thank you both :D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.