How do I make a grappling hook type item?

Started by littledude47 on

Topic category: Help with modding (Java Edition)

Last seen on 18:17, 27. Feb 2021
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a grappling hook type item?

It seems really simple but I have no way of making the mob go to the end of the line without literally teleporting, is there a way to make a mob smoothly go to a position with procedures that isn't teleporting?

Last seen on 00:51, 3. Nov 2020
Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
set entity movement vector…
Fri, 08/28/2020 - 05:54

set entity movement vector with some math should work.

Last seen on 18:17, 27. Feb 2021
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is there any sort of guide…
Fri, 08/28/2020 - 06:17

is there any sort of guide on how to use the movement vector block because I attempted to and it sent me 40k blocks away

Last seen on 00:51, 3. Nov 2020
Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it doesn't send you towards…
Fri, 08/28/2020 - 06:41

it doesn't send you towards the cords you put it will add a amount of force on the axis you put a number in for example putting a 1 in the y value will make you jump up a bit. so you need to take the coordinates of the destination and the current position and do some math to get the right value.

Last seen on 18:17, 27. Feb 2021
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how would I make it so it…
Fri, 08/28/2020 - 06:52

how would I make it so it basically moves you in whatever direction you are facing? My goal is to make it so when the item is right clicked it moves you towards whatever direction you are facing by a certain amount of blocks

Last seen on 00:51, 3. Nov 2020
Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://imgur.com/LXoSENc do…
Fri, 08/28/2020 - 08:35

https://imgur.com/LXoSENc do this for each of the 3 directions making sure to change wich raycast and coordinate to match that of the movement vector block change the hundred to be smaller or bigger depending if you want the max range to be bigger or smaller and change the 1 at the end to be bigger or smaller if you want it to be faster make sure that the x and z axises both have the same number in the 1 slot or else it will get funky and if you change the y's 1 slot don't make it to big or you will flying in the air. you might also want to check to make sure the block at the e[nd of the raycast isn't air or you could grapple on nothing.

Last seen on 18:17, 27. Feb 2021
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok so I tried this and the…
Fri, 08/28/2020 - 17:00

ok so I tried this and the item does nothing upon right clicking, the player just doesn't move at all

Last seen on 23:08, 17. Mar 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create range item name it…
Mon, 11/09/2020 - 18:34

Create range item name it grappling hook.Then go to while bullet flying tick procedure and add if you have the new version add set location of (event/target entity) to x: (x) y: (y+1) z: (z)