TTCo. Industries is up and running and growing quick! Check out my adventures and the growth of the business and let me know what you guys think! I'd like to describe my play through as a more mature in depth look into all the facets of the included mods, with the goal of building a giant industry. Slight role playing factor involved. The Series is being filmed on a private modded Tekkit server, and is the host of currently about 4-6 player. Currently the server is not accepting any new applicants, sorry . Any criticism and suggestions are appreciated :]
Ya, I'm trying to get this to run with forge 1.3.2 and I can not for the life of me figure it out =/ every time it just eats the item, doesn't return it to me or anything.
EDIT 2:
Alright, got it to work perfectly. What I had to add was an if statement, like I saw someone do earlier. My code now is:
The new piece of code is the if(j.getItemDamage() < j.getMaxDamage()) right before the last if.
This checks to see if the Item damage is less than max damage. If the item damage is greater than max damage, it will not create a second item.
All you people asking for mobs, please stop. So many people have asked for them, and he said he'll get to it when he can. Theres already mob tuts out there, Ive seen 2 or 3. Do a little more searching and stop repeating the same questions. This thread is for help with code.
I'm really sorry if this is the wrong section, but I'm kind of desperate at this point lol.
I'm newer to modding and eclipse and all, and decided to store my workspace on dropbox because I constantly work between two computers. I've never had a problem with dropbox or any cloud service before, so I thought it would be safe. But upon opening eclipse, I was met with a wonderful error of the files not being there. Now I can go into dropbox and SEE all the files there all happy and what not, but upon trying to open an individual class file, i'm met with the error:
The Class File Viewer cannot handle the given input ('org.eclipse.ui.ide.FileStoreEditorInput').
So, anyone have any idea of how I can recover my workspace? Is it an eclipse error? I tried downloading a copy from the site but I get the same error. Eclipse also won't load up my old MCP folder before I moved it to dropbox, so idk what's up.
Any help is greatly appreciated, and again, I'm sorry if this post is in the wrong area.
Hello all, I have finally started to get the hang of modding. I just had a couple couple questions...
1. I made an item that uses Cocoa Beans in the recipe. Where do you find the cocoa bean info, so you can put it in the recipe code? Does it have to do with the dyes, since it is a dye too?
and,
2. Could anyone help me with the cake? I am trying to figure out how to make a new kind of cake, but I can't figure out how the coding works with that one.
1.EDIT: I just checked back at the first page and realized jbond actually HAS a tutorial on how to add dyes to a crafting recipe. Look a little harder next time
2. Again, I can help out if I can recover my work.
hello there, i am new to modding and new to the forums, so please excuse me...
I have been looking for a good modding tutorial for some time now and I was happy when I found yours, that was actually up to date with 1.3.2 version of the game... I haven't really tried making my own mod yet, not at that level yet, but I have mainly just tried testing out the examples you have given.
I have followed every step you have given, down to the T. When I try to recompile, I get errors thrown at me, and I can't figure out why...
Here is the code that I put in...
package net.minecraft.src;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Random;
public class mod_Desk extends BaseMod
{
public static final Block Desk = new BlockDesk(160,
0).setStepSound(Block.soundStoneFootstep).setBlockName("BlockDesk").setHardness(1.5F).setResistance(2000F).setLightLevel(0.325F);
public void load()
{
BlockDesk.blockIndexInTexture = ModLoader.addOverride("/terrain.png, "custom/ugly.png");
ModLoader.registerBlock(BlockDesk);
ModLoader.addName(BlockDesk, "Ugly Thing");
}
public String Version()
{
return "Ugly Thing 1.3.2";
}
}
And these are the errors that I get thrown at me when I try to recompile...
src\minecraft\net\minecraft\src\mod_Desk.java:13: error: not a statement
BlockDesk.blockIndexInTexture = ModLoader.addOverride("/terrain.png, "custom/ugly.png");
Am I doing something wrong or...? Like I said I followed every single step and typed everything out just like you had written it.... help, please?
Thank you.
you forgot the / in front of custom and the " after terrain.png. Should be ("terrain.png", "/custom/ugly.png") then make sure you have ugly.png in the /custom/ folder in minecraft.jar
Wircea-
Thank you for the help! That actually solved my problem, I didn't have the texture file saved in the right place. The only thing is, now that that is fixed, a new string of errors popped up. Lol
The new errors have to do with my Block*** file. Guess ill have to take a look at that later.
Thanks again!
public static final Item TechHelm = new ItemArmor(5001, EnumArmorMaterial.TECHNETIUM, ModLoader.addArmor("TechArmor"), 0).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mod/TechArmor_1.png")).setItemName("TechHelm");
As for you, put the mod inside a .zip and add it via magiclauncher or McPatcher?
the .addOverride needs to be a different texture.
Quick Texture Run Down:
addArmor("TechArmor") is for what shows ON your character. For every piece of armor, you should have it say ("TechArmor"), #)
# coorelates to what which piece of armor it is (helm, chest, etc) You get this.
Now, for where the texture goes, it goes in the ARMOR folder of the .jar (and temp if you want to put it there) as TechArmor_1 and TechArmor_2. You can look at the other armor texture files to see how it works. But the name BEFORE _1 and _2 MUST match what's in ("____")
Ok now for .addOverride, that is the texture that shows up as the TOOLTIP. This should be the texture that goes in your /mods/ folder or wherever your sticking your textures. For you it should be/mod/TechArmor_Helm, etc NOT _1 or _2. This is what the armor looks like in your inventory.
So make sure TechArmor_1 and _2 are in the /armor/ folder, and that TechArmor___ is in the /mod/ folder, and that you create a tooltip texture for every piece. Hope this helps
0
0
0
0
0
0
TTCo. Industries is up and running and growing quick! Check out my adventures and the growth of the business and let me know what you guys think! I'd like to describe my play through as a more mature in depth look into all the facets of the included mods, with the goal of building a giant industry. Slight role playing factor involved. The Series is being filmed on a private modded Tekkit server, and is the host of currently about 4-6 player. Currently the server is not accepting any new applicants, sorry . Any criticism and suggestions are appreciated :]
List of Episodes
Episode 1 - TTCo. Industries
Episode 2 - Pump Ahoy!
Episode 3 - New Quarry Setup!
Episode 4 - Stone Sorting!
Episode 5 - Forestry Machines!
Episode 6 - Technical Difficulties!
Episode 7 -
Episode 8 -
Episode 8 Now Out!
0
EDIT 2:
Alright, got it to work perfectly. What I had to add was an if statement, like I saw someone do earlier. My code now is:
The new piece of code is the if(j.getItemDamage() < j.getMaxDamage()) right before the last if.
This checks to see if the Item damage is less than max damage. If the item damage is greater than max damage, it will not create a second item.
0
Check the first page, someone's already put all the code in a PDF. Don't expect an author to put all his code in Java just for you.
0
Sorry if I seemed snide, I lack patience sometimes, plus a bad day with being sick and losing my eclipse workspace. Need help finding anu tuts?
1
0
I'm newer to modding and eclipse and all, and decided to store my workspace on dropbox because I constantly work between two computers. I've never had a problem with dropbox or any cloud service before, so I thought it would be safe. But upon opening eclipse, I was met with a wonderful error of the files not being there. Now I can go into dropbox and SEE all the files there all happy and what not, but upon trying to open an individual class file, i'm met with the error:
The Class File Viewer cannot handle the given input ('org.eclipse.ui.ide.FileStoreEditorInput').
So, anyone have any idea of how I can recover my workspace? Is it an eclipse error? I tried downloading a copy from the site but I get the same error. Eclipse also won't load up my old MCP folder before I moved it to dropbox, so idk what's up.
Any help is greatly appreciated, and again, I'm sorry if this post is in the wrong area.
0
1.EDIT: I just checked back at the first page and realized jbond actually HAS a tutorial on how to add dyes to a crafting recipe. Look a little harder next time
2. Again, I can help out if I can recover my work.
0
0
you forgot the / in front of custom and the " after terrain.png. Should be ("terrain.png", "/custom/ugly.png") then make sure you have ugly.png in the /custom/ folder in minecraft.jar
EDIT:
What errors are you getting now?
0
the .addOverride needs to be a different texture.
Quick Texture Run Down:
addArmor("TechArmor") is for what shows ON your character. For every piece of armor, you should have it say ("TechArmor"), #)
# coorelates to what which piece of armor it is (helm, chest, etc) You get this.
Now, for where the texture goes, it goes in the ARMOR folder of the .jar (and temp if you want to put it there) as TechArmor_1 and TechArmor_2. You can look at the other armor texture files to see how it works. But the name BEFORE _1 and _2 MUST match what's in ("____")
Ok now for .addOverride, that is the texture that shows up as the TOOLTIP. This should be the texture that goes in your /mods/ folder or wherever your sticking your textures. For you it should be/mod/TechArmor_Helm, etc NOT _1 or _2. This is what the armor looks like in your inventory.
So make sure TechArmor_1 and _2 are in the /armor/ folder, and that TechArmor___ is in the /mod/ folder, and that you create a tooltip texture for every piece. Hope this helps