Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • How to get an item's recipe?
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
Geforce

How to get an item's recipe?

By Geforce, July 21, 2015 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Geforce    13

Geforce

Geforce    13

  • Stone Miner
  • Geforce
  • Forge Modder
  • 13
  • 86 posts
Posted July 21, 2015

Hey guys,

 

I was wondering, is there any easy way to get the recipe for a given item/block? I was making a "manual" item that describes all the blocks in my mod, and it'll be nice if I could draw the block's recipe right in the manual's GUI, just like the CraftGuide mod. Any ideas?

 

Thanks.

  • Quote

Potato's have skin. I have skin. Therefore, i am a potato.

 

Follow me on Twitter!

http://www.twitter.com/I_Mod_Minecraft

Share this post


Link to post
Share on other sites

diesieben07    7596

diesieben07

diesieben07    7596

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7596
  • 55111 posts
Posted July 21, 2015

Well, first there is no one recipe for an Item. An Item could have multiple recipes. You can do this by iterating the list of recipes (CraftingManager.getRecipeList()) manually and searching for the right recipe.

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • OrneryHandle
      1.16.5 beta crash

      By OrneryHandle · Posted 7 minutes ago

      Thanks anyway.
    • diesieben07
      1.16.5 beta crash

      By diesieben07 · Posted 8 minutes ago

      You can, but if the mods are broken then its not really Forge's fault.
    • OrneryHandle
      1.16.5 beta crash

      By OrneryHandle · Posted 15 minutes ago

      It's latest.log. Will try without either optifine or better weather. EDIT: Didn't crash. Really rather annoyed. I should be able to use the mods I want....
    • diesieben07
      Register a Custom Command

      By diesieben07 · Posted 16 minutes ago

      Use RegisterCommandsEvent.
    • diesieben07
      1.16.5 beta crash

      By diesieben07 · Posted 18 minutes ago

      That is not the debug.log. You also still have BetterWeather installed.
  • Topics

    • OrneryHandle
      12
      1.16.5 beta crash

      By OrneryHandle
      Started 1 hour ago

    • monkeysHK
      3
      Register a Custom Command

      By monkeysHK
      Started 16 hours ago

    • mightymoy
      5
      Cant craft items in modded server

      By mightymoy
      Started 6 hours ago

    • Guy:)
      1
      {Solved}Forge 1.12.2 crashing before the window pops up

      By Guy:)
      Started 1 hour ago

    • Klarks
      27
      [1.16.4] what difference between custom slots and EquipmentSlotType

      By Klarks
      Started Yesterday at 06:22 AM

  • Who's Online (See full list)

    • OrneryHandle
    • Choonster
    • senpai9000
    • diesieben07
    • Luis_ST
    • monkeysHK
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • How to get an item's recipe?
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community