Everything posted by LazerMan47
-
[1.7.2] [Unsolved] How To Check The Current Name Of An Item
Hi I am trying to have a command line called in the onUpdate method in my item class that checks if the player renamed that item and returns what the name is. Is there a method like that in the item class? if so, what is it?
-
[1.7.2] Teleporting Player Like Enderman
I am trying to make a sword that teleports you to a close by but random location like the enderman if you hold the block position It is called in the onEaten method: @Override public ItemStack onEaten(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { par3EntityPlayer.setPosition(par3EntityPlayer.posX , par3EntityPlayer.posY , par3EntityPlayer.posZ); return super.onEaten(par1ItemStack, par2World, par3EntityPlayer); }
-
[Solved] [1.7.2] Applying Potion Effects To Armor Only If A Full Set Is Equipped
Nevermind i solved it by changing some code and adding in an if statement @Override public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) { super.onArmorTick(world, player, itemStack); ItemStack boots = player.inventory.armorInventory[0]; ItemStack pants = player.inventory.armorInventory[1]; ItemStack chest = player.inventory.armorInventory[2]; ItemStack head = player.inventory.armorInventory[3]; if(boots != null && pants != null && chest != null) if(boots.getItem() == WeaponsPlus.cloakBoots && pants.getItem() == WeaponsPlus.cloakLegs && chest.getItem() == WeaponsPlus.cloakChest) player.addPotionEffect(new PotionEffect(Potion.invisibility.id, 5, 0)); }
-
[Solved] [1.7.2] Applying Potion Effects To Armor Only If A Full Set Is Equipped
In my Weapons+ Mod, Im trying to create an invisibility suit that only works when the armor is fully equipped. I can make it detect if all armor slots are filled, but i need it to detect the type of armor Here Is My Code (The onArmorTick method in my armor class): @Override public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) { super.onArmorTick(world, player, itemStack); ItemStack boots = player.inventory.armorInventory[0]; ItemStack pants = player.inventory.armorInventory[1]; ItemStack chest = player.inventory.armorInventory[2]; ItemStack head = player.inventory.armorInventory[3]; if(boots == new ItemStack(WeaponsPlus.cloakBoots) && pants == new ItemStack(WeaponsPlus.cloakLegs) && chest == new ItemStack(WeaponsPlus.cloakChest)) player.addPotionEffect(new PotionEffect(Potion.invisibility.id, 5, 0)); }
-
3D ItemRendering help needed
Custom Model (kind of like iChun's Mods)
-
3D ItemRendering help needed
I am working on a mod that has a 3D rendered item in it. I have gotten it to work ok, but i still would like to do some stuff on it. What is done: -Renders in 3rd And 1st Person -Has texture What i need help with: -Making it always have the "bow" action -Making the model render when the item is in drop form Thx in advance -LazerMan47
-
Can't Render Projectile As A 3D Model [1.6.2]
Is there a way i can make the Pig Missile render as a pig (By tht i mean use the pig model) without subclassing EntityLiving, because tht crashes the game as well Pig Missile Changed Class (Extending EntityLiving): Crash Report (With PigMissile Change to EntityLiving):
-
Can't Render Projectile As A 3D Model [1.6.2]
Here is he crash report:
-
Can't Render Projectile As A 3D Model [1.6.2]
i tried to register the renderer in the mod class, but the game crashes whenever i shoot the cannon Mod Class: The purple section is when the stuff for the pig missile is called, and the underlined part of that is the code that crashed the game
-
Can't Render Projectile As A 3D Model [1.6.2]
Continuing on the "Derpy Pig Mod", i ran into problems when creating my Pig Cannon. I managed to get the launcher to render but when i tried to render the projectile, it never worked The projectile renders as a white cube when i run the game. My goal is to get this projectile to render as a pig, and face the right direction. Here is my projectile code Here is my launcher code: Srry if im new to rendering and stuff, the most ive done with rendering is an item renderer
-
[SOLVED!] Problems Exporting Mod Into Zip [1.6] [Dimension]
It worked! Thx
-
[SOLVED!] Problems Exporting Mod Into Zip [1.6] [Dimension]
Im currently working on a fun mod called "The Derpy Pig Mod". It's based on resinresin's Derpy Squid Mod. I spent days on trying to get the mod to work and finally got the following features: This mod works fine in eclipse, but once i export it to a ZIP and put it into the "mods" folder, whenever i open a world, my minecraft crashes. Here is the console output(It doesnt give me a crash report ): Here is a compiled and decompiled version of the mod: Srry if my code is messy, im new to forge Thanks in advance, LazerMan47
IPS spam blocked by CleanTalk.