Jump to content

[SOLVED][1.12] Recipes


GodsVictory

Recommended Posts

You do know that your shaped recipe requires the input sand to be in the center of the 3x3 grid, right?  And only that space.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

The log should tell you why the recipe is incorrect.

 

I suspect it's the same issue as this thread, you haven't specified the metadata for an Item with subtypes (minecraft:sand, which is an instance of ItemMultiTexture). You need to specify the metadata with the data property.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

1 hour ago, Draco18s said:

You do know that your shaped recipe requires the input sand to be in the center of the 3x3 grid, right?  And only that space.

Yes

 

1 hour ago, Choonster said:

The log should tell you why the recipe is incorrect.

 

I suspect it's the same issue as this thread, you haven't specified the metadata for an Item with subtypes (minecraft:sand, which is an instance of ItemMultiTexture). You need to specify the metadata with the data property.

 

I changed it to:

 

{
  "type": "minecraft:crafting_shaped",
  "pattern": [
    "   ",
    " S ",
    "   "
  ],
  "key": {
    "S": {
      "item": "minecraft:sand",
      "data": 0
    }
  },
  "result": {
    "item": "minecraft:sand",
    "data": 0
  }
}

 

It's still not working

Link to comment
Share on other sites

This works for me:

 

{
    "type": "minecraft:crafting_shaped",
    "group": "planks",
    "pattern": [
        "   ",
        " A ",
        "   "
        
    ],
    "key": {
        "A": {
            "item": "minecraft:sand",
             "data": 0
        }
    },
    "result": {
        "item": "minecraft:sand",
        "count": 1,
         "data": 0
    }
}

 

Screenshot:

Spoiler

2017-08-02_16.37.55.png

 

Edited by Corgam
Link to comment
Share on other sites

10 hours ago, Choonster said:

 

Are there any errors in the log?

no, although I am getting this:

[10:11:24] [main/INFO]: FML has found a non-mod file MobRecipes-1.12-1.0.0.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.

 

 

35 minutes ago, Corgam said:

This works for me:

 


{
    "type": "minecraft:crafting_shaped",
    "group": "planks",
    "pattern": [
        "   ",
        " A ",
        "   "
        
    ],
    "key": {
        "A": {
            "item": "minecraft:sand",
             "data": 0
        }
    },
    "result": {
        "item": "minecraft:sand",
        "count": 1,
         "data": 0
    }
}

 

Screenshot:

  Reveal hidden contents

2017-08-02_16.37.55.png

 

What's in your main class? I tried that and still can't get it to work.

Link to comment
Share on other sites

12 minutes ago, GodsVictory said:

no, although I am getting this:


[10:11:24] [main/INFO]: FML has found a non-mod file MobRecipes-1.12-1.0.0.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.

 

 

What's in your main class? I tried that and still can't get it to work.

I just have a file "sand.json" in assets.mymodid.recipes folder and I think no other code is required

Link to comment
Share on other sites

If your code doesn't change (the java files) then Eclipse doesn't (always) check to see if the resources have changed.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
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.
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...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

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