Experience: I have made models for previous minecraft mods
Extra Info:
I can make texture but I have not creativity and so I can only make textures as long as I'm provided with an idea [Example: Color, design ect]. (That's if needed)
IGN (In Game Name):
Age:
Steam (optional):
Referred? By whom?:
Where did you find the server?:
Reason for joining:
What you do best in minecraft:
IGN - Kye_the_miner
Age - 13
Steam - None
Referred? - No
Where did you find this server - On the minecraft forums by chance
Reason for joining - Looks Fun
What do you do best in minecraft - Im not particular good at anything though I'm a alright builder And I have basic redstone knowledge but i suck at Pvp
Hello as you may have read by the title I need help with my sever but before I get into details I just want to say that I have posted a forum like this before and I forgot to port forward but not this time. This time I got it all set up and working
Ok first thing I want to get coved is that this is a home-made bukkit sever so only I can access files.
Second of all I have not set up ranks yet so don't ask for a promotion or anything all you get is creative(and maybe OP)
package net.minecraft.item.crafting;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class RecipesTools
{
private String[][] recipePatterns = new String[][] {{"XXX", " # ", " # "}, {"X", "#", "#"}, {"XX", "X#", " #"}, {"XX", " #", " #"}};
private Object[][] recipeItems;
public RecipesTools()
{
this.recipeItems = new Object[][] {{Block.planks, Block.cobblestone, Item.ingotIron, Item.diamond, Item.ingotGold}, {Item.pickaxeWood, Item.pickaxeStone, Item.pickaxeIron, Item.pickaxeDiamond, Item.pickaxeGold}, {Item.shovelWood, Item.shovelStone, Item.shovelIron, Item.shovelDiamond, Item.shovelGold}, {Item.axeWood, Item.axeStone, Item.axeIron, Item.axeDiamond, Item.axeGold}, {Item.hoeWood, Item.hoeStone, Item.hoeIron, Item.hoeDiamond, Item.hoeGold}};
}
/**
* Adds the tool recipes to the CraftingManager.
*/
public void addRecipes(CraftingManager par1CraftingManager)
{
for (int i = 0; i < this.recipeItems[0].length; ++i)
{
Object object = this.recipeItems[0][i];
for (int j = 0; j < this.recipeItems.length - 1; ++j)
{
Item item = (Item)this.recipeItems[j + 1][i];
par1CraftingManager.addRecipe(new ItemStack(item), new Object[] {this.recipePatterns[j], '#', Item.stick, 'X', object});
}
}
par1CraftingManager.addRecipe(new ItemStack(Item.shears), new Object[] {" #", "# ", '#', Item.ingotIron});
}
}
Now your getting the error as you have to say what axe the recpie is for, like this Item.axeWood, Item.axeStone, Item.axeIron, Item.axeDiamond, Item.axeGold.
To change the texture of the minecraft stick u would have to edit the item.stick UnlocalizedName which means editing the base files
or create a custom texture pack that goes with your mod ?
Can someone please help me i was trying to get a new texture for Item.stick and failed so i just decide to delete the whole item (Stick) and remake it so im doing the recipes and i got stuck on tools please help i can't do them.
GameRegistry.addRecipe(new ItemStack(Item.axe, 1), new Object [] {
"aa ", "ax ", " x ", 'x', OakStick, 'a', wood.planks
});
when i type in the results
axe becomes underlined
|
\/
new ItemStack(Item.axe, 1)
and i can't find the orginal recipe (On eclipse not in-game) to copy
it worked in the sense of using a specific plank/log
but i couldn't make all the recipies
there's are my test recipes
GameRegistry.addRecipe(new ItemStack(SmoothOak, 8), new Object [] { "XOX", "OAO", "XOX", 'X', new ItemStack(Block.planks, 0), Character.valueOf('O'), new ItemStack(Block.wood, 0), 'A', new ItemStack(WDGem) });
GameRegistry.addRecipe(new ItemStack(SmoothSpruce, 8), new Object [] { "XOX", "OAO", "XOX", 'X', new ItemStack(Block.planks, 1), Character.valueOf('O'), new ItemStack(Block.wood, 1), 'A', new ItemStack(WDGem) });
Now i don't know what the problem is but only the smoothoak recipe works but the smoothspruce dosn't
iv'e tried swapping them around so that i could test if it was just whatever came first again but it wasn't only my oak still worked and i don't know what to do PLEASE HELP ME
Try This.
the number at the end is the type of wood, same should go for the logs.
Reference: http://www.minecraft...rafting-recipe/
0 = Oak
1 = Spruce
2 = Birch
3 = Jungle
Character.valueOf('X'), new ItemStack(Block.planks, 1, 3)
Thanks for the help but i fogot to add in "Im using Forge"
Can i have some help i was going good... actually really good with my mod but right when i was about to finish i got caught on 4 recipes these for recipes where:
X O X
O A O
X O X
X = Oak Logs
O = Oak Planks
A = WD Gem ( part of my mod )
And all the recipes have there same shape just different logs/planks and my problem is that Planks are registered under the same name ( block.planks ) same goes for Logs so when i code the recipe the only output i get is which one i coded first.
0
Age: 14
Timezone: UTC+10:00 (Sydney, Australia)
Job: Model Maker
Experience: I have made models for previous minecraft mods
Extra Info:
0
0
Age:
Steam (optional):
Referred? By whom?:
Where did you find the server?:
Reason for joining:
What you do best in minecraft:
IGN - Kye_the_miner
Age - 13
Steam - None
Referred? - No
Where did you find this server - On the minecraft forums by chance
Reason for joining - Looks Fun
What do you do best in minecraft - Im not particular good at anything though I'm a alright builder And I have basic redstone knowledge but i suck at Pvp
0
0
Thanks
0
i wan't the texture part of the mod without having to change the texture in .minecraft when im done
0
"aa ", "ax ", " x ", 'x', OakStick, 'a', wood.planks
});
and i can't find the orginal recipe (On eclipse not in-game) to copy
Same Goes For All Tools
0
New Ladders0
0
it worked in the sense of using a specific plank/log
but i couldn't make all the recipies
there's are my test recipes
GameRegistry.addRecipe(new ItemStack(SmoothOak, 8), new Object [] {
"XOX", "OAO", "XOX", 'X', new ItemStack(Block.planks, 0), Character.valueOf('O'), new ItemStack(Block.wood, 0), 'A', new ItemStack(WDGem)
});
GameRegistry.addRecipe(new ItemStack(SmoothSpruce, 8), new Object [] {
"XOX", "OAO", "XOX", 'X', new ItemStack(Block.planks, 1), Character.valueOf('O'), new ItemStack(Block.wood, 1), 'A', new ItemStack(WDGem)
});
Now i don't know what the problem is but only the smoothoak recipe works but the smoothspruce dosn't
iv'e tried swapping them around so that i could test if it was just whatever came first again but it wasn't only my oak still worked and i don't know what to do PLEASE HELP ME
0
0
0
Thanks for the help but i fogot to add in "Im using Forge"
0
0