Jump to content

zildjian97

Members
  • Posts

    4
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

zildjian97's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. So, what I'm going to do is use packets so that the server knows I pressed them, but where would I put my teleport code? My teleport code works if I just use LWJGL's Keyboard.keyDown. Do I need to move it too? And also, I don't know how to get player and world instances without using Modloader. I'm currently using EntityPlayer entityplayer = ModLoader.getMinecraftInstance().thePlayer or World currentWorld = ModLoader.getMinecraftInstance().theWorld to get instances. Is there another way around?
  2. Can you tell me how? I have never been in this part of modding. It's always a good time to learn. EDIT: Will this work? World currentWorld = ModLoader.getMinecraftInstance().theWorld;
  3. How would I do it then? I changed it to this now. EDIT: Okay, I made teleport into a boolean and put the teleport code in an if statement that will only run if teleport is true. I put that if statement on the mob's onLivingUpdate. Then, I put this into onKeyDown. but nothing happens when I press the button.
  4. Hello, I've been spending alot of time just to get my keybinds to work. This is the idea. My entity can teleport to where you are looking at, the codes for them are in a method called teleport(). I have this in my main mod file. And this is my KeyHandler. In case you may wonder what the teleport() is, here it is also. I can change the controls fine, but it doesn't work when I actually press the button. Help please?
×
×
  • Create New...

Important Information

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