mickey695
Members-
Posts
5 -
Joined
-
Last visited
Everything posted by mickey695
-
Hello, I am experiencing a very weird + annoying bug in my dev. environment(I have not tested it anywhere else.). Some Items show up with the wrong in game names... more specificly a String from an ArrayList that is only being called once later in load function. [/img] Did I write something wrong ? Is there a known bug with forge that mixes item naming properties ? Thanks in advence, Mickey695.
-
[UNSOLVED]In game overlay text drawing size
mickey695 replied to mickey695's topic in Modder Support
There are so many things there that could be null. Split each field up into its own line and see which line it crashes at. I already solved that, sorry for not removeing it from the title and post(The .getItem would crash it if the ItemStack was null, fixed it by first checking if it's null). But I still would like to be able to increase the size of the text I'm drawing on screen. -
[SOLVED]Checking item in hand and onRightClick
mickey695 replied to Rainfur's topic in Modder Support
From 1.2.5 ?! It won't be easy for you to get used to everything with Forge now... ALL of those are not a part of forge as far as I'm aware, they are a part of MC it self. Modloader "equivalent" of "onRightClick": Function: onItemRightClick, From: Item.class public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { return par1ItemStack; } Check what item is in the player's hand: You need a function with acces to EntityPlayer/Minecraft, after you found something that suits you: thePlayerInstance.getCurrentEquippedItem() Getting a block that is right click: Function: boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) Found in: Block.class Get the block in the position the player right-clicked in and then do whatever you want. -
[UNSOLVED]In game overlay text drawing size
mickey695 replied to mickey695's topic in Modder Support
GL11.glScalef and glScaled only seem to strech the screen to the direction I amplify the value in(and if I add to the Z value the Item Icons seem to disapper) -
Hello I am drawing a String on my screen, I followed a tutorial here that explains how to: http://www.minecraftforge.net/wiki/Gui_Overlay and I succfully drawn it in the position I desired but I would like to make the text larger, is that possible in any way without making the text larger in the Minecraft font ?