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.

Snaking

Members
  • Joined

  • Last visited

Everything posted by Snaking

  1. Like you said: " Overall your code is very confusing. What are you trying to achieve here? "
  2. Like the code is so confusing, for it I would a example to me follow the example to write a better code on my mod
  3. I don't know how can I start write a better code, Equals you said
  4. Please can you show me an example code? Just for me to know how to write better code
  5. So, I'm confused right now. I really don't know do it without using the "Timer" and the "boolean"
  6. But how can I use "TickEvent.phase" to count?
  7. Here my code: https://hastebin.com/uvaconipek.cs, the 10sec timer it's just for test. I'll put it for 5 minutes.
  8. But look that: http://prntscr.com/ep29an It get wrong location sometimes. I change to: "player.lastTickPosX;"
  9. But how I'll verify if player is in movement on "PlayerTickEvent"?
  10. Hello there, I'm trying to make an AFK system, I need check if the player is not moving for like 5 minutes. Have a method to me check if the player is moving or not? Like on Spigot: "PlayerMoveEvent" And how can I get the player Location? I'm using that: double x = player.posX; double y = player.posY; double z = player.posZ; But sometimes it get Wrong location. Thank you.

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.