Jump to content

AzureusNation123

Members
  • Posts

    79
  • Joined

  • Last visited

Everything posted by AzureusNation123

  1. I have made my custom class to fit my needs but cant work out how to register it? Please help.
  2. I was just looking through the itemRenderer class and came across this. public void renderItem(EntityLivingBase par1EntityLivingBase, ItemStack par2ItemStack, int par3, ItemRenderType type) { GL11.glPushMatrix(); TextureManager texturemanager = this.mc.func_110434_K(); Block block = null; if (par2ItemStack.getItem() instanceof ItemBlock && par2ItemStack.itemID < Block.blocksList.length) { block = Block.blocksList[par2ItemStack.itemID]; } IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(par2ItemStack, type); if (customRenderer != null) { texturemanager.func_110577_a(texturemanager.func_130087_a(par2ItemStack.getItemSpriteNumber())); ForgeHooksClient.renderEquippedItem(type, customRenderer, renderBlocksInstance, par1EntityLivingBase, par2ItemStack); } else if (block != null && par2ItemStack.getItemSpriteNumber() == 0 && RenderBlocks.renderItemIn3d(Block.blocksList[par2ItemStack.itemID].getRenderType())) { texturemanager.func_110577_a(texturemanager.func_130087_a(0)); this.renderBlocksInstance.renderBlockAsItem(Block.blocksList[par2ItemStack.itemID], par2ItemStack.getItemDamage(), 1.0F); } else { Icon icon = par1EntityLivingBase.getItemIcon(par2ItemStack, par3); if (icon == null) { GL11.glPopMatrix(); return; } texturemanager.func_110577_a(texturemanager.func_130087_a(par2ItemStack.getItemSpriteNumber())); Tessellator tessellator = Tessellator.instance; float f = icon.getMinU(); float f1 = icon.getMaxU(); float f2 = icon.getMinV(); float f3 = icon.getMaxV(); float f4 = 0.0F; float f5 = 0.3F; GL11.glEnable(GL12.GL_RESCALE_NORMAL); GL11.glTranslatef(-f4, -f5, 0.0F); float f6 = 1.5F; GL11.glScalef(f6, f6, f6); GL11.glRotatef(50.0F, 0.0F, 1.0F, 0.0F); GL11.glRotatef(335.0F, 0.0F, 0.0F, 1.0F); GL11.glTranslatef(-0.9375F, -0.0625F, 0.0F); renderItemIn2D(tessellator, f1, f2, f, f3, icon.getOriginX(), icon.getOriginY(), 0.0625F); if (par2ItemStack.hasEffect(par3)) { GL11.glDepthFunc(GL11.GL_EQUAL); GL11.glDisable(GL11.GL_LIGHTING); texturemanager.func_110577_a(field_110930_b); GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE); float f7 = 0.76F; GL11.glColor4f(0.5F * f7, 0.25F * f7, 0.8F * f7, 1.0F); GL11.glMatrixMode(GL11.GL_TEXTURE); GL11.glPushMatrix(); float f8 = 0.125F; GL11.glScalef(f8, f8, f8); float f9 = (float)(Minecraft.getSystemTime() % 3000L) / 3000.0F * 8.0F; GL11.glTranslatef(f9, 0.0F, 0.0F); GL11.glRotatef(-50.0F, 0.0F, 0.0F, 1.0F); renderItemIn2D(tessellator, 0.0F, 0.0F, 1.0F, 1.0F, 256, 256, 0.0625F); GL11.glPopMatrix(); GL11.glPushMatrix(); GL11.glScalef(f8, f8, f8); f9 = (float)(Minecraft.getSystemTime() % 4873L) / 4873.0F * 8.0F; GL11.glTranslatef(-f9, 0.0F, 0.0F); GL11.glRotatef(10.0F, 0.0F, 0.0F, 1.0F); renderItemIn2D(tessellator, 0.0F, 0.0F, 1.0F, 1.0F, 256, 256, 0.0625F); GL11.glPopMatrix(); GL11.glMatrixMode(GL11.GL_MODELVIEW); GL11.glDisable(GL11.GL_BLEND); GL11.glEnable(GL11.GL_LIGHTING); GL11.glDepthFunc(GL11.GL_LEQUAL); } GL11.glDisable(GL12.GL_RESCALE_NORMAL); } GL11.glPopMatrix(); } and my question is, how can i use this to make my own custom enchantment effect
  3. sorry im going to be a pain again :L do you mean put it in Item EnchantedBook [*], or put it Item EnchatedBook [] = { *
  4. could you give an example and work from my code?
  5. Is there a way to make a random mob spawn with onItemUse? This is what i have so far, but not sure how to finish it. Item Class package com.azureusnation.mod.cards.unknown; import java.util.List; import net.minecraft.block.Block; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.entity.monster.EntitySkeleton; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.MathHelper; import net.minecraft.world.World; import com.azureusnation.mod.Main; import com.azureusnation.mod.ModInfo; import com.azureusnation.mod.cards.main.CardDescriptions; import com.azureusnation.mod.cards.main.Name; import com.azureusnation.mod.cards.main.logic.RandomMob; import com.azureusnation.mod.cards.main.misc.Icon; import com.azureusnation.mod.cards.main.misc.Rarity; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class UnknownMob extends Item { public UnknownMob(int id) { super(id); this.setUnlocalizedName(Name.unknownMob_unlocalizedName); this.setMaxStackSize(16); this.setCreativeTab(Main.unknownTab); } public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par3EntityPlayer, World par2World, int x, int y, int z, int side, float xOffset, float yOffset, float zOffSet) { if (!par2World.isRemote) { if (!par3EntityPlayer.capabilities.isCreativeMode) { --par1ItemStack.stackSize; } if (par2World.getBlockId(x, y, z) == 0 && (par2World.getBlockId(x, y, z) == Block.grass.blockID || par2World.getBlockId(x, y, z) == Block.stone.blockID || par2World.getBlockId(x, y, z) == Block.dirt.blockID || par2World.getBlockId(x, y, z) == Block.sand.blockID)) { EntitySkeleton ent = new EntitySkeleton(par2World); ent.setLocationAndAngles(x, y + 1, z, MathHelper.wrapAngleTo180_float(par2World.rand.nextFloat() * 360.0F), 0.0F); par2World.spawnEntityInWorld(ent); } par2World.playSoundAtEntity(par3EntityPlayer, ModInfo.ID.toLowerCase()+":card", 1.0F, 1.0F); } return true; } @SideOnly(Side.CLIENT) public boolean hasEffect(ItemStack par1ItemStack) { return true; } public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { par3List.add(Rarity.Unknown); par3List.add(CardDescriptions.UnknownHoe); } @Override @SideOnly(Side.CLIENT) public void registerIcons(IconRegister icon) { itemIcon = icon.registerIcon(Icon.Unknown); } } Random Selector Class package com.azureusnation.mod.cards.main.logic; import java.util.Random; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.monster.EntityBlaze; import net.minecraft.entity.monster.EntityCaveSpider; import net.minecraft.entity.monster.EntityCreeper; import net.minecraft.entity.monster.EntityEnderman; import net.minecraft.entity.monster.EntityGhast; import net.minecraft.entity.monster.EntityGiantZombie; import net.minecraft.entity.monster.EntityGolem; import net.minecraft.entity.monster.EntityIronGolem; import net.minecraft.entity.monster.EntityMagmaCube; import net.minecraft.entity.monster.EntityPigZombie; import net.minecraft.entity.monster.EntitySilverfish; import net.minecraft.entity.monster.EntitySkeleton; import net.minecraft.entity.monster.EntitySlime; import net.minecraft.entity.monster.EntitySnowman; import net.minecraft.entity.monster.EntitySpider; import net.minecraft.entity.monster.EntityWitch; public class RandomMob { private static Random random = new Random(); private static final EntityLiving EntityBlaze = new EntityBlaze(null); private static final EntityLiving EntityCaveSpider = new EntityCaveSpider(null); private static final EntityLiving EntityCreeper = new EntityCreeper(null); private static final EntityLiving EntityEnderman = new EntityEnderman(null); private static final EntityLiving EntityGhast = new EntityGhast(null); private static final EntityLiving EntityGiantZombie = new EntityGiantZombie(null); private static final EntityLiving EntityIronGolem = new EntityIronGolem(null); private static final EntityLiving EntityMagmaCube = new EntityMagmaCube(null); private static final EntityLiving EntityPigZombie = new EntityPigZombie(null); private static final EntityLiving EntitySilverfish = new EntitySilverfish(null); private static final EntityLiving EntitySkeleton = new EntitySkeleton(null); private static final EntityLiving EntitySlime = new EntitySlime(null); private static final EntityLiving EntitySnowman = new EntitySnowman(null); private static final EntityLiving EntitySpider = new EntitySpider(null); private static final EntityLiving EntityWitch = new EntityWitch(null); private static EntityLiving Mob [] = { EntityBlaze, EntityCaveSpider, EntityCreeper, EntityEnderman, EntityGhast, EntityGiantZombie, EntityIronGolem, EntityMagmaCube, EntityPigZombie, EntitySilverfish, EntitySkeleton, EntitySlime, EntitySnowman, EntitySpider, EntityWitch, }; public static void Mob() { } }
  6. Hey, Is the a simple way to give a player a random enchanted book? Basicly what im doing is when a player right clicks my item, i want it to give them a random enchanted book. Please help im using this. public class RandomEnchantedBook { public static double rand; private static Random random = new Random(); private static Item EnchantedBook [] = { }; public static void EnchantedBook(EntityPlayer par3EntityPlayer) { par3EntityPlayer.inventory.addItemStackToInventory(new ItemStack(EnchantedBook[random.nextInt(EnchantedBook.length)], 1)); } }
  7. Item package com.azureusnation.mod.cards.common; import java.util.List; import java.util.Random; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; 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.world.World; import com.azureusnation.mod.lib.Name; import com.azureusnation.mod.lib.cards.Description; import com.azureusnation.mod.lib.cards.Duration; import com.azureusnation.mod.lib.cards.Icon; import com.azureusnation.mod.lib.cards.Rarity; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class MoreHearts extends Item { public MoreHearts(int id) { super(id); this.setUnlocalizedName(Name.moreHearts_unlocalizedName); this.setMaxStackSize(16); this.setCreativeTab(CreativeTabs.tabMisc); } public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { if (!par2World.isRemote) { if (!par3EntityPlayer.capabilities.isCreativeMode) { --par1ItemStack.stackSize; } par3EntityPlayer.addPotionEffect(new PotionEffect(Potion.field_76434_w.id, 300, 2)); } return par1ItemStack; } @SideOnly(Side.CLIENT) public boolean hasEffect(ItemStack par1ItemStack) { return false; } @SideOnly(Side.CLIENT) public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { par3List.add(Rarity.Common); par3List.add(Duration.Common + "0:15"); par3List.add(Description.getElementAt()); } @Override @SideOnly(Side.CLIENT) public void registerIcons(IconRegister icon) { itemIcon = icon.registerIcon(Icon.Common); } } Description package com.azureusnation.mod.lib.cards; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Random; import javax.swing.AbstractListModel; public abstract class Description extends AbstractListModel { static Random rand = new Random(); private static ArrayList<String> description = new ArrayList<String>(); public static Object getElementAt() { return description.get(rand.nextInt(123 - 1) + 1); } public Description(String args[]) { description.add("א ביי געזונט"); description.add("אַלט קאַקער"); description.add("איז-ייי-ייי"); description.add("באַלאַבוסטאַ"); description.add("צו מיר ריא זענען שייַן"); description.add("בערריער"); description.add("ביססעל"); description.add("באָבבעמיסעה"); description.add("בויטשיקק"); description.add("בראָש"); description.add("באַבאַ"); description.add("בובבאַלאַ"); description.add("בופּקעס"); description.add("טשייַאַ"); description.add("טשאַזערעי"); description.add("כוצפּאַ"); description.add("מאַק"); description.add("עס"); description.add("פייַגאַלאַ"); description.add("פערבלונדזשיט"); description.add("פערקאָקקט"); description.add("פאַרפּיטזס"); description.add("פערמישט"); description.add("פערשלוגינאַ"); description.add("פערשטייַ"); description.add("פערשטינקינער"); description.add("פערטוממעלט"); description.add("עסן"); description.add("גאַוואַלט"); description.add("געי אַוועק"); description.add("זינטאַ האַס געי גאַ"); description.add("געי שלאַפען"); description.add("געלט"); description.add("גאָניף"); description.add("גוי"); description.add("גרעפּסע"); description.add("גאָרנישט"); description.add("הייַמיש"); description.add("א האָק טשאַיניק"); description.add("קיביטז"); description.add("טשיינאַ-אַהאָראַ"); description.add("קישקאַ"); description.add("קלאַץ"); description.add("קאָשער"); description.add("קוועלל"); description.add("קוועטש"); description.add("לאָך אין יינגל"); description.add("לופטמענש"); description.add("לוזזעם"); description.add("מאַטש שנעל"); description.add("מאָווערס"); description.add("מייוואַן"); description.add("מאַזעל טוב"); description.add("מעעסאַ מאַשעענאַ"); description.add("מעעסקאַיט"); description.add("מעגיללאַה"); description.add("מענטשן"); description.add("מעשוגגינאַ"); description.add("מישעגאָסס"); description.add("מישפּאָטשאַ"); description.add("מאָמזער"); description.add("מוילעס"); description.add("נאָך אַ מאָאָל"); description.add("נאַטשעס"); description.add("נאַפקאַ"); description.add("נאַררישקעיט"); description.add("נעבביש"); description.add("נאָאָדגע"); description.add("נאָש"); description.add("נו"); description.add("נודניק"); description.add("אָנגעפּאָטטשקעט"); description.add("וי יוי-יוי"); description.add("וי וויי"); description.add("פּישער"); description.add("פּלאַץ"); description.add("פּאָטטשקאַ"); description.add("פּופּíק"); description.add("טינק"); description.add("ראַטשמאָנעס"); description.add("סייַכעל"); description.add("שלאַק"); description.add("שמאַלץ"); description.add("צירונג"); description.add("שאַדכען"); description.add("שאַנדאַ"); description.add("שייַגעץ"); description.add("שייַנער"); description.add("שיקסאַ"); description.add("שלעמיעל"); description.add("שלעפּ"); description.add("שלימאַזל"); description.add("שמענדריקק"); description.add("שמעגעגגע"); description.add("שמאַטטאַ"); description.add("שמעער"); description.add("שמאָאָז"); description.add("שמוטזיק"); description.add("שנאָררער"); description.add("שנאָז"); description.add("שטעטל"); description.add("שטיק"); description.add("שטונק"); description.add("שטופּ"); description.add("שוויטז"); description.add("שוואַנטז"); description.add("שפּיל"); description.add("טטשאָטטשקאַ"); description.add("צעטוממעלט"); description.add("ציממעס"); description.add("צאָריסס"); description.add("צוטטשעפּפּעניש"); description.add("שטאָף"); description.add("טוממעל"); description.add("ונגאַבלוזום"); description.add("ווער קלעמפּט"); description.add("וווס מאַטש דאַ"); description.add("יענטאַ"); description.add("יענטז"); description.add("זאַפטיג"); description.add("קדי גאַ צינק"); description.add("זעטז"); description.add("זיידע"); description.add("זשלוב"); } } Error Log 2013-08-03 17:30:42 [iNFO] [sTDERR] net.minecraft.util.ReportedException: Rendering screen 2013-08-03 17:30:42 [iNFO] [sTDERR] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1046) 2013-08-03 17:30:42 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:933) 2013-08-03 17:30:42 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:826) 2013-08-03 17:30:42 [iNFO] [sTDERR] at net.minecraft.client.main.Main.main(Main.java:93) 2013-08-03 17:30:42 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-08-03 17:30:42 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-08-03 17:30:42 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-08-03 17:30:42 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-08-03 17:30:42 [iNFO] [sTDERR] at net.minecraft.launchwrapper.Launch.launch(Launch.java:57) 2013-08-03 17:30:42 [iNFO] [sTDERR] at net.minecraft.launchwrapper.Launch.main(Launch.java:18) 2013-08-03 17:30:42 [iNFO] [sTDERR] Caused by: java.lang.IndexOutOfBoundsException: Index: 55, Size: 0 2013-08-03 17:30:42 [iNFO] [sTDERR] at java.util.ArrayList.rangeCheck(Unknown Source) 2013-08-03 17:30:42 [iNFO] [sTDERR] at java.util.ArrayList.get(Unknown Source) 2013-08-03 17:30:42 [iNFO] [sTDERR] at com.azureusnation.mod.lib.cards.Description.getElementAt(Description.java:17) 2013-08-03 17:30:42 [iNFO] [sTDERR] at com.azureusnation.mod.cards.common.MoreHearts.addInformation(MoreHearts.java:61) 2013-08-03 17:30:42 [iNFO] [sTDERR] at net.minecraft.item.ItemStack.getTooltip(ItemStack.java:669) 2013-08-03 17:30:42 [iNFO] [sTDERR] at net.minecraft.client.gui.inventory.GuiContainer.drawItemStackTooltip(GuiContainer.java:235) 2013-08-03 17:30:42 [iNFO] [sTDERR] at net.minecraft.client.gui.inventory.GuiContainerCreative.drawItemStackTooltip(GuiContainerCreative.java:774) 2013-08-03 17:30:42 [iNFO] [sTDERR] at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:202) 2013-08-03 17:30:42 [iNFO] [sTDERR] at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:43) 2013-08-03 17:30:42 [iNFO] [sTDERR] at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:674) 2013-08-03 17:30:42 [iNFO] [sTDERR] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1037) 2013-08-03 17:30:42 [iNFO] [sTDERR] ... 9 more 2013-08-03 17:30:42 [iNFO] [sTDOUT] ---- Minecraft Crash Report ---- 2013-08-03 17:30:42 [iNFO] [sTDOUT] // My bad. 2013-08-03 17:30:42 [iNFO] [sTDOUT] 2013-08-03 17:30:42 [iNFO] [sTDOUT] Time: 03/08/13 17:30 2013-08-03 17:30:42 [iNFO] [sTDOUT] Description: Rendering screen 2013-08-03 17:30:42 [iNFO] [sTDOUT] 2013-08-03 17:30:42 [iNFO] [sTDOUT] java.lang.IndexOutOfBoundsException: Index: 55, Size: 0 2013-08-03 17:30:42 [iNFO] [sTDOUT] at java.util.ArrayList.rangeCheck(Unknown Source) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at java.util.ArrayList.get(Unknown Source) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at com.azureusnation.mod.lib.cards.Description.getElementAt(Description.java:17) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at com.azureusnation.mod.cards.common.MoreHearts.addInformation(MoreHearts.java:61) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.item.ItemStack.getTooltip(ItemStack.java:669) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.gui.inventory.GuiContainer.drawItemStackTooltip(GuiContainer.java:235) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.gui.inventory.GuiContainerCreative.drawItemStackTooltip(GuiContainerCreative.java:774) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:202) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:43) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:674) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1037) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:933) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:826) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.main.Main.main(Main.java:93) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:57) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:18) 2013-08-03 17:30:42 [iNFO] [sTDOUT] 2013-08-03 17:30:42 [iNFO] [sTDOUT] 2013-08-03 17:30:42 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows: 2013-08-03 17:30:42 [iNFO] [sTDOUT] --------------------------------------------------------------------------------------- 2013-08-03 17:30:42 [iNFO] [sTDOUT] 2013-08-03 17:30:42 [iNFO] [sTDOUT] -- Head -- 2013-08-03 17:30:42 [iNFO] [sTDOUT] Stacktrace: 2013-08-03 17:30:42 [iNFO] [sTDOUT] at java.util.ArrayList.rangeCheck(Unknown Source) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at java.util.ArrayList.get(Unknown Source) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at com.azureusnation.mod.lib.cards.Description.getElementAt(Description.java:17) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at com.azureusnation.mod.cards.common.MoreHearts.addInformation(MoreHearts.java:61) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.item.ItemStack.getTooltip(ItemStack.java:669) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.gui.inventory.GuiContainer.drawItemStackTooltip(GuiContainer.java:235) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.gui.inventory.GuiContainerCreative.drawItemStackTooltip(GuiContainerCreative.java:774) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:202) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:43) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:674) 2013-08-03 17:30:42 [iNFO] [sTDOUT] 2013-08-03 17:30:42 [iNFO] [sTDOUT] -- Screen render details -- 2013-08-03 17:30:42 [iNFO] [sTDOUT] Details: 2013-08-03 17:30:42 [iNFO] [sTDOUT] Screen name: net.minecraft.client.gui.inventory.GuiContainerCreative 2013-08-03 17:30:42 [iNFO] [sTDOUT] Mouse location: Scaled: (176, 128). Absolute: (353, 223) 2013-08-03 17:30:42 [iNFO] [sTDOUT] Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2 2013-08-03 17:30:42 [iNFO] [sTDOUT] 2013-08-03 17:30:42 [iNFO] [sTDOUT] -- Affected level -- 2013-08-03 17:30:42 [iNFO] [sTDOUT] Details: 2013-08-03 17:30:42 [iNFO] [sTDOUT] Level name: MpServer 2013-08-03 17:30:42 [iNFO] [sTDOUT] All players: 1 total; [EntityClientPlayerMP['Player795'/0, l='MpServer', x=1.53, y=59.73, z=808.57]] 2013-08-03 17:30:42 [iNFO] [sTDOUT] Chunk stats: MultiplayerChunkCache: 441 2013-08-03 17:30:42 [iNFO] [sTDOUT] Level seed: 0 2013-08-03 17:30:42 [iNFO] [sTDOUT] Level generator: ID 01 - flat, ver 0. Features enabled: false 2013-08-03 17:30:42 [iNFO] [sTDOUT] Level generator options: 2013-08-03 17:30:42 [iNFO] [sTDOUT] Level spawn location: World: (6,4,812), Chunk: (at 6,0,12 in 0,50; contains blocks 0,0,800 to 15,255,815), Region: (0,1; contains chunks 0,32 to 31,63, blocks 0,0,512 to 511,255,1023) 2013-08-03 17:30:42 [iNFO] [sTDOUT] Level time: 2780 game time, 2780 day time 2013-08-03 17:30:42 [iNFO] [sTDOUT] Level dimension: 0 2013-08-03 17:30:42 [iNFO] [sTDOUT] Level storage version: 0x00000 - Unknown? 2013-08-03 17:30:42 [iNFO] [sTDOUT] Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) 2013-08-03 17:30:42 [iNFO] [sTDOUT] Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false 2013-08-03 17:30:42 [iNFO] [sTDOUT] Forced entities: 1 total; [EntityClientPlayerMP['Player795'/0, l='MpServer', x=1.53, y=59.73, z=808.57]] 2013-08-03 17:30:42 [iNFO] [sTDOUT] Retry entities: 0 total; [] 2013-08-03 17:30:42 [iNFO] [sTDOUT] Server brand: fml,forge 2013-08-03 17:30:42 [iNFO] [sTDOUT] Server type: Integrated singleplayer server 2013-08-03 17:30:42 [iNFO] [sTDOUT] Stacktrace: 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2294) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:844) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.client.main.Main.main(Main.java:93) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:57) 2013-08-03 17:30:42 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:18) 2013-08-03 17:30:42 [iNFO] [sTDOUT] 2013-08-03 17:30:42 [iNFO] [sTDOUT] -- System Details -- 2013-08-03 17:30:42 [iNFO] [sTDOUT] Details: 2013-08-03 17:30:42 [iNFO] [sTDOUT] Minecraft Version: 1.6.2 2013-08-03 17:30:42 [iNFO] [sTDOUT] Operating System: Windows 7 (amd64) version 6.1 2013-08-03 17:30:42 [iNFO] [sTDOUT] Java Version: 1.7.0_25, Oracle Corporation 2013-08-03 17:30:42 [iNFO] [sTDOUT] Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation 2013-08-03 17:30:42 [iNFO] [sTDOUT] Memory: 612998992 bytes (584 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) 2013-08-03 17:30:42 [iNFO] [sTDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M 2013-08-03 17:30:42 [iNFO] [sTDOUT] AABB Pool Size: 21642 (1211952 bytes; 1 MB) allocated, 18 (1008 bytes; 0 MB) used 2013-08-03 17:30:42 [iNFO] [sTDOUT] Suspicious classes: FML and Forge are installed 2013-08-03 17:30:42 [iNFO] [sTDOUT] IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 2013-08-03 17:30:42 [iNFO] [sTDOUT] FML: MCP v8.04 FML v6.2.19.789 Minecraft Forge 9.10.0.789 4 mods loaded, 4 mods active 2013-08-03 17:30:42 [iNFO] [sTDOUT] mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2013-08-03 17:30:42 [iNFO] [sTDOUT] FML{6.2.19.789} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2013-08-03 17:30:42 [iNFO] [sTDOUT] Forge{9.10.0.789} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2013-08-03 17:30:42 [iNFO] [sTDOUT] azureusnation{0.1.008b} [MineCards] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2013-08-03 17:30:42 [iNFO] [sTDOUT] Launched Version: 1.6 2013-08-03 17:30:42 [iNFO] [sTDOUT] LWJGL: 2.9.0 2013-08-03 17:30:42 [iNFO] [sTDOUT] OpenGL: AMD Radeon HD 6570 GL version 4.2.12002 Compatibility Profile Context 9.12.0.0, ATI Technologies Inc. 2013-08-03 17:30:42 [iNFO] [sTDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge' 2013-08-03 17:30:42 [iNFO] [sTDOUT] Type: Client (map_client.txt) 2013-08-03 17:30:42 [iNFO] [sTDOUT] Resource Pack: Default 2013-08-03 17:30:42 [iNFO] [sTDOUT] Current Language: English (US) 2013-08-03 17:30:42 [iNFO] [sTDOUT] Profiler Position: N/A (disabled) 2013-08-03 17:30:42 [iNFO] [sTDOUT] Vec3 Pool Size: 69 (3864 bytes; 0 MB) allocated, 53 (2968 bytes; 0 MB) used 2013-08-03 17:30:42 [iNFO] [sTDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Gaming\Desktop\Forge\mcp\jars\.\crash-reports\crash-2013-08-03_17.30.42-client.txt AL lib: (EE) alc_cleanup: 1 device not closed
  8. My description for my item keeps updating but i want it to stay static so i can save it in nbt. here's my code:
  9. and how do i say what item i want it to give the player?
  10. How can i give someone a item like TC did when you make a item? Ok lets rephrase what i said, is there any way to give a player an item with onItemRightClick()?
  11. Please help me this keeps happening to me all the time. Do i need to make a tick class? Error Log Where the issue is? (Code)
  12. Im having a bit of trouble atm with this. Ive underlined where the issue is. 'Cannot make a static reference to the non-static method nextInt(int) from the type Random' here is the Array. And here is up to the issue. Thanks in advance
  13. I have made an item but when i do right click it doesn't play my sound. The .ogg is in assets/azureusnation/sound/ Here is my code. Main Class Proxy Sound Handler Item
  14. Let me try and rephrase what im asking for, I want to be able to make a map like item with my own static texture on it, like in thaumcraft. I cant find the map renderer anywhere either. could someone possible tell me the path or help me with what im asking for please
  15. Hi all, Ive been looking at the code for the map but cant find where in there about how you look down on to the map. What i want is to know how you can make a card like object to look down at and hold it like a map. Thanks in advance Az
  16. I can't find a certificateFingerprint Forge Tutorial anywhere, could someone tell me how to use this please so i can detect whether someone is tampering with my mod please
  17. Is there any tutorials you know of to change the value of cameraZoom with reflection that you could point me to please?
  18. ok ive fixed the this.ms but that was easy all i had to do was this: but ive done all the steps but is there still ment to be errors in eclipse or not?
  19. Basically i want to add zoom to my weapons without changing vanilla code. Unfortuantly the cameraZoom and mc is privated, is there anyway around this or does forge have a hook for it? EntityRenderer: GuiIngame:
  20. is there already a forge hook so you can change the camera zoom without changing vanilla files?# Because in EntityRenderer the cameraZoom is privated???
×
×
  • Create New...

Important Information

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