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.

shadowducky

Members
  • Joined

  • Last visited

  1. So is there a way for the client to call the distance to the entity and then send that to the renderer? I tried looking through the ghast for a way to do it but it uses entity data and time remaining for charging
  2. I am attempting to create an entity (in 1.18.2) that changes its texture based on distance from its target (usually the player). I've tested the texture changing with other booleans such as above or below a certain height, but when trying with distance from the player it does not switch to visible. Right now the if statement checks (this.getTarget() != null) and then .distanceTo but the texture doesn't switch. I used the tick() function to output the current target and even when the entity is moving towards the player, the target flickers between null and the player. I included the entity class and log below (the log was shortened because it's repetitive) Entity Class: https://pastebin.com/2XxeKh8n Output Log: https://pastebin.com/0R55tu0A

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.