vadis365 / PrimalTech

Stuff for SevTech3
8 stars 6 forks source link

Add support for wildcard metadata & oredict in recipes #5

Open justinrusso opened 6 years ago

justinrusso commented 6 years ago

Hey Vadis,

Would you be able to add support for wildcard metadata and oredict in recipes? I was okay with not using oredict, but ran into issues even looping over the oredict to provide the recipe an IItemStack in crafttweaker, as some entries were wildcards (<minecraft:log:*>)

Thanks!

justinrusso commented 6 years ago

Exmaple of what I was trying to do with crafttweaker

for log in <ore:logWood>.items {
    mods.primaltech.ClayKiln.addRecipe(<primal_tech:charcoal_block>, log, 200);
}

the logs that come out of this (and if they worked) are as followed:

As stated, I'm fine looping over oredicts to add the items rather than the oredict, but it seems that even a "wildcard" item causes the recipe to not work.