1

HELP COCOA BEANS

mollusk 9/20/12 4:15 pm
480
9/22/2012 7:18 am
Hi guys i was wondering in what part of the BlockCocoa.java file is the part about its texture? Im making a mod and need to change the texture of the cocoa bean to make a new plant
Posted by
mollusk
Level 11 : Journeyman Crafter
4

  Have something to say?

JoinSign in

11

mollusk
09/22/2012 7:18 am
Level 11 : Journeyman Crafter
hmm still cant get it. i might just give up
1
sed11
09/21/2012 10:53 pm
Level 66 : High Grandmaster Hero
You'll have to add a banana texture that has the same shape as the cocoa bean plant textures, and keep trying to put the textures in the right place and make the number right, unless you find a way to make the texture separated.(In terrain.png, change the number in your code, ofcourse.)

I'm not sure how to do this with a Cocoa Bean plant, only that you can change that number and add the texture in terrain.png since I looked after reading this thread.You could try to find a way to do this with a new ModLoader mod_ file, if you use ModLoader, and make the texture-number in the BlockName code to j, or something and make the one in your mod_ file 0, then use the ModLoader's texture function to find the texture for a separate one, not sure if this will work exactly though.

This is a Basic mod_ file for blocks, if you don't know what it could be like already:
Click to reveal
package net.minecraft.src;

public class mod_Namehere extends BaseMod
{
public static final Block Namehere = new BlockNamehere(171, 0).setBlockName("Name Here").setHardness(1F).setResistance(1F).setLightValue(0F);

public void load()
{
Namehere.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Namehere.png");
ModLoader.registerBlock(Namehere);
ModLoader.addName(Namehere, "Name Here");
ModLoader.addRecipe(new ItemStack(Namehere, 1), new Object[] { "###", "###", "###", Character.valueOf('#'), Block.dirt });
}

public String getVersion()
{
return "1.3.2";
}
}

"new BlockNamehere(171, 0)"

The 171 is the block's ID, you can change that. The 0 is where it gets the texture in terrain.png, if you want a separate one and if you are going to use the texture function "Namehere.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Namehere.png");" you can leave that number as zero.

.setBlockName is the name of the block. .setHardness is how hard the block will be. .setResistance is how much it resists TNT. .setLightValue is how much light it gives off.You can leave that zero if you don't want any if you you make it 1F it will be like GlowStone light. You can replace all the nameheres to the name of your block, then all you have to do is make the block file.

I'm not sure if you can take out the recipe, you probably can though, I just never did it before :3
1
ThatsMyPickaxe
09/21/2012 10:02 pm
Level 49 : Master Technomancer
Narwhals....
1
mollusk
09/21/2012 9:45 pm
Level 11 : Journeyman Crafter
bump
1
mollusk
09/21/2012 9:05 pm
Level 11 : Journeyman Crafter
bump
1
mollusk
09/21/2012 8:47 pm
Level 11 : Journeyman Crafter
lol
1
Kazoto
09/21/2012 8:35 pm
Level 26 : Expert Pokémon
It's in terrain thingy and then u access MutaOra.png and then you will know the truth about the Mutant Oranges...
1
mollusk
09/21/2012 8:30 pm
Level 11 : Journeyman Crafter
hmm, still stuck. Heres what im trying to do:
I want to make a new plant that acts exactly like a cocoa plant but is textured as a banana bunch and when the bunch is broken it drops bananas. Also, i want it to be placed like how you would with cocoa beans but instead use a banana.
1
mollusk
09/21/2012 7:59 pm
Level 11 : Journeyman Crafter
ok thanks ill try that out
1
sed11
09/21/2012 6:53 pm
Level 66 : High Grandmaster Hero
I believe the number 168 tells it where it find's its texture in terrain.png, because I changed it to 8, then I planted a Jungle Tree then placed a Cocoa plant, and it looked like the top of the TNT texture, except ofcourse, smaller and messed up because of the model.
1
mollusk
09/21/2012 6:44 pm
Level 11 : Journeyman Crafter
bump
1

Welcome