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.

Tigidipops

Members
  • Joined

  • Last visited

Everything posted by Tigidipops

  1. Thanks it worked. Yeah i'm decently new to Java Im quite young but ive been trying to learn it for 3 years but obviously im no pro but im still currently learning it i just dont have the time currently to focus on it Thanks Anyway. Also This is my first post so I will take into account the snippet thing in the future
  2. I am trying to update some code that adds reach distance to my mod and i have been stuck for hours trying to fix this issue. I have fixed it with other items in the mod by swapping the DamageSource to this.damageSources() but for some reason that will not work for this. It tells me it can not resolve the method. any help would be appreciated thanks. CODE: if (result == null || !(result.getEntity() instanceof LivingEntity target)) return false; double distanceToTargetSqr = entity.distanceToSqr(target); boolean hitResult = (result != null ? target : null) != null; if (hitResult) { if (entity instanceof Player) { if (reachSqr >= distanceToTargetSqr) { target.hurt(this.damageSources().playerAttack((Player) entity), getDamage()); } } } //PROBLEM IS AT damageSources().playerAttack. (Also i know theres a way to insert code onto here but idk how to).

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.