Jump to content

[solved][1.13.2] how to use forge ore dictionary in recipes?


Torojima

Recommended Posts

The recipes of my mod as used in 1.12.x are not working in 1.13.2.

the recipes are for example

Spoiler

{
  "type": "crafting_shaped",
  "pattern": [
    "  S",
    " - ",
    "N  "
  ],
  "key": {
    "S": {
      "type": "forge:ore_dict",
      "ore": "stone"
    },
    "-":{
      "type": "forge:ore_dict",
      "ore": "stickWood"
    },
    "N":{
      "type": "forge:ore_dict",
      "ore": "nuggetGold"
    }
  },
  "result": {
    "item": "buildhelper:fillwandstone_item"
  }
}

the error message I am receiving for this recipe is

Spoiler

[14:51:35.794] [Server thread/ERROR] [minecraft/RecipeManager]: Parsing error loading recipe buildhelper:fillwandstone_item
com.google.gson.JsonSyntaxException: Unknown ingredient type: forge:ore_dict
    at net.minecraftforge.common.crafting.CraftingHelper.getIngredient(CraftingHelper.java:216) ~[?:?]
    at net.minecraft.item.crafting.Ingredient.fromJson(Ingredient.java:189) ~[?:?]
    at net.minecraft.item.crafting.ShapedRecipe.deserializeKey(ShapedRecipe.java:259) ~[?:?]
    at net.minecraft.item.crafting.ShapedRecipe.access$000(ShapedRecipe.java:25) ~[?:?]
    at net.minecraft.item.crafting.ShapedRecipe$Serializer.read(ShapedRecipe.java:283) ~[?:?]
    at net.minecraft.item.crafting.ShapedRecipe$Serializer.read(ShapedRecipe.java:279) ~[?:?]
    at net.minecraft.item.crafting.RecipeSerializers.deserialize(RecipeSerializers.java:47) ~[?:?]
    at net.minecraft.item.crafting.RecipeManager.onResourceManagerReload(RecipeManager.java:54) [?:?]
    at net.minecraft.resources.SimpleReloadableResourceManager.triggerReloadListeners(SimpleReloadableResourceManager.java:125) [?:?]
    at net.minecraft.resources.SimpleReloadableResourceManager.reload(SimpleReloadableResourceManager.java:101) [?:?]
    at net.minecraft.server.MinecraftServer.loadDataPacks(MinecraftServer.java:1378) [?:?]
    at net.minecraft.server.MinecraftServer.loadDataPacks(MinecraftServer.java:375) [?:?]
    at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:75) [?:?]
    at net.minecraft.server.integrated.IntegratedServer.init(IntegratedServer.java:95) [?:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:549) [?:?]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]

How should I use the ingredient type in 1.13.2?

Edited by Torojima

running minecraft on Mac OS X - Sierra --- creating code since 1986 ... --- मेरा दिल भारतवासी है!

width=289 height=100http://www.arno-saxena.de/pictures/chococraft/banner_signature.png[/img]

Link to comment
Share on other sites

yeah, the links are not really helping me, I know them already and my json syntax is good...

Edit: but it probably will help whoever is surfing in from somewhere reading this question :)

 

Anyway, the package net.minecraftforge.oredict has been removed from forge?! That's the reason the old entries are no longer valid. I've changed them all to minecraft items (except a few tags using the forge versions for the metal parts) and now it works.

 

Thus the correct answer would be to use the minecraft items in the recipes in 1.13.x since forge oredict is no longer available.

Edited by Torojima

running minecraft on Mac OS X - Sierra --- creating code since 1986 ... --- मेरा दिल भारतवासी है!

width=289 height=100http://www.arno-saxena.de/pictures/chococraft/banner_signature.png[/img]

Link to comment
Share on other sites

3 hours ago, Torojima said:

yeah, the links are not really helping me, I know them already and my json syntax is good...

Edit: but it probably will help whoever is surfing in from somewhere reading this question :)

 

Anyway, the package net.minecraftforge.oredict has been removed from forge?! That's the reason the old entries are no longer valid. I've changed them all to minecraft items (except a few tags using the forge versions for the metal parts) and now it works.

 

Thus the correct answer would be to use the minecraft items in the recipes in 1.13.x since forge oredict is no longer available.

 

Tags are the replacement for the Ore Dictionary. To my knowledge, every Ore Dictionary entry that was provided by Forge itself has been replaced with a corresponding item tag.

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

Makes sense :) because I now are using stuff like

"tag": "forge:nuggets/gold" and "tag": "forge:ingots/gold"

instead of formerly

"type": "forge:ore_dict","ore": "nuggetGold" and "type": "forge:ore_dict","ore": "ingotGold"

this is working well of course :D

 

But what I haven't found yet is a substitute for "type": "forge:ore_dict", "ore": "treeSapling", or "type": "forge:ore_dict","ore": "stickWood" so my mod would be able to use all other mods stick or sapling derivatives. I fell back to the minecraft vanilla "item": "minecraft:stick" and "tag": "minecraft:saplings". But now users can only use the vanilla items for the recipes obviously :)

 

The "tag": "forge:stick/wood" didn't do the trick... Is there a list of available forge tags to use. Since you (@Choonster) mentioned the forge oredict items are now probably available as tags, I would like to use them.

running minecraft on Mac OS X - Sierra --- creating code since 1986 ... --- मेरा दिल भारतवासी है!

width=289 height=100http://www.arno-saxena.de/pictures/chococraft/banner_signature.png[/img]

