Everything posted by TLHPoE
-
Detecting a Key Press?
Also, what's this? if(Minecraft.getMinecraft().inGameHasFocus){ Minecraft.getMinecraft().thePlayer.openGui(mod_LegendaryUtilities.instance, 0, Minecraft.getMinecraft().theWorld, 0, 0, 0); }
-
Detecting a Key Press?
Ok, I just made my KeyHandler. I'll just set a boolean to toggle when the key is down and up.
-
Detecting a Key Press?
Sorry if I keep bothering you, but is there a iskeyPress method? There's only a isKeyDown method in Keyboard.
-
Detecting a Key Press?
Small little question, do you happen to know where the Minecraft stores it's key bindings? I'm trying to get what key is used in the binding for the inventory.
-
Detecting a Key Press?
Oh. I see now. Thanks
-
Detecting a Key Press?
Nah, I'll just stick with a TickHandler. I think I'll need it later in a little bit. And what do you mean by my TickHandler is not returning null in "public EnumSet<TickType> ticks()"?
-
Detecting a Key Press?
Is there an easier way to detect a key press? Packet Handlers and all those seem like a lot of work just to detect when a key is pressed.
-
Detecting a Key Press?
I just made a TickHandler and registered it. Not sure if detecting a key press is supposed to be placed inside a TickHandler, hopefully it's the right way. My TickHandler: My problem is that it never prints anything.
-
Random Events?
Is there an event that is called whenever the player starts walking? Like in any sort of direction would be fine.
-
Random Events?
How would I go about creating a random event? As in like every 2 or 4 minutes, there's a chance that an event occurs.
-
Textures for Items?
Renaming it to item.woodPaxel doesn't do anything :I
-
Textures for Items?
I already tried renaming it to item.woodPaxel. I have no clue what to do, do I need items/item/woodPaxel?
-
Textures for Items?
I have this in my error log 2013-07-25 11:52:27 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: deathman12e3:textures/items/item.woodPaxel.png Here's a little folder tree src >minecraft >>deathman12e3 >>>textures >>>>items >>>>>woodPaxel.png
-
Textures for Items?
Would this work too? @Override public void registerIcons(IconRegister reg) { this.itemIcon = reg.registerIcon("deathman12e3." + this.getUnlocalizedName() + ".png"); }
-
Textures for Items?
I'm using 1.6.2 Forge, and I was wondering where I put my textures and what method I place into my Item class for the texture.
-
Check if class exists?
Ok, I'm trying to add like a DLC sort of thing. Where if you have the class, then it'll initialize it. But if you don't have it, it'll ignore it.
-
Check if class exists?
I put this into my preInit try { Class c = Class.forName("com.deathman12e3.paxels.DefaultPaxels.class"); } catch(Exception e) { PaxelData.defaultPaxels = false; } And this into my init if(PaxelData.defaultPaxels == true) { System.out.println("HIIIIIIIIIIIIIIIIII"); }
-
Check if class exists?
@hydro How would I put that into an if statement?
-
Check if class exists?
I'm trying to have my mod check for files. So far it prints nothing (the init() method in DefaultPaxels prints HIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII) Placed this into my init: File defaultPaxels = new File("com.deathman12e3.paxels.DefaultPaxels"); if(defaultPaxels.exists()) { DefaultPaxels.init(); } Here's a file tree: src >com >>deathman12e3 >>>mod_LegendaryPaxels >>>ClientProxy >>>CommonProxy >>paxels >>>DefaultPaxels
- Nightvision flicker?
-
Nightvision flicker?
How would I make that delay for 1 second? I don't really understand the if() you put in.
-
Nightvision flicker?
How would I delay it though?
-
Nightvision flicker?
That's what I'm trying to do. I want it to have a cool down. So it adds the potion effect for 1 second, then it waits 1 second and adds it again.
-
Nightvision flicker?
http://www.youtube.com/watch?v=iLGo5AiofKQ&feature=youtu.be
- Nightvision flicker?
IPS spam blocked by CleanTalk.