Jump to content

lombax

Members
  • Posts

    9
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Recent Profile Visitors

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

lombax's Achievements

Tree Puncher

Tree Puncher (2/8)

-1

Reputation

  1. I use that, but I'm not sure how to implement it, as well as get a gui, use the BuildCraft API, and make it create items based on NBT data.
  2. Hello, I'm a bit new to modding and require some help with creating a TileEntity. I've tried creating one before, but with no success. I would also like to make the TileEntity render with a custom model. If you could contact me privately on skype to help via IM and/or Teamviewer, that would be much appreciated. Skype:vista4utoday
  3. Hey, I seem to be having a problem with my packet handling system. For some reason, the server keeps freezing up on me. I have my code and error logs below: Error: Sent Packet(Server): Received Packet(Client): If you have any idea why this is happening, please reply.
  4. I figured it out after some experimentation. First, I copied ItemFood, and edited my own copy of it: First, I took this: private int potionId; private int potionDuration; private int potionAmplifier; private float potionEffectProbability; and turned it into this, as I wanted 3 effects: private int potionId; private int potionId2; private int potionId3; private int potionDuration; private int potionDuration2; private int potionDuration3; private int potionAmplifier; private int potionAmplifier2; private int potionAmplifier3; private float potionEffectProbability; private float potionEffectProbability2; private float potionEffectProbability3; Then, I took public NewPotion setPotionEffect(int par1, int par2, int par3, float par4) { this.potionId = par1; this.potionDuration = par2; this.potionAmplifier = par3; this.potionEffectProbability = par4; return this; } and copied/pasted it right under the old one, then edited the new one, note that I changed the name from setPotionEffect to setPotionEffect2, and it uses the new vars, to look like this. public NewPotion setPotionEffect2(int par1, int par2, int par3, float par4) { this.potionId2 = par1; this.potionDuration2 = par2; this.potionAmplifier2 = par3; this.potionEffectProbability2 = par4; return this; } Then, I Finally took the code that puts the effects on you, and made it put on the new Effects as well. The original code looks like this: protected void func_77849_c(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { if (!par2World.isRemote && this.potionId > 0 && par2World.rand.nextFloat() < this.potionEffectProbability) { par3EntityPlayer.addPotionEffect(new PotionEffect(this.potionId, this.potionDuration * 20, this.potionAmplifier)); } } After editing, It should look like this: protected void func_77849_c(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { if (!par2World.isRemote && this.potionId > 0 && par2World.rand.nextFloat() < this.potionEffectProbability) { par3EntityPlayer.addPotionEffect(new PotionEffect(this.potionId, this.potionDuration * 20, this.potionAmplifier)); par3EntityPlayer.addPotionEffect(new PotionEffect(this.potionId2, this.potionDuration2 * 20, this.potionAmplifier2)); } } Now, instead of just using: .setPotionEffect(Potion.jump.id, 60, 2, 1F) You can now use .setPotionEffect2(Potion.moveSpeed.id, 60, 2, 1F) And you want to use this code to get your sprites. public String getTextureFile() { return "/sprites/yoursprites.png"; } Remember to use this code to add your new potions/food with multiple effects in-game: TriplePotion = new NewPotion And put all the things that you would normally put there.
  5. Hey, I've recently been attempting to mod minecraft. I added this "Item" that I want to give you 2 potion effects. Currently, I have it adding ".setPotionEffect(Potion.jump.id, 60, 100, 1F)", I would also like it to add ".setPotionEffect(Potion.moveSpeed.id, 60, 100, 1F)". I would like to know if anyone can help me with this. PM me or respond.
  6. Hey, I'm currently brainstorming ideas for a mod. I want to make a certain block that, when smelted, releases an aura from the furnace that it's smelted in that makes you get an effect(swiftness II for example). I would also like to make a custom effect that makes the player emit a sound(ghast scream noise) multiple times. That's all I need help with right now. If you can help, post here or PM me, either works. But you should post it here, as to help other people if they need help with the same subject. Thanks for the help in advance!
  7. Hey, my name's lombax! This is my second post on this site, hopefully I'll have better luck this time. I know some about modding and currently am learning java. I know how to make simple mods, like tools, ore, and fuel. I think that if I could get a tutor with some experience, I could make some awesome mods. I'll take into consideration anyone that would like to help me out. Just, please send me a link to any mod that you have worked on, or something that you made in java. I'll give you my contact information so we can contact each other. Right now, I'll tell you that I'm 15 years old. The reason that I want to learn how to mod is that I am aiming to be a computer programmer in the future, and why not practice java in an environment other than Minecraft. I would appreciate any help that you guys give me. I'll listen to what you have to say. I want constructive criticism, I can use Skype, and do Teamviewer meetings. I can happily download other software if you need me to. -- Thanks, lombax
  8. Hey, my name's lombax! This is my first post on this site. I know some about modding and currently am learning java. I know how to make simple mods, like tools, ore, and fuel. I think that if I could get a tutor with some experience, I could make some awesome mods. I'll take into consideration anyone that would like to help me out. Just, please send me a link to any mod that you have worked on, or something that you made in java. I'll give you my contact information so we can contact each other. Right now, I'll tell you that I'm 15 years old. The reason that I want to learn how to mod is that I am aiming to be a computer programmer in the future, and why not practice java in an environment other than Minecraft. I would appreciate any help that you guys give me. Keep in mind, I'm not ignorant like the other 3 quarters of my age group . -- Thanks, lombax
×
×
  • Create New...

Important Information

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