To Note: I Was Given No Errors When I Recompiled
As You Can See From These Images The Texture For: Dragon Egg has changed to what should be the Front Idle Texture for the Fermenter (part of my mod) The Fermenter Item id is 150, the top texture of the fermenter is applied to the entire Block Plus i cannot open the Gui Meaning nothing happens when i right click on it. Here is My Code
Mod File
[Spoiler]
package net.minecraft.src;
import java.util.Random;
public class mod_Food extends BaseMod
{
//Defining Foods
public static Item toast = (new ItemFood(1337, 7, 0.3F, false).setItemName("toasties"));
public static Item PanMix = (new ItemFood(1338, 1,0.3F, false).setItemName("Mixies"));
public static Item pancakes = (new ItemFood(1339,9,0.3F, false).setItemName("pancakies"));
public static Item sushimi = (new ItemFood(1340,8,0.3F, false).setItemName("sushi"));
public static Item rice = (new ItemFood(1341,1,0.3F,false).setItemName("ricey"));
public static Item chocolatemilk = (new ItemFood(1342,4,0.3F,false).setItemName("Chocolatey"));
public static Item cheese = (new ItemFood(1343,6,0.3F,false).setItemName("cheesy"));
public final static Block Fermenter = new Block(150,Material.air).setBlockName("Fermenter");
public final static Block FermenterActive = new Block (151,Material.air).setBlockName("Fermenting");
public static int Fermenterside;
public static int Fermenterfront;
public mod_Food ()
{
ModLoader.RegisterBlock(Fermenter);
ModLoader.AddName(Fermenter, "Fermenter");
Fermenter.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Breakfast/FermenterTop.png");
Fermenterside = ModLoader.addOverride ("/terrain.png", "/Breakfast/Fermenterside.png");
Fermenterfront = ModLoader.addOverride ("/terrain.png", "/Breakfast/Fermenterfront.png");
FermenterActive.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Breakfast/FermenterActive.png");
}
public void load()
{
//Textures
toast.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/toast.png");
PanMix.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/PanMix.png");
pancakes.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/pancake.png");
sushimi.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/sushi.png");
rice.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/rice.png");
chocolatemilk.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/rice.png");
//Adding Game Names
ModLoader.AddName(toast, "Toast");
ModLoader.AddName(PanMix, "Pancake Mix");
ModLoader.AddName(pancakes, "Pancakes");
ModLoader.AddName(sushimi, "Sushi");
ModLoader.AddName(rice, "Rice");
ModLoader.AddName(chocolatemilk, "Chocolate Milk");
//Recipes
ModLoader.AddSmelting(Item.bread.shiftedIndex, new ItemStack(toast, 1));
ModLoader.AddSmelting(PanMix.shiftedIndex, new ItemStack(pancakes,1));
ModLoader.AddRecipe(new ItemStack(PanMix,1), new Object[] {
" X ", " Y ", " Z ",
Character.valueOf('X'),Item.wheat,Character.valueOf('Y'),Item.sugar,Character.valueOf('Z'),Item.bucketWater });
ModLoader.AddRecipe(new ItemStack(rice,3), new Object[] {
" V ", " W ",
Character.valueOf('V'),Item.wheat,Character.valueOf('W'),Item.bucketWater});
ModLoader.AddRecipe(new ItemStack(sushimi,1), new Object[] {
"TTT","UUU","TTT",
Character.valueOf('T'),rice,Character.valueOf ('U'),Item.fishRaw});
ModLoader.AddRecipe(new ItemStack(chocolatemilk,1), new Object[] {
" S "," R ",
Character.valueOf('S'),new ItemStack (Item.dyePowder,1,3),Character.valueOf ('R'),Item.bucketMilk});
// Codes For Testing
ModLoader.AddSmelting(Block.dirt.blockID, new ItemStack(Item.fishRaw, 8));
ModLoader.AddSmelting(Block.gravel.blockID, new ItemStack(Item.dyePowder,64,3));
ModLoader.AddSmelting(Block.wood.blockID, new ItemStack(Item.pocketSundial,3));
}
public String getVersion()
{
return "1.0.0";
}
}
[/Spoiler]
Gui Fermenter
[Spoiler]
package net.minecraft.src;
import net.minecraft.client.Minecraft;
import org.lwjgl.opengl.GL11;
public class GuiFermenter extends GuiContainer
{
public GuiFermenter(InventoryPlayer inventoryplayer, TileEntityFermenter tileentityFermenter)
{
super(new ContainerFermenter(inventoryplayer, tileentityFermenter));
FermenterInventory = tileentityFermenter;
}
protected void drawGuiContainerForegroundLayer()
{
fontRenderer.drawString("Fermenter", 60, 6, 0x404040);
fontRenderer.drawString("Inventory", 8, (ySize - 96) + 2, 0x404040);
}
protected void drawGuiContainerBackgroundLayer(float f,int p,int q)
{
int i = mc.renderEngine.getTexture("/gui/furnace.png");
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
mc.renderEngine.bindTexture(i);
int j = (width - xSize) / 2;
int k = (height - ySize) / 2;
drawTexturedModalRect(j, k, 0, 0, xSize, ySize);
if(FermenterInventory.isAging())
{
int l = FermenterInventory.getBurnTimeRemainingScaled(12);
drawTexturedModalRect(j + 56, (k + 36 + 12) - l, 176, 12 - l, 14, l + 2);
}
int i1 = FermenterInventory.getFermentProgressScaled(24);
drawTexturedModalRect(j + 79, k + 34, 176, 14, i1 + 1, 16);
}
private TileEntityFermenter FermenterInventory;
}
[/Spoiler]
Block Fermenter:
[Spoiler]
package net.minecraft.src;
import java.util.Random;
public class BlockFermenter extends BlockContainer
{
protected BlockFermenter(int i, boolean flag)
{
super(i, Material.ground);
FermenterRand = new Random();
isActive = flag;
}
public int idDropped(int i, Random random)
{
return mod_Food.Fermenter.blockID;
}
public void onBlockAdded(World world, int i, int j, int k)
{
super.onBlockAdded(world, i, j, k);
setDefaultDirection(world, i, j, k);
}
private void setDefaultDirection(World world, int i, int j, int k)
{
if(world.multiplayerWorld)
{
return;
}
int l = world.getBlockId(i, j, k - 1);
int i1 = world.getBlockId(i, j, k + 1);
int j1 = world.getBlockId(i - 1, j, k);
int k1 = world.getBlockId(i + 1, j, k);
byte byte0 = 3;
if(Block.opaqueCubeLookup[l] && !Block.opaqueCubeLookup[i1])
{
byte0 = 3;
}
if(Block.opaqueCubeLookup[i1] && !Block.opaqueCubeLookup[l])
{
byte0 = 2;
}
if(Block.opaqueCubeLookup[j1] && !Block.opaqueCubeLookup[k1])
{
byte0 = 5;
}
if(Block.opaqueCubeLookup[k1] && !Block.opaqueCubeLookup[j1])
{
byte0 = 4;
}
world.setBlockMetadataWithNotify(i, j, k, byte0);
}
public int getBlockTexture(IBlockAccess iblockaccess, int i, int j, int k, int l)
{
if(l == 1)
{
return mod_Food.Fermenterside;
}
if(l == 0)
{
return mod_Food.Fermenterside;
}
int i1 = iblockaccess.getBlockMetadata(i, j, k);
if(l != i1)
{
return mod_Food.Fermenterside;
}
else
{
return mod_Food.Fermenterfront;
}
}
public int getBlockTextureFromside(int side)
{
if (side == 3)
{
return mod_Food.Fermenterfront;
}
else
{
return mod_Food.Fermenterside;
}
}
public boolean blockActivated(World world, int i, int j, int k, EntityPlayer entityplayer)
{
if(world.multiplayerWorld)
{
return true;
}
TileEntityFermenter tileentityFermenter = (TileEntityFermenter)world.getBlockTileEntity(i, j, k);
if(tileentityFermenter != null)
{
ModLoader.OpenGUI(entityplayer, new GuiFermenter(entityplayer.inventory, tileentityFermenter));
}
return true;
}
public static void updateFermenterBlockState(boolean flag, World world, int i, int j, int k)
{
int l = world.getBlockMetadata(i, j, k);
TileEntity tileentity = world.getBlockTileEntity(i, j, k);
keepFermenterInventory = true;
if(flag)
{
world.setBlockWithNotify(i, j, k, mod_Food.FermenterActive.blockID);
} else
{
world.setBlockWithNotify(i, j, k, mod_Food.Fermenter.blockID);
}
keepFermenterInventory = false;
world.setBlockMetadataWithNotify(i, j, k, l);
if(tileentity != null)
{
tileentity.validate();
world.setBlockTileEntity(i, j, k, tileentity);
}
}
public TileEntity getBlockEntity()
{
return new TileEntityFermenter();
}
public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving)
{
int l = MathHelper.floor_double((double)((entityliving.rotationYaw * 4F) / 360F) + 0.5D) & 3;
if(l == 0)
{
world.setBlockMetadataWithNotify(i, j, k, 2);
}
if(l == 1)
{
world.setBlockMetadataWithNotify(i, j, k, 5);
}
if(l == 2)
{
world.setBlockMetadataWithNotify(i, j, k, 3);
}
if(l == 3)
{
world.setBlockMetadataWithNotify(i, j, k, 4);
}
}
public void onBlockRemoval(World world, int i, int j, int k)
{
if(!keepFermenterInventory)
{
TileEntityFermenter tileentityFermenter = (TileEntityFermenter)world.getBlockTileEntity(i, j, k);
label0:
for(int l = 0; l < tileentityFermenter.getSizeInventory(); l++)
{
ItemStack itemstack = tileentityFermenter.getStackInSlot(l);
if(itemstack == null)
{
continue;
}
float f = FermenterRand.nextFloat() * 0.8F + 0.1F;
float f1 = FermenterRand.nextFloat() * 0.8F + 0.1F;
float f2 = FermenterRand.nextFloat() * 0.8F + 0.1F;
do
{
if(itemstack.stackSize <= 0)
{
continue label0;
}
int i1 = FermenterRand.nextInt(21) + 10;
if(i1 > itemstack.stackSize)
{
i1 = itemstack.stackSize;
}
itemstack.stackSize -= i1;
EntityItem entityitem = new EntityItem(world, (float)i + f, (float)j + f1, (float)k + f2, new ItemStack(itemstack.itemID, i1, itemstack.getItemDamage()));
float f3 = 0.05F;
entityitem.motionX = (float)FermenterRand.nextGaussian() * f3;
entityitem.motionY = (float)FermenterRand.nextGaussian() * f3 + 0.2F;
entityitem.motionZ = (float)FermenterRand.nextGaussian() * f3;
world.entityJoinedWorld(entityitem);
} while(true);
}
}
super.onBlockRemoval(world, i, j, k);
}
private Random FermenterRand;
private final boolean isActive;
private static boolean keepFermenterInventory = false;
}
[/Spoiler]
If You Need Any Of the Other Files Please Tell Me
Any Help Is Appreciated.
Where Do I Add the Crafting Recipe For it? In Mod_Food Inside public mod_Food?
There is no recipe! :biggrin.gif: It is registering your TileEntity file
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
You dont make it. It isnt in game. just add it to your public void load() or wherever your other ModLoader methods are
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
There is no recipe! :biggrin.gif: It is registering your TileEntity file
To Add A Recipe So It can be Used In Game Like A Furnace Would i Type this?
ModLoader.AddRecipe(new ItemStack(Fermenter,1), new Object[] {
"QQQ", "Q Q","QQQ",
Character.valueOf('S'),new ItemStack (Item.ingotIron) });
?????????????
??? So How Do I Make it An Object that can be Used IN Game Like A Furnace?
To Add A Recipe So It can be Used In Game Like A Furnace Would i Type this?
ModLoader.AddRecipe(new ItemStack(Fermenter,1), new Object[] {
"QQQ", "Q Q","QQQ",
Character.valueOf('S'),new ItemStack (Item.ingotIron) });
?????????????
Yes, that recipe is correct, except for where you do your character.valueOf part. you use S in there but you used Q in the recipe grid.
Just to be clear. What I was saying about not having a recipe for it, I was saying that because you quoted iBlackShadow's response and then were talking about a recipe
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Yes, that recipe is correct, except for where you do your character.valueOf part. you use S in there but you used Q in the recipe grid.
Just to be clear. What I was saying about not having a recipe for it, I was saying that because you quoted iBlackShadow's response and then were talking about a recipe
Ok Thanks For that But the texture and The GUI Aren't Working Could You Help Me With That?
Ok Thanks For that But the texture and The GUI Aren't Working Could You Help Me With That?
I probably could, yeh
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
public static int Fermenterside = ModLoader.addOverride ("/terrain.png", "/Breakfast/Fermenterside.png");
public static int Fermenterfront = ModLoader.addOverride ("/terrain.png", "/Breakfast/Fermenterfront.png");
I'm still looking at the Gui
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
public static int Fermenterside = ModLoader.addOverride ("/terrain.png", "/Breakfast/Fermenterside.png");
public static int Fermenterfront = ModLoader.addOverride ("/terrain.png", "/Breakfast/Fermenterfront.png");
I'm still looking at the Gui
You Mean In My: public class mod_Food extends BaseMod ?
If so Do I delete The Definings of them since you are redefining them?
Use this as your mod_Food file. I fixed things like your public static finals, you had public final static, and also just put things into void load(). Note that you should change the material of your block. Also look at how I removed the image declarations in the public mod_Food constructor, and put them in the public static int. and totally removed the public mod_Food constructor.
package net.minecraft.src;
public class mod_Food extends BaseMod
{
//Defining Foods
public static Item toast = (new ItemFood(1337, 7, 0.3F, false).setItemName("toasties"));
public static Item PanMix = (new ItemFood(1338, 1,0.3F, false).setItemName("Mixies"));
public static Item pancakes = (new ItemFood(1339,9,0.3F, false).setItemName("pancakies"));
public static Item sushimi = (new ItemFood(1340,8,0.3F, false).setItemName("sushi"));
public static Item rice = (new ItemFood(1341,1,0.3F,false).setItemName("ricey"));
public static Item chocolatemilk = (new ItemFood(1342,4,0.3F,false).setItemName("Chocolatey"));
public static Item cheese = (new ItemFood(1343,6,0.3F,false).setItemName("cheesy"));
public static final Block Fermenter = new Block(150,Material.air).setBlockName("Fermenter"); //change material to something else
public static final Block FermenterActive = new Block (151,Material.air).setBlockName("Fermenting"); //change material to something else
public static int Fermenterside = ModLoader.addOverride("/terrain.png", "/Breakfast/Fermenterside.png");
public static int Fermenterfront = ModLoader.addOverride("/terrain.png", "/Breakfast/Fermenterfront.png");
public void load()
{
//Textures
toast.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/toast.png");
PanMix.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/PanMix.png");
pancakes.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/pancake.png");
sushimi.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/sushi.png");
rice.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/rice.png");
chocolatemilk.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/rice.png");
Fermenter.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Breakfast/FermenterTop.png");
FermenterActive.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Breakfast/FermenterActive.png");
//Adding Game Names
ModLoader.AddName(toast, "Toast");
ModLoader.AddName(PanMix, "Pancake Mix");
ModLoader.AddName(pancakes, "Pancakes");
ModLoader.AddName(sushimi, "Sushi");
ModLoader.AddName(rice, "Rice");
ModLoader.AddName(chocolatemilk, "Chocolate Milk");
//Block declaration
ModLoader.RegisterBlock(Fermenter);
ModLoader.AddName(Fermenter, "Fermenter");
//Recipes
ModLoader.AddSmelting(Item.bread.shiftedIndex, new ItemStack(toast, 1));
ModLoader.AddSmelting(PanMix.shiftedIndex, new ItemStack(pancakes,1));
ModLoader.AddRecipe(new ItemStack(PanMix,1), new Object[] {
" X ", " Y ", " Z ",
Character.valueOf('X'),Item.wheat,Character.valueOf('Y'),Item.sugar,Character.valueOf('Z'),Item.bucketWater });
ModLoader.AddRecipe(new ItemStack(rice,3), new Object[] {
" V ", " W ",
Character.valueOf('V'),Item.wheat,Character.valueOf('W'),Item.bucketWater});
ModLoader.AddRecipe(new ItemStack(sushimi,1), new Object[] {
"TTT","UUU","TTT",
Character.valueOf('T'),rice,Character.valueOf ('U'),Item.fishRaw});
ModLoader.AddRecipe(new ItemStack(chocolatemilk,1), new Object[] {
" S "," R ",
Character.valueOf('S'),new ItemStack (Item.dyePowder,1,3),Character.valueOf ('R'),Item.bucketMilk});
// Codes For Testing
ModLoader.AddSmelting(Block.dirt.blockID, new ItemStack(Item.fishRaw, 8));
ModLoader.AddSmelting(Block.gravel.blockID, new ItemStack(Item.dyePowder,64,3));
ModLoader.AddSmelting(Block.wood.blockID, new ItemStack(Item.pocketSundial,3));
}
public String getVersion()
{
return "1.0.0";
}
}
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Use this as your mod_Food file. I fixed things like your public static finals, you had public final static, and also just put things into void load(). Note that you should change the material of your block. Also look at how I removed the image declarations in the public mod_Food constructor, and put them in the public static int. and totally removed the public mod_Food constructor.
package net.minecraft.src;
public class mod_Food extends BaseMod
{
//Defining Foods
public static Item toast = (new ItemFood(1337, 7, 0.3F, false).setItemName("toasties"));
public static Item PanMix = (new ItemFood(1338, 1,0.3F, false).setItemName("Mixies"));
public static Item pancakes = (new ItemFood(1339,9,0.3F, false).setItemName("pancakies"));
public static Item sushimi = (new ItemFood(1340,8,0.3F, false).setItemName("sushi"));
public static Item rice = (new ItemFood(1341,1,0.3F,false).setItemName("ricey"));
public static Item chocolatemilk = (new ItemFood(1342,4,0.3F,false).setItemName("Chocolatey"));
public static Item cheese = (new ItemFood(1343,6,0.3F,false).setItemName("cheesy"));
public static final Block Fermenter = new Block(150,Material.air).setBlockName("Fermenter"); //change material to something else
public static final Block FermenterActive = new Block (151,Material.air).setBlockName("Fermenting"); //change material to something else
public static int Fermenterside = ModLoader.addOverride("/terrain.png", "/Breakfast/Fermenterside.png");
public static int Fermenterfront = ModLoader.addOverride("/terrain.png", "/Breakfast/Fermenterfront.png");
public void load()
{
//Textures
toast.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/toast.png");
PanMix.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/PanMix.png");
pancakes.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/pancake.png");
sushimi.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/sushi.png");
rice.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/rice.png");
chocolatemilk.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/rice.png");
Fermenter.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Breakfast/FermenterTop.png");
FermenterActive.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Breakfast/FermenterActive.png");
//Adding Game Names
ModLoader.AddName(toast, "Toast");
ModLoader.AddName(PanMix, "Pancake Mix");
ModLoader.AddName(pancakes, "Pancakes");
ModLoader.AddName(sushimi, "Sushi");
ModLoader.AddName(rice, "Rice");
ModLoader.AddName(chocolatemilk, "Chocolate Milk");
//Block declaration
ModLoader.RegisterBlock(Fermenter);
ModLoader.AddName(Fermenter, "Fermenter");
//Recipes
ModLoader.AddSmelting(Item.bread.shiftedIndex, new ItemStack(toast, 1));
ModLoader.AddSmelting(PanMix.shiftedIndex, new ItemStack(pancakes,1));
ModLoader.AddRecipe(new ItemStack(PanMix,1), new Object[] {
" X ", " Y ", " Z ",
Character.valueOf('X'),Item.wheat,Character.valueOf('Y'),Item.sugar,Character.valueOf('Z'),Item.bucketWater });
ModLoader.AddRecipe(new ItemStack(rice,3), new Object[] {
" V ", " W ",
Character.valueOf('V'),Item.wheat,Character.valueOf('W'),Item.bucketWater});
ModLoader.AddRecipe(new ItemStack(sushimi,1), new Object[] {
"TTT","UUU","TTT",
Character.valueOf('T'),rice,Character.valueOf ('U'),Item.fishRaw});
ModLoader.AddRecipe(new ItemStack(chocolatemilk,1), new Object[] {
" S "," R ",
Character.valueOf('S'),new ItemStack (Item.dyePowder,1,3),Character.valueOf ('R'),Item.bucketMilk});
// Codes For Testing
ModLoader.AddSmelting(Block.dirt.blockID, new ItemStack(Item.fishRaw, 8));
ModLoader.AddSmelting(Block.gravel.blockID, new ItemStack(Item.dyePowder,64,3));
ModLoader.AddSmelting(Block.wood.blockID, new ItemStack(Item.pocketSundial,3));
}
public String getVersion()
{
return "1.0.0";
}
}
Hi GUI Still Didn't Work, Used The Persons Above code he Gave to me and it worked Now i was wondering if you knew how to get the textures set right and why my recipe isn't working
Hi Thanks For That The GUI Works But For Some Reason My Recipe Wont Do you Know Why? And the Texture has changed to the side texture on all sides instead of the top texture on all sides LOL
To Note: I Was Given No Errors When I Recompiled
As You Can See From These Images The Texture For: Dragon Egg has changed to what should be the Front Idle Texture for the Fermenter (part of my mod) The Fermenter Item id is 150, the top texture of the fermenter is applied to the entire Block Plus i cannot open the Gui Meaning nothing happens when i right click on it. Here is My Code
Mod File
[Spoiler]
Gui Fermenter
[Spoiler]
Block Fermenter:
[Spoiler]
If You Need Any Of the Other Files Please Tell Me
Any Help Is Appreciated.
Where Do I Add the Crafting Recipe For it? In Mod_Food Inside public mod_Food?
There is no recipe! :biggrin.gif: It is registering your TileEntity file
together they are powerful beyond imagination."
:blink.gif: So How can i Make It?
together they are powerful beyond imagination."
??? So How Do I Make it An Object that can be Used IN Game Like A Furnace?
To Add A Recipe So It can be Used In Game Like A Furnace Would i Type this?
ModLoader.AddRecipe(new ItemStack(Fermenter,1), new Object[] {
"QQQ", "Q Q","QQQ",
Character.valueOf('S'),new ItemStack (Item.ingotIron) });
?????????????
Yes, that recipe is correct, except for where you do your character.valueOf part. you use S in there but you used Q in the recipe grid.
Just to be clear. What I was saying about not having a recipe for it, I was saying that because you quoted iBlackShadow's response and then were talking about a recipe
together they are powerful beyond imagination."
Ok Thanks For that But the texture and The GUI Aren't Working Could You Help Me With That?
I probably could, yeh
together they are powerful beyond imagination."
Ok Cool What Do You Think is Wrong With the code? Any More Code Files You Need?
Remove this from your constructor, and put it on your ints.
I'm still looking at the Gui
together they are powerful beyond imagination."
You Mean In My: public class mod_Food extends BaseMod ?
If so Do I delete The Definings of them since you are redefining them?
together they are powerful beyond imagination."
Or are you testing it now?
Hi GUI Still Didn't Work, Used The Persons Above code he Gave to me and it worked Now i was wondering if you knew how to get the textures set right and why my recipe isn't working
Hi Thanks For That The GUI Works But For Some Reason My Recipe Wont Do you Know Why? And the Texture has changed to the side texture on all sides instead of the top texture on all sides LOL