Jump to content

GravityWolf

Members
  • Posts

    98
  • Joined

  • Last visited

Everything posted by GravityWolf

  1. Wait a minute, so um, what do I put in EntityWeWantToDamage? I add the par EntityLivingBase, but it gives me an error. And this is all supposed to go in onRightClick(), right?
  2. Try setting the armor's defense to -1, that might work. I know that works with some things.
  3. Thank you! Does anyone have an idea on how I could do damage with it?
  4. I think he wants us to have you give us the sound.
  5. I was wondering if anyone knew the event that calls a swing that (possibly) does a certain amount of damage. I want it so when you right click with a weapon you swing. Also, I need some help ignoring armor with the swing. Thanks! Also, I have looked around a lot in EntityLivingBase, but I couldn't find the call for a swing. Also, when I search online I mostly get "I CAN SWING MY SWORD!" xP
  6. It seems that your internet is blocking Forge from downloading. Make sure you allow http://files.minecraftforge.net on your FireWall or other internet protection programs.
  7. Could someone please give me some code to help me? I really need this.
  8. Do you think you could just walk me through it instead of just sending me a bunch of google searches? If not that's ok.
  9. setting yourself on fire is a way to learn that fire is hot... but its not necessarelly a good way [lmgtfy]java interface[/lmgtfy] <- to learn a bit more about java [lmgtfy]minecraft forge javadoc IPlayerTracker[/lmgtfy] <- the class you should be using You told me to use that line of code, but not where to use it. I am trying to use it in if(stack != null && stack.getItem() == Items.TestKhopesh) Should I be using this in the code I posted above, or should I be using this somewhere else, and if so, where should I put it? Sorry that I am not that smart, I am new to java and I really want to learn (for the 3rd time ) but because of that I can't understand where to put that automatically, even after I read both of those.
  10. Sorry I know I am so bad at java, I want to learn, and this is a way to learn, how would I define this? I can tell it's not public static EntityPlayerMP entityPlayerMP Can you please help, and like I said, I really want to help and this is a way to learn. Also, I checked http://jd.minecraftforge.net/cpw/mods/fml/common/IPlayerTracker.html#method_summary and it doesn't seem that there is anything about reach distance there.
  11. Thanks but now I'm getting an error under entityPlayerMP And yes, I do have it imported.
  12. I still don't understand, am I supposed to replace double with 0.1d for example, or am I supposed to replace it with a double variable, or what?
  13. Sorry about my noobness, but is double a parameter? I get an error underneath it.
  14. Everything, but in specific, I want to make a hook like item, so right clicking. (Check my edited topic and it will make more sense)
  15. Hello, I want it so when you are holding a specific item, the player's reach distance is changed. I already have the when item is held part, and all I need is the code for it.
  16. Oh, haha, I was just about to post how when I put semicolons instead of a nested class it worked. Thank you, once again! Edit: Semicolons? I mean curlybraces.
  17. Yea. Here's some code if it helps: DragonSword.java Items.java NoctusRealm.java
  18. Oh ok, now I see why it kept printing, but still, I don't see why it is always negating fall damage...even when you don't have the item in your inventory, it still removes all fall damage...am I putting it in the wrong init?
  19. I had the system.out.println() after the if statement, which means that it is somehow called even when you're not falling...
  20. Thank you for the code, and thank you even more for the tutorial! Like you said, I really want to learn things for myself. But there is an issue. It seems that even when the item isn't selected, it still runs the event. I put a system.out.println("Test"); in the event, and every tick I guess, it says "Test" in the console, so that means that it is running always....I changed GasPoweredStick.gasStick to Items.DragonSword (which is where I create all my item variables), and put the MinecraftForge.EVENT_BUS.register(new DragonSword.DragonFallEvent()); (DragonSword.DragonFallEvent is my event name), so what I am guessing is that it is not only cancelling LivingFallEvent when you are holding the item. I wish I could understand what I could do to fix it, as hydroflame said......and I feel very accomplished that I understand what is going on.
  21. Alright, so how would I do this? Sorry for my epic noobishness. I'm not sure how I would subscribe to LivingFallEvent, but this is what I tried: public float LivingFallEvent; Then, in "onUpdate", I would do something similar to: LivingFallEvent = 0.0f; I tried it, and it didn't work...where did I fail? and thank you for putting up with my noobishness.
  22. Anyone know why this is not working? The code seems like it should work...
  23. Hmm...when I add that, it doesn't fix fall damage, and it removes the Damage on going through enemy effect...kinda strange
  24. Aah, got this to work! Just set the number that I could mess around with to 0.08!
  25. I'll give it a try, how would I go about doing it?
×
×
  • Create New...

Important Information

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