Jump to content

Crafting recipe doesnt work


GamingTechnologies

Recommended Posts

Hello, I have a sword I wanna craft but it doesnt work, I coped the diamond sword recipe file and changed the diamond and result to my modded item but it won't work, any advise?

 

{
  "type": "minecraft:crafting_shaped",
  "pattern": [
    "X",
    "X",
    "#"
  ],
  "key": {
    "#": {
      "tag": "forge:rods/wooden"
    },
    "X": {
      "tag": "realism:ruby"
    }
  },
  "result": {
    "item": "realism:ruby_sword"
  }
}

Link to comment
Share on other sites

Your .json looks valid, so you don't have to worry about syntax.

 

Where is this .json located? It should be placed in resources\data\modid\recipes. If it's already there, is everything spelled correctly in both this .json and the directory?

Follow these rules when talking to me, and we'll get along fine.

1).I know Java fairly well. I don't know as much about modding. They are not the same, don't compare them.

2). I consider myself to always be learning. I make mistakes, you make mistakes. Who doesn't?

3). Insult me, and I will leave the thread. I have a real life, I don't have time to throw petty insults in a Minecraft Modding forum.

 

ModMCdl - Co-Founder and Director of Design for Artemis Game Studios

Link to comment
Share on other sites

You have "tag": "realism:ruby" as an ingredient, have you made sure such a tag exists?

If you just want to use that specific item, you'll want to use "item": "realism:ruby" instead.

Edited by imacatlolol

I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.

Link to comment
Share on other sites

12 hours ago, ModMCdl said:

Your .json looks valid, so you don't have to worry about syntax.

 

Where is this .json located? It should be placed in resources\data\modid\recipes. If it's already there, is everything spelled correctly in both this .json and the directory?

It is in the right place, I have other recipes for blocks that work

12 hours ago, imacatlolol said:

You have "tag": "realism:ruby" as an ingredient, have you made sure such a tag exists?

If you just want to use that specific item, you'll want to use "item": "realism:ruby" instead.

thats right, I needed Item instead of tag, my sword recipe works but my other recipes for my tools doesn't work. This is my pickaxe recipe, can you guys help me?

 

  {
    "type": "minecraft:crafting_shaped",
    
    "pattern":
    [
        "III",
        " I ",
        " S "
    ],
    
    "key":
    {
        "I": { "item": "realism:ruby" },
        "S": { "item": "minecraft:stick" }    
    },
    
    "result": { "item": "realism:ruby_pickaxe" }
}

 

Edited by GamingTechnologies
Link to comment
Share on other sites

1 hour ago, GamingTechnologies said:

"S": { "item": "minecraft:stick" }  

Also, you used the specific item this time instead of the tag.

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.