Jump to content

Help adding a speed boost when in water


chimera27

Recommended Posts

I have been trying to add some kind of potion effect to be applied when the player is in water, they get a speed boost, but apparently vanilla speed has no effect when the player is in water. I looked in the potion class to see how the vanilla speed did it butt the only thing I found was:

.func_111184_a(SharedMonsterAttributes.field_111263_d, "91AEAA56-376B-4498-935B-2F7F68070635", 0.20000000298023224D, 2);

Which I have no idea how it works or what it does.

Does anyone know how to make a custom effect that simply increases the players speed?

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

Link to comment
Share on other sites

It just adds the speed boost buff, which does nothing while you are in water anyway. I am trying to make a buff that acts like speed but is not nullified by water, but I have no idea how to do that because the actual way that speed does this is not plainly visible anywhere. :/

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

Link to comment
Share on other sites

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.