How to make a throwable item that can return to you?

Started by Chasebear777 on

Topic category: Help with modding (Java Edition)

Last seen on 15:36, 30. May 2024
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a throwable item that can return to you?

I'm making a lightsaber from star wars and i want to be able to throw it but i want it to return to you and i don't really want it to just be put or stay in your inventory after you throw it i want it to be like the loyalty enchantment on tridents where when you throw it then it comes back to you with a animation, also i am using 1.16.5

Last seen on 21:45, 30. Apr 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
unless theres an easier way…
Fri, 04/08/2022 - 14:26

unless theres an easier way what i would do is,

make a ranged weapon that has the light saber spin as the projectile then shoot it when you right click with the lightsaber

then get the xyz of the original player and after a second or two from throwing it and override its velocity to the opposite of the way it was going

Last seen on 13:11, 21. May 2023
Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@mdpotato how would you do…
Wed, 11/23/2022 - 12:15

@mdpotato how would you do that??