Jump to content

How do I make a recipe that requires specific dyes?


daniel_rr1

Recommended Posts

So I'm trying to make a recipe for an LED, and I want it to use rose red, cactus green, and lapis lazuli. As I recently found out though, Minecraft 1.12.2 doesn't call them by their names, but instead minecraft:dye and then a data value (1, 2, and 4). So how do I include this in the recipe? Here is the relevant section of the json file:

 

"key": {
        "#": {
            "item": "minecraft:glass_pane"
        },
        "R": {
            "item": "minecraft:dye"
        },
        "G": {
            "item": "minecraft:dye"
        },
        "B": {
            "item": "minecraft:dye"
        },
        "i": {
            "item": "minecraft:iron_ingot"
        }
    },

 

Link to comment
Share on other sites

Okay I managed to figure it out after coming across a different tutorial than what I was using. If anyone else comes across this problem, the solution is to add another field under "item" called "data", and then give it the number. Don't forget to add a comma to the end of the item line! Here's how my fixed code looks:

 

"key": {
        "#": {
            "item": "minecraft:glass_pane"
        },
        "R": {
            "item": "minecraft:dye",
            "data": 1
        },
        "G": {
            "item": "minecraft:dye",
            "data": 2
        },
        "B": {
            "item": "minecraft:dye",
            "data": 4
        },
        "i": {
            "item": "minecraft:iron_ingot"
        }

 

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.