Started by
Eonaut
on
Topic category: General discussion
Now that I know how to get blocks to roate like logs, there are only two more major issues I'd like to understand- schematics and this:
What I (and I'm sure 90% of the Mcreator community) want to know is how to get modded wood planks to be useable in any crafting recipe where vanilla wood planks are accepted.
I know this is possible- just look at Biomes o' Plenty for instance, but I have no idea how to get it to work.
Any thoughts?
Pretty much as any OreDictionary registration: OreDictionary#registerOre()
The method takes two parameters - the name as a type of String and the object as a type of Item, Block or ItemStack.
I seen this before saying use that, any examples on how to do it?
Sorry, but I have no idea what that means. Could you elaborate?
Natural Woods revolution?
@#4 thats what i'm hoping for...
well there are ores that did not name so you can lot even in gems and stone can be ore and dont forget about crystal is also ores so that means so long that have same name on the mod of then it wont work besace it works wired way like if make metal ore and someone else made metal gear then have be different but making it two same way in other mod have same and my mod have same way then it wont work way it want it so dont making it different and just make new names of ore than not exist so is like Dictionary same in wood and biomes and dimensions
Well im attempting to find a way to do this and I made a class file called OreDictionaryHandler, inside went like this.
[spoiler]
package mod.mcreator; import net.minecraftforge.oredict.OreDictionary; public class OreDictionaryHandler { public static void registerOreDictionary() { OreDicionary.registerOre("plankWood", mcreator_jacarandaPlanks.block); } }[/spoiler]
I dont know if that is the correct way to do it but the problem i ran into was when i save and build the class file gets deleted.
You have to register it in some FML life cycle. (pre-init one, to be exact)