"Ore Dictionary" for wood?

Started by Eonaut on Fri, 10/20/2017 - 16:21

Topic category: General discussion

Last seen on 23:44, 18. Aug 2019
Joined Apr 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
"Ore Dictionary" for wood?
Fri, 10/20/2017 - 16:21

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?

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Pretty much as any
Fri, 10/20/2017 - 16:55

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.

Last seen on 22:52, 27. Oct 2017
Joined Nov 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I seen this before saying use
Fri, 10/20/2017 - 18:05

I seen this before saying use that, any examples on how to do it?

Last seen on 23:44, 18. Aug 2019
Joined Apr 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Sorry, but I have no idea
Fri, 10/20/2017 - 18:08

Sorry, but I have no idea what that means. Could you elaborate?

Last seen on 07:04, 27. Oct 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Natural Woods revolution?
Fri, 10/20/2017 - 20:51

Natural Woods revolution?

Last seen on 23:44, 18. Aug 2019
Joined Apr 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
RE:Natural Woods revolution?
Sat, 10/21/2017 - 22:45

@#4 thats what i'm hoping for...

Last seen on 16:38, 10. Dec 2019
Joined Mar 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
well there are ores that did
Sun, 10/22/2017 - 03:05

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  

Last seen on 21:41, 10. Sep 2018
Joined Sep 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Well im attempting to find a
Sun, 10/22/2017 - 03:44

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.

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You have to register it in
Sun, 10/22/2017 - 08:46

You have to register it in some FML life cycle. (pre-init one, to be exact)