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.

Braquen

Members
  • Joined

  • Last visited

Everything posted by Braquen

  1. So I want to check if an entity is standing still when it is attacked. I tried to use LivingEntity#getSpeed to see if the entity is standing still, but this doesn't work because the victim is pushed by the attacker and the speed never reads a zero. So is there any way to tell if a mob or player is trying to walk rather than just being pushed by something else?
  2. Unfortunately this is not the case. I’m trying to add this effect on the base game Totem via an enchantment. This does help though, I’ll take a look at the code and see if I can find a work around! Do you know if there is a way to put a tick delay on a function? Like have the effect added the tick after the event completes, or even at the end of the current tick?
  3. So I want to give the player the strength effect when they use a totem, but I can't get it to work. I've tested and if you have an effect when you use a totem, it is removed when you get revived (presumably because you "die.") After testing with System.out.print(), I've concluded the entity is given strength then has it immediately removed. This occurs even if I set the event priority to lowest. Does anyone have any ideas on getting around this? Thanks!
  4. Thanks, I was curious what the difference was!
  5. So I'm creating a shield enchantment that reacts only to projectiles, but I've run into a problem. I'm using the .isProjectile() method on damage source to see if event handler should continue or return, which works great for projectiles from a dispenser. However, for projectiles from a mob, the damageSource.getEntity() returns the MOB that shot the projectile, rather than the projectile itself. Any ideas on how to get around this?

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.