• 0

    posted a message on [SOLVED]Mod works on eclipse but not on the actual minecraft?
    java.lang.NoSuchMethodError: net.minecraftforge.common.EnumHelper.addToolMaterial(Ljava/lang/String;IIFII)Lnet/minecraft/item/ItemFood;

    You are getting this error because the method doesn't exist. Take a look at the return value,
    Lnet/minecraft/item/ItemFood

    The method returns EnumToolMaterial
    Make sure that line of where you are using this method gets the correct return value.
    Posted in: Modification Development
  • 0

    posted a message on [SOLVED]Mod works on eclipse but not on the actual minecraft?
    Did you check logs, or load minecraft in terminal and check for errors? If you are using Forge, you put the jar/zip file in the mods folder.
    Posted in: Modification Development
  • 0

    posted a message on Having more than one mod in the workspace?
    Quote from WaterMinecraft

    I might be wrong in saying this, but I'm pretty sure you have to have your mods in your net.minecraft.src folder. Not a seperate folder; unless this is a picture of them in the minecraft source folder.

    Don't put your mods in that folder, even FML will log a warning if you do.

    Yes you can work on multiple mods in same project and from looking at your error it looks like Forge can't tell which mod is which.

    Do you have the instance annotation like this?

    @Instance("ExampleMod")
    public static ExampleMod instance;

    You should always put the mod id as an argument.
    Posted in: Modification Development
  • 0

    posted a message on How to get Minecraft version?
    Quote from Master4902

    Correct me if I'm wrong, but FMLInjectionData.data()[4] can be traced back to fml\common\fmlversion.properties, and it seems to be the mc version fml provides, not the jar itself..?

    Yes, it refers to the properties file.

    I see you found a way but I will put mine here as well. You can start the Usage Snooper Stats and get the property version.

    PlayerUsageSnooper usageStats = Minecraft.getMinecraft().getPlayerUsageSnooper();
    usageStats.startSnooper();
    System.out.println(usageStats.getCurrentStats().get("version"));
    Posted in: Modification Development
  • 0

    posted a message on [1.7.x][Library][Forge] Developer Capes - HD Cape Support!
    Quote from Jadar

    What? Are you saying that my package declaration is too long?

    You are missing the whole point lol.
    Package names are written in all lower case to avoid conflict with the names of classes or interfaces.

    You called your package and class name DeveloperCapesAPI which is very confusing. Even MCF's code highlighter got confused, highlighted both of them purple.

    So following Oracle's convention, this is what it means. DeveloperCapesAPI is a sub-class of DeveloperCapesAPI in the com.jadastudios.api package. That's why you make all packages lowercase, to point out which Class, Interface, or Enum it's referring to.
    Posted in: Minecraft Mods
  • 0

    posted a message on [1.7.x][Library][Forge] Developer Capes - HD Cape Support!
    com.jadarstudios.api.DeveloperCapesAPI.DeveloperCapesAPI.class

    http://docs.oracle.c...namingpkgs.html
    That's why there are conventions :)
    Think about it.
    Posted in: Minecraft Mods
  • 0

    posted a message on Update Errors{HELP}
    Quote from Jimmy04creeper

    I belive the 2 = min to spawn per chunk, the first 4 = max to spawn per chunk and the last 4 = how often they will spwn, as in how often will that entity b called by minecraft to spawn it in world, the creeper would b high as it spawns alot. the higher the number the more often it will spawn


    You do know this post is from 2011?
    Posted in: Modification Development
  • 0

    posted a message on [Still Need Help] Entity is invisible
    ....Since my Entity is a Mech (The player will ride/control it, but needs to take damage/ have health). Do you think I should stick with extending to EntityMob or should I change to just Entity and work from there.

    Well since it's not a Mob(unless you want it to be classified as one), I would just extend Entity. There you can have your health system. The method Entity.attackEntityFrom(DamageSource, int) will be called when attacked.

    Also, in your post about fixing the invisible entities,
    How do I do so that I will not have to edit base classes?

    I was showing you how Forge and entity tracking works and not to use both methods. That's another issue I stated while back which isn't a problem anymore, I think. If you are using Forge's mod entity tracking methods, you're good.


    public void renderMech(EntityMech par1EntityMech, double par2, double par4, double par6, float par8, float par9) {
    GL11.glPushMatrix();
    
    this.modelMech.render(par1EntityMech, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
    
    GL11.glPopMatrix();
    }



    this.modelMech.render(par1EntityMech, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);

    You may need to put the parametes instead of 0.0F. par2, par4, ...
    Posted in: Modification Development
  • 0

    posted a message on [Still Need Help] Entity is invisible
    Quote from Teotoo

    IIRC you need to call registerGlobalEntityID as well as registerModEntity.

    Also you've set the tracking range of the entity to 0....that's probably not doing it any favours.

    You shouldn't call both methods
    Posted in: Modification Development
  • 1

    posted a message on [forge] Model Not looking like it is supposed to be.
    Don't you love it when people erase their threads because they solved it and other people may need it because it's a forum?
    Posted in: Modification Development
  • 0

    posted a message on Running Eclipse Multiplayer In Online Mode?
    Quote from ibbignerd




    Here's a very simple way to do it. just delete the net folder in your reobf

    http://www.minecraft...r/#entry9843696

    You're are saying that method is easier than putting your credentials in the run configuration arguments?
    Posted in: Modification Development
  • 1

    posted a message on Forge Game Registry Crashes
    Look at your code closely.
    @Init
    public void load(FMLInitializationEvent event)
    {
    // steelBlock is null
    gameRegisters();
    languageRegisters();
    
    // steelBlock is created
    steelBlock = new BlockSteel(steelBlockID, Material.iron).setUnlocalizedName("TileSteelBlock");
    }
    Posted in: Modification Development
  • 0

    posted a message on Keybinds And Sounds no longer work
    Quote from jangofett890

    Refine your Forge tutorial(s) and tell people what class to put it in, how t register it if its in a new class or not. i dont know where the hell im have to put the code man....

    What else do you want me to show? I explained every sound event method, showed where to put them(EventHandler class), then on how to register it in the event bus in the preInit method of your mod. If it's too confusing then you shouldn't be making mods and learn coding basics. Don't know what else to say man.
    Posted in: Modification Development
  • 0

    posted a message on Keybinds And Sounds no longer work
    Quote from jangofett890

    Why is it that when you have given me advice in the past about sounds THEY ARE TOO CONFUSING. And even your new one.

    What lol? I'm not going to go through this in another thread.
    Posted in: Modification Development
  • To post a comment, please .