Jump to content

Recommended Posts

Posted

I am attempting to slow entities in a certain radius around the player by a specific amount, including non-mobs such as arrows.  So far all of my attempts have failed, and as far as I can tell there isn't a variable in the Entity class that controls the speed of an entity.  Any ideas?

Posted

for living entities try entity.setAIMoveSpeed(0.5);

non living entities will be the hard part

you could try changing their motionX motionY and motionZ properties, it might work on some of them

 

Posted

Hm.... I might try that for living entities.  I tried multiplying the motionX, Y, and Z variables by 0.5D, but because of the method it's in (onArmorTickUpdate), it just slows them down to an infinitely small degree.  Any ideas of how to fix that? 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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