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

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.

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.

  • Author
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

2 hours ago, GodsVictory said:

It's still not working

 

Are there any errors in the log?

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.

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

  • Author
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.

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

  • Author

ok, I seem to have got it working. I simply deleted my build directory and the rebuilt, not sure what exactly was causing it.

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.

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.