Jump to content

Braquen

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Braquen's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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?
×
×
  • Create New...

Important Information

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