Jump to content

[SOLVED]1.12.2 Some items doesn't work in recipes json file


Recommended Posts

Posted (edited)

Hey guys,

I've just started modding a week ago so I'm pretty new to this, but I like to think I know the basics of Java.

Some items doesn't work in my "assets.lfm.recipes.recipe_example_item.json" as a crafting ingredient or result.

Here's my "recipe_example_item.json" for item "example_item".

recipe_example_item.json

{ 
    "type": "minecraft:crafting_shapeless",

    "ingredients": 
    [

    {
      "item": "minecraft:dirt"
    },

    ],

    "result": 
    {
        "item": "lfm:example_item",
        "count": 1
    }
}

 

I have a list of tested items not usable in crafting: golden_apple, dirt, grass_block, glowstone, stone, any of the brewed potions except potion(Water bottle), and I'm sure many more.

Edited by SpinAttack
Posted

Well first of all this recipe's json is broken, it's syntax is invalid. 

Secondly if the item in the recipe has subitems(read: metadata that defines different states) you need to specify the data property in your recipe too.

12 minutes ago, SpinAttack said:

golden_apple

has 2 variants - normal apple and notch apple thus requires the data property

12 minutes ago, SpinAttack said:

dirt

Has 2 variants - dirt and coarse dirt thus requires the data property

12 minutes ago, SpinAttack said:

grass_block

There is no item with a registry name of grass_block.

12 minutes ago, SpinAttack said:

glowstone

This should work without issues since it has no subitems.

12 minutes ago, SpinAttack said:

stone

Has 7 variants - stone, granite, diorite and andesite(+ polished variants) thus requires the data property

12 minutes ago, SpinAttack said:

any of the brewed potions except potion(Water bottle)

Since potions use NBT data to differentiate between different potion types you would need to specify that NBT data in the ingredient. Unfortunately 1.12.2 isn't capable of recognizing NBT in ingredients. You would need a custiom recipe ingredient parser.

  • Thanks 1

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • seguridad seguridad
    • I am creating a server with mods but when i try tostart it it say in the logs:   [29Jan2025 20:36:50.715] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /server/libraries/net/minecraftforge/fmlcore/1.20.1-47.3.27/fmlcore-1.20.1-47.3.27.jar is missing mods.toml file 159[29Jan2025 20:36:50.717] [main/DEBUG] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Considering mod file candidate /server/libraries/net/minecraftforge/javafmllanguage/1.20.1-47.3.27/javafmllanguage-1.20.1-47.3.27.jar 160[29Jan2025 20:36:50.717] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /server/libraries/net/minecraftforge/javafmllanguage/1.20.1-47.3.27/javafmllanguage-1.20.1-47.3.27.jar is missing mods.toml file 161[29Jan2025 20:36:50.718] [main/DEBUG] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Considering mod file candidate /server/libraries/net/minecraftforge/lowcodelanguage/1.20.1-47.3.27/lowcodelanguage-1.20.1-47.3.27.jar 162[29Jan2025 20:36:50.718] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /server/libraries/net/minecraftforge/lowcodelanguage/1.20.1-47.3.27/lowcodelanguage-1.20.1-47.3.27.jar is missing mods.toml file 163[29Jan2025 20:36:50.719] [main/DEBUG] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Considering mod file candidate /server/libraries/net/minecraftforge/mclanguage/1.20.1-47.3.27/mclanguage-1.20.1-47.3.27.jar 164[29Jan2025 20:36:50.719] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /server/libraries/net/minecraftforge/mclanguage/1.20.1-47.3.27/mclanguage-1.20.1-47.3.27.jar is missing mods.toml file
    • How do you configure the entity reach of a custom weapon? Asking for 1.21 Minecraft parchment
    • This topic is over a year old. If you are having an issue, please read the FAQ for the proper way to post logs, and create your own thread.
    • hello i have been trying to put this specific pack for a while now but ive been hit with a new error everytime. no matter if its a previous version or if i change the pack format it will just not work please help latest log:https://mclo.gs/b6Qra5d <----- this is with pack version 1.20 no changes done to it debug log: https://mclo.gs/jczkfRK
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

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