Jump to content

[1.8]Adding the Flying Slow-Stop (Also on Ice) to Running as a Boots Enchantment


Tagg393

Recommended Posts

So basically I would like to replicate the whole "skating on ice" thing on any surface...  Kind of like when you are flying, too. Can anyone point me to anything useful? Thanks in advance :)

 

Look at BlockIce and then just apply that to the blocks somehow. (I would check into the EntityMovementEvent or whatever it's called and go from there)

Link to comment
Share on other sites

hmmm lets see...

if you want to do the same thing as ice would do, where would you look?

Oh I know!

The ice codecheesy.gif

 

 

That is an almost completely useless answer.

 

See, the Ice code works on the side of the blocks. What he wants to do is on the side of the player, meaning it is the player (presumably while wearing something) who is going to be "slippery" (I'm assuming)

 

Turns out that if you want to constantly change the block properties under you, you're only wasting your time.

 

To answer the OP's question, look here:

https://github.com/Darkona/AdventureBackpack2/blob/master/src/main/java/com/darkona/adventurebackpack/common/BackpackAbilities.java

 

See the itemSlime method for a way to make it so the player is all slippery. Mind you, this method executes every tick and leaves blocks untouched. You can use something similar in an event handler, executing in every tick the player has boots with the enchantment or however you're handling the enchantment.

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.



×
×
  • Create New...

Important Information

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