Link to comment
Share on other sites

4 hours ago, Torojima said:

The "tag": "forge:stick/wood" didn't do the trick... Is there a list of available forge tags to use. Since you (@Choonster) mentioned the forge oredict items are now probably available as tags, I would like to use them.

 

All of the Forge and Vanilla tag JSON files should be visible in the Forge JAR in your IDE. You can see exactly which tags exist and which items they contain.

Edited by Choonster

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 year later...

The sacred texts! I'm going to be crucified for necro-ing this, but how would one implement "tag": "minecraft:saplings" as a substitute for ore:treeSapling (or another way that includes all modded saplings)? I don't have IDE to refer to, as I'm asking for CraftTweaker rather than mod development. 

Edited by urbanxx001
Link to comment
Share on other sites

2 hours ago, urbanxx001 said:

The sacred texts! I'm going to be crucified for necro-ing this

No shit. Start your own thread.

2 hours ago, urbanxx001 said:

I don't have IDE to refer to, as I'm asking for CraftTweaker rather than mod development.

Then why are you here and not asking for help where CraftTweaker is the subject? This is the Forge forums, we help people with Forge.

Secondly, with JSON recipes, CraftTweaker is completely unneccessary.

Edited by Draco18s

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

 

Quote

Then why are you here?

Because Forge and CraftTweaker share syntaxI figured it out and it was indeed <tag:minecraft:sapling>. I prefer it over individual JSON files as all the recipes can be stored in one script, which is less daunting for larger modpacks. 

Edited by urbanxx001
Link to comment
Share on other sites

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • OLXTOTO - Bandar Togel Online Dan Slot Terbesar Di Indonesia OLXTOTO telah lama dikenal sebagai salah satu bandar online terkemuka di Indonesia, terutama dalam pasar togel dan slot. Dengan reputasi yang solid dan pengalaman bertahun-tahun, OLXTOTO menawarkan platform yang aman dan andal bagi para penggemar perjudian daring. DAFTAR OLXTOTO DISINI DAFTAR OLXTOTO DISINI DAFTAR OLXTOTO DISINI Beragam Permainan Togel Sebagai bandar online terbesar di Indonesia, OLXTOTO menawarkan berbagai macam permainan togel. Mulai dari togel Singapura, togel Hongkong, hingga togel Sidney, pemain memiliki banyak pilihan untuk mencoba keberuntungan mereka. Dengan sistem yang transparan dan hasil yang adil, OLXTOTO memastikan bahwa setiap taruhan diproses dengan cepat dan tanpa keadaan. Slot Online Berkualitas Selain togel, OLXTOTO juga menawarkan berbagai permainan slot online yang menarik. Dari slot klasik hingga slot video modern, pemain dapat menemukan berbagai opsi permainan yang sesuai dengan preferensi mereka. Dengan grafis yang memukau dan fitur bonus yang menggiurkan, pengalaman bermain slot di OLXTOTO tidak akan pernah membosankan. Keamanan dan Kepuasan Pelanggan Terjamin Keamanan dan kepuasan pelanggan merupakan prioritas utama di OLXTOTO. Mereka menggunakan teknologi enkripsi terbaru untuk melindungi data pribadi dan keuangan para pemain. Tim dukungan pelanggan yang ramah dan responsif siap membantu pemain dengan setiap pertanyaan atau masalah yang mereka hadapi. Promosi dan Bonus Menarik OLXTOTO sering menawarkan promosi dan bonus menarik kepada para pemainnya. Mulai dari bonus selamat datang hingga bonus deposit, pemain memiliki kesempatan untuk meningkatkan kemenangan mereka dengan memanfaatkan berbagai penawaran yang tersedia. Penutup Dengan reputasi yang solid, beragam permainan berkualitas, dan komitmen terhadap keamanan dan kepuasan pelanggan, OLXTOTO tetap menjadi salah satu pilihan utama bagi para pecinta judi online di Indonesia. Jika Anda mencari pengalaman berjudi yang menyenangkan dan terpercaya, OLXTOTO layak dipertimbangkan.
    • I have been having a problem with minecraft forge. Any version. Everytime I try to launch it it always comes back with error code 1. I have tried launching from curseforge, from the minecraft launcher. I have also tried resetting my computer to see if that would help. It works on my other computer but that one is too old to run it properly. I have tried with and without mods aswell. Fabric works, optifine works, and MultiMC works aswell but i want to use forge. If you can help with this issue please DM on discord my # is Haole_Dawg#6676
    • Add the latest.log (logs-folder) with sites like https://paste.ee/ and paste the link to it here  
    • I have no idea how a UI mod crashed a whole world but HUGE props to you man, just saved me +2 months of progress!  
    • So i know for a fact this has been asked before but Render stuff troubles me a little and i didnt find any answer for recent version. I have a custom nausea effect. Currently i add both my nausea effect and the vanilla one for the effect. But the problem is that when I open the inventory, both are listed, while I'd only want mine to show up (both in the inv and on the GUI)   I've arrived to the GameRender (on joined/net/minecraft/client) and also found shaders on client-extra/assets/minecraft/shaders/post and client-extra/assets/minecraft/shaders/program but I'm lost. I understand that its like a regular screen, where I'd render stuff "over" the game depending on data on the server, but If someone could point to the right client and server classes that i can read to see how i can manage this or any tip would be apreciated
  • Topics

×
×
  • Create New...

Important Information

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