Jump to content

ObsequiousNewt

Forge Modder
  • Posts

    751
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • URL
    http://192.168.1.1/
  • Location
    The Free State of Denial
  • Personal Text
    Open-Source is swell!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

ObsequiousNewt's Achievements

Dragon Slayer

Dragon Slayer (6/8)

84

Reputation

  1. True. And I know that Lex and cpw are all in a flurry updating Forge; I've seen the Github repo. But I don't want to get it until he's officially released for 1.6. Of course, that's just me.
  2. Er, not "true". But in the constructor of EntityFishHook there is a line that says "this.angler.fishEntity = this;". Since you're missing that line, angler.fishEntity keeps showing up as null. However, EntityPlayer.fishEntity is type-protected to EntityFishHook. Which you don't extend. So you will need to alter your class to extend EntityFishHook, or else use IExtendedEntityProperties.
  3. Badbadbadbad. First of all, that's just slightly modified Minecraft code. Secondly, it's a two-block furnace. Entirely unnecessary. @OP: Which functions are getting 0 for bunsenBurnerBurnTime?
  4. Heres the code im trying to set up to save and get. package mods.cyphereion.cyphscape.levels; import java.io.FileWriter; import java.io.Writer; import org.lwjgl.input.Keyboard; import cpw.mods.fml.common.registry.GameRegistry; import mods.cyphereion.cyphscape.blocks.BlockCopper; import mods.cyphereion.cyphscape.core.Core; import mods.cyphereion.cyphscape.core.CyphScapeMaterials; import net.minecraft.block.Block; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.src.ModLoader; import net.minecraft.world.World; public class Levels { public static int MiningLevel; public static int MiningXp; public void levelCap(EntityPlayer par1EntityPlayer){ if(MiningLevel > 100){ MiningLevel = 100; } } public void onUpdate(EntityPlayer par1EntityPlayer) { for (int i = 0; i < 61; i++) { if (MiningXp / 50 == i) { MiningLevel = i; } } } public int getMiningLevel() { for (int i = 0; i < 61; i++) { if (MiningXp / 50 == i) { return MiningLevel = i; } } return 0; } } That's going to cause problems if you try to use it on a server. You don't want to save that in a Configuration; you want to use EntityPlayer.registerExtendedProperties().
  5. If they're closed-source, you can't. If they're open-source, use reflection. What are the mods?
  6. So would a lot of us, I think. I didn't know that Forge had been updated yet (to a stable point.)
  7. Hmm, that sounds more like a coremod (or maybe just a mod; I'm not sure that needs to be a coremod) API, rather than a part of Forge. "I think this should be in forge as it would encourage it's use" seems to me to be a bad idea; if such a situation with competing APIs arises it would not be the responsibility of Forge to solve it.
  8. I dunno then. There might be a GL11 call you need to make inside the model class. Erm, glColor4*(r,g,b,alpha)? How exactly would I use this? Like I said, I'm a GL Noob completely Looks like that simply sets the colour directly, which is fine- but I need to know where to put it and how to define which part of the model it refers to. Can you help with that? I dunno. I can use GL, but I haven't tried combining glColor with textures. Try putting it either before or after your "bind texture" statement.
  9. No, I meant did you have another thread *before* this one was started, so I could look at your code there. I don't know if you have the same problem; as it it I haven't the faintest idea what's wrong with his code. @OP: can you check if getClientGUIElement() is getting called?
  10. Ever heard of a period? It looks like this: "." USE IT. Got it? Good. Grammar nazi-ing aside... Is this a default survival behavior (re #2) that you're trying to remove? If not, I'd like to see how you're registering the entity (although survival/creative behaviour difference is just odd.)
  11. You're using EntityPlayer.fishEntity to tell whether you have a rod out (just like the normal fishing rod, but it seems you might run into problems), but you're never setting it to true when you spawn the hook. Fixify that!
  12. Hum, did you have a thread for it?
  13. Or... you could do things the easy way and use Minecraft's Configuration class.
×
×
  • Create New...

Important Information

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