I need a explanation of the Wildcard expression

Forum intended for those developing plugins for or integration with MineTweaker. (Help with scripts is for Scripting Help)

I need a explanation of the Wildcard expression

Postby Voidi » Mon Jan 26, 2015 12:34 am

I will be honest: i need complete and relativly detailed explanation how Minecraft(Forge) and Minetweaker handles the Wildcard expression for the Data value.
<minecraft:saplin:*> for example, if unclear

I currently working at forestry support in Minetweaker, and there is a bug that some maschines don't accept the Wildcard notation.
My naive line of thought was, that Forge nativly support this Wildcard, is this right?

So i write in the Minetweaker addon (simplyfied Pseudocode):

: [Select all] [/] [] ()
addRecipe(IItemStack itemInput, otherstuff) {
   ModApi.addrecipe(getItemStack(itemInput), otherstuff)
GeSHi © Codebox Plus

writing the 'Itemstack.toString' to the log give me,
using the wildcard * in a script
something like this 'internalName@32767'

how has this handle any modcrafting mechanism to work?

I asume that ItemStack1.isItemEqual(ItemStack2) only matches if the datavalues are the same?
Because if use itemstack1.getItemDamage() == Defaults.WILDCARD it seems to work.

I want to know i (in Modtweaker) have to write something special
or if the modauthor must make their crafting mechanismen aware of damage values.
Posts: 5
Joined: Sun Jan 25, 2015 6:54 pm

Re: I need a explanation of the Wildcard expression

Postby joshie » Mon Jan 26, 2015 2:27 am

Mods have to support it. So it's a forestry issue.
User avatar
Posts: 59
Joined: Sat Jul 12, 2014 1:10 pm

Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest