• 1

    posted a message on [1.2.5] Muserae's Tweaks
    I'm sorry everyone who's waiting for 1.3.
    I've been really busy with school and work, and I'm trying to release a project I've been working on.

    Days I don't have school, i work, and I get a lot of homework from school, so I'm busy and tired every day. On the rare occurrence I don't have anything to do, I work on The Precursor so I can get it released as soon as possible. The tweaks aren't dead, but I promise I'll do my best to update them to 1.4 when it decides to come out in less than a month.

    Again, sorry
    -Muserae
    Posted in: Minecraft Mods
  • 0

    posted a message on [Unsolved] EntityPlayer, EntityPlayerMP, EntityPlayerSP
    I'm working on a mod that is heavy on changing EntityPlayer. In 1.2.5, I had a lot of things that worked like being able to be immune to fire if(...), and same with breathe underwater. Now in 1.3, it isn't working. I've come to the conclusion after days of trying to get these to work, that it's a server side thing, and me changing EntityPlayer isn't going to solve it. My question is, Where would I add the code to make someone immune to fire if I want it Server side? I've never worked with Multiplayer, but I have to now xD

    I can only assume it's EntityPlayerMP, but that didn't work either. I'm probably going to fiddle with it a bit more though.

    Thanks,
    -Muserae
    Posted in: Modification Development
  • 0

    posted a message on [1.2.5] Muserae's Tweaks
    Quote from kasparlaks

    How's that possible?


    You basically added a duplicate of the pumpkin generation. Most of the tweaks would work right now if they didn't get renamed every update.
    Posted in: Minecraft Mods
  • 0

    posted a message on [WIP] The Precursor -- I'm Back after 2 Years!
    Quote from jlwrestling

    Can you download this mod yet?


    Not yet, but soon I hope.
    I have a few bugs I need to work out with displaying skill levels, then I need a way to get exp for each skill. Fishing is complete, but I need to add more ores and logs and stuff.

    When I finish all of this, if I don't have the textures I'll have to make them myself. Once that's done, it'll be ready for release :)
    Posted in: WIP Mods
  • 0

    posted a message on How to make ore spawn like Emeralds/In certain biomes
    You'll have to edit base classes if you want to do this.
    BiomeGenHill has this method:


        public void decorate(World par1World, Random par2Random, int par3, int par4)
        {
            super.decorate(par1World, par2Random, par3, par4);
            int var5 = 3 + par2Random.nextInt(6);
    
            for (int var6 = 0; var6 < var5; ++var6)
            {
                int var7 = par3 + par2Random.nextInt(16);
                int var8 = par2Random.nextInt(28) + 4;
                int var9 = par4 + par2Random.nextInt(16);
                int var10 = par1World.getBlockId(var7, var8, var9);
    
                if (var10 == Block.stone.blockID)
                {
                    par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID);
                }
            }
        }


    You just have to change it do fit your needs.
    Posted in: Modification Development
  • 0

    posted a message on [1.2.5] Muserae's Tweaks
    Quote from Todeslord555

    any news or progress?

    Quote from pandaple

    Wondering the same thing. Abandoned?


    I'm sorry, school started and I've been really busy. I get a ton of homework and I still work.
    Sooner or later I'll get everything posted.
    Posted in: Minecraft Mods
  • 0

    posted a message on Updating/Refreshing a displayed Int
    Quote from PenguinLord

    You should post more of the code on what's going on with your level up mechanic.


    I'll condense the code as much as possible, but have enough to where you can get the point.

    EntityPlayer
        public void onLivingUpdate()
        {
    	    if(alchemyLevel * 50 <= alchemyExp)
    	    {
    		 levelUp(1);
    		 addChatMessage("Your Alchemy Level has increased to " + alchemyLevel);
    		 alchemyExp = 0;
    	    }
    }
    public void levelUp(int skillLeveling)
    {
    	 if(skillLeveling == 1)
    	 {
    	  ++this.alchemyLevel;
    	 }
    }
    public void addSkillExperience(int skillGaining, int expGain)
    {
      this.skillRaising = skillGaining;
      this.expGained = expGain;
     
      if(this.skillRaising == 1)
      {
       this.alchemyTotal += this.expGained;
       this.alchemyExp += this.expGained;
      }
    }
    
    //Basically what happens, is addSkillExperience() is called.
    //addSkillExperience(1, 50) will give skill 1 (alchemy) 50 exp.
    //when it levels up, it calls levelUp() making the level increase.


    PRGuiSkills
    public void drawScreen(int i, int j, float f)
    {
       drawString(fontRenderer, (new StringBuilder()).append("").append(skillName + " Level").toString(), width / 2, height - 93, 0xffffff);
       drawString(fontRenderer, (new StringBuilder()).append("").append("Skill Level: " + skillLevel).toString(), width / 2, height - 77, 0xffffff);
       drawString(fontRenderer, (new StringBuilder()).append("").append("Total Exp: " + skillTotal).toString(), width / 2, height - 45, 0xffffff);
       drawString(fontRenderer, (new StringBuilder()).append("").append("Exp to: " + skillExpTo).toString(), width / 2, height - 13, 0xffffff);
    }
    //When the alchemy button is clicked, it'll set skillName to "Alchemy, skillLevel to a method to get the alchemy level, same with skillTotal and skillExpTo.
    Posted in: Modification Development
  • 0

    posted a message on Updating/Refreshing a displayed Int
    Quote from Plecks

    Well, ModLoader has onTickInGUI, I'm sure Forge has a similar method that gets called every tick/frame while in a GUI.


    You don't happen to know how to use onTickInGUI, do you?
    Posted in: Modification Development
  • 0

    posted a message on Updating/Refreshing a displayed Int
    Quote from Plecks

    Is it only the skill level that doesn't update? If so, you may not be actually incrementing the level once you have enough exp.


    The skills are the thing that aren't updating.
    The display code is in drawScreen() of my GUI.

    Do you know one that's run constantly in GUIs?
    Posted in: Modification Development
  • 0

    posted a message on Updating/Refreshing a displayed Int
    I'm displaying an integer that changes when I do something, but the int doesn't update when it changes.

    In EntityPlayer I have this, which is what I'm displaying
    public int miningExp = 0;
    public int miningTotal = 0;
    public int miningLevel = 1;
    (I can't change them to static)

    and one display code I've used is this:


    drawString(fontRenderer, (new StringBuilder()).append("").append(skillName + " Level").toString(), width / 2, height - 93, 0xffffff);
    drawString(fontRenderer, (new StringBuilder()).append("").append("Skill Level: " + skillLevel).toString(), width / 2, height - 77, 0xffffff);
    drawString(fontRenderer, (new StringBuilder()).append("").append("Total Exp: " + skillTotal).toString(), width / 2, height - 45, 0xffffff);
    drawString(fontRenderer, (new StringBuilder()).append("").append("Exp to: " + skillExpTo).toString(), width / 2, height - 13, 0xffffff);


    When the level goes up from 1 to 2, it stays at 1, but I know it goes up because I have a chat message pop up saying I leveled up.
    Also, skillLevel, skillTotal, and skillExpTo are the three ints I have posted above.

    I've tried looking at GuiInGame, and I found the code for experienceLevel, but that didn't work.
    I think GuiInGame has a code in it somewhere that makes it always updating, but I couldn't figure out what it was. Can anyone help so it'll update?
    Posted in: Modification Development
  • 0

    posted a message on [1.2.5] Muserae's Tweaks
    Quote from soccerguy3

    Hi Muserae

    would you change anything here to make it faster , such as deleting references to the random ticks for melting ?


    It wouldn't make it faster, but more efficient. Delete the updateTick method
    Posted in: Minecraft Mods
  • 0

    posted a message on [1.2.5] Muserae's Tweaks
    Quote from soccerguy3

    Hi Muserae
    I read your tutorial about how to use MCP , so I decided to try the ice return mod. I decompiled and modified the BlockIce.java file


    Could you [spoiler] the code, please? It's very extensive. And you made it not melt in one of the few ways to do it.
    Posted in: Minecraft Mods
  • 0

    posted a message on Custom Furnace Doesn't Notice Items
    There's a file like furnacerecipe or something, I forget. That's what tells the furnace what items make what. I'm assuming you need to make on of those telling your furnace that this item will do this when it's finished.
    Posted in: Modification Development
  • 0

    posted a message on [1.2.5] Muserae's Tweaks
    Quote from JaykeisBrutal

    When did you learn to program/mod?

    About a year ago

    Quote from Jesonomi

    Wow, was pretty sure that I did look over this thread a long time ago. Maybe I really am blind or you really upped it. O_o
    I'll be sure to visit this thread again when you update, Muse, I could definitely use a few of these tweaks.

    Ya, I added a lot more to this mod :P
    Posted in: Minecraft Mods
  • 0

    posted a message on [WIP] The Precursor -- I'm Back after 2 Years!
    Quote from GolemNardah

    Oh man, i'm coding for an RPG mod >.< Haha, this sounds great though, you are a lot farther developed than me :P


    Competition is always good :)
    Posted in: WIP Mods
  • To post a comment, please .