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,

I have been working on a mod's custom recipe system and need a bit of help with the resource location for the recipes. I would like to do a system like I have illustrated in the picture attached. The general category would house several various sub categories for specific machine recipes. I know how to have a single folder within the recipes directory. However, I am not quite sure how to do this, and I can't seem to turn anything up on google. If anyone could help me out with this, I would appreciate it.

New Project(4).png

You can already do this within data recipes, it's just not particularly useful since the data is sorted by its type and not its file location. Why make a custom system rather than use vanilla's RecipeManager?

  • Author

It's mainly for organizational purposes, to keep the code easier to read. I'm not doing anything with the vanilla crafting table recipes or furnace recipes.

17 minutes ago, skip999 said:

It's mainly for organizational purposes, to keep the code easier to read. I'm not doing anything with the vanilla crafting table recipes or furnace recipes.

That doesn't mean you need a custom recipe system. The RecipeManager can support any recipe as long as you give it a recipe type and serializer to work with. The IRecipe class could then be up for interpretation of implementation.

As for organizational purposes, the recipe manager will check any subdirectories, so it makes no difference.

  • Author

By custom recipe I mean the recipe categories for the machines. I suppose I should have explained that better.

3 minutes ago, skip999 said:

By custom recipe I mean the recipe categories for the machines. I suppose I should have explained that better.

Ok, just add a new IRecipeType. Boom, new category.

  • Author

I think I might be explaining myself poorly. I know how to do that. The problem is that when I do that, I can only have one folder inside the \recipes directory e.g. \recipes\mineralcrusher . What I want to do is something along the lines of \recipes\o2o\mineralcrusher. I'm not sure how to do that.

13 minutes ago, skip999 said:

The problem is that when I do that, I can only have one folder inside the \recipes directory e.g. \recipes\mineralcrusher . What I want to do is something along the lines of \recipes\o2o\mineralcrusher. I'm not sure how to do that.

You can have a subdirectory within the recipes. If you're talking about generating them with RecipeProvider, then you would need to write the handling for that within the #save method or something similar.

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.