Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

zildjian97

Members
  • Joined

  • Last visited

Everything posted by zildjian97

  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?

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.