Jump to content

XxxXEclipse7XxxX

Members
  • Posts

    29
  • Joined

  • Last visited

Posts posted by XxxXEclipse7XxxX

  1. Hello There,

     

    I just wanted to report a bug that happens every time i first open the work space with eclipse. The bug is that the func that is used in the example is apparently changed to a different Func! I haven't seen a change in the new forge update so i was just letting Lexmanos know and everybody else who is having this issue.

  2. If you are using 1.7.2 the best way is to use -

     setTextureName("MODID:TEXTURENAME");

    (For blocks

     setBlockTextureName("MODID:TEXTURENAME");

     

    If you are using eclipse you should see the resources source folder in the project explorer. Make sure that you have your modid in your texture directory in lower case. For example  if my modid was RedstoneMod i would have to make my texture modid redstonemod with no capital letters.

     

    To make this directory the best way is to use eclipse. Right click on the resource source folder and make a package named assets.modid.textures.blocks and for items assets.modid.textures.items

     

    To access you need to open up the src folder in your forge ROOT folder and just follow the directories.

     

    ROOT FOLDER > src > resources and so on.

     

    Hope This Helps!

  3. This is what you can use for the ToolMaterial.

     

    public static ToolMaterial ToolMaterialName = EnumHelper.addToolMaterial("REDSTONE", HarvestLevel, MaxUses, Efficiency, Damage, Enchantment);

     

    Just remember if you haven't used ToolMaterial before the Efficiency and the Damage are both floats!

  4. I am in need of some code so that when a player logs into a world he gets a message saying in the chat bar.

     

    If not then i would also like to have the code for when you right click the message pops up!?

     

     

    Any suggestions on how i would go by this?

  5. This isn't really solved as your using a func which isn't really a good idea as they aren't "improving" that method...

     

     

    The way to fix it is make sure your @Mod(modid="Wreckitmod"  has a capital for Wreckitmod. I do not know why this actually works but the way the developer coded forge is this way!

     

     

    Make sure your @Mod(modid="Wrecktimod" uses a capital - @Mod(modid="[glow=red,2,300]W[/glow]reckitmod"

     

    Make sure your registerIcons modid uses a capital - Wreckitmod:yourtexturenamehere

     

    Make sure your textures directory uses a lowercase so no capitals Example  - wreckitmod

     

     

    you do not need that func... Also the registerIcons is faster and more usable as it will not give you any errors. But the func will when you export it and when someone uses a resource pack as a resource pack uses the registerIcons method!

     

     

     

    the capital W in the @Mod(modid="Wreckitmod" is what your error is you need the capital W

  6. Everything worked for me!

     

     

    My textures are in

     

    MCP/src/minecraft/assets/{modid}/textures/items|blocks/.png files

     

    The code i use

     

    public void registerIcons(IconRegister iconRegister) {

     

    itemIcon = iconRegister.registerIcon("modid:Texture");

     

    }

     

     

    I found that if you use Par1iconRegister it will not register the textures directory and will give you an error!

     

     

    I am not putting anything inside the jar!

  7. I have been messing around with the code and i have finally figured out where the texture's go for developers.

     

    Forge MCP/jars/versions/1.6.1/1.6.1.jar(Open up with winrar)/assets/textures/items

     

    Forge MCP/jars/versions/1.6.1/1.6.1.jar(Open up with winrar)/assets/textures/blocks

     

    No you haven't.

     

    There's always a location for them in the MCP/src directory.  Jar editing should never be required.  In fact, not-jar-editing is the whole reason the new system exists.

     

    This is the only way to do it for now since Forge is unstable at the moment! I am sure this will be fixed soon! when i try the MCP/src Minecraft doesn't look in the right directory. it keeps looking in the 1.6.1.jar

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.