How to make an entity throwable?

Started by Wisy on

Topic category: Help with modding (Java Edition)

Last seen on 00:35, 11. Oct 2023
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an entity throwable?

I'm not sure if this is possible, but i would like to make it where if you right click near the entity with an empty hand it will be thrown into the direction you are facing, think like pikmin (i am working on a pikmin mod after all) Any help is appreciated! ^ ^

Last seen on 00:15, 19. Jul 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here's the exact code to…
Thu, 09/07/2023 - 23:30

Here's the exact code to make an entity fly away from you when you right click them with an empty hand. You can change around the values where the look angle vector is multiplied by 2 if you want them to fly further or shorter, and you'll have to select your entity rather than "CornballMan." Another note is that when you grab the blocks they'll have horizontal inputs, but they are the same block and work the same, I just like the organization of vertical inputs.""

Last seen on 00:15, 19. Jul 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And if you were wanting to…
Fri, 09/08/2023 - 00:37

And if you were wanting to hold the entity in your hand, here's how you'd do that. Put the attached code into whatever trigger you want to use to activate holding it. You may have to change out the 'event/target entity' blocks with 'source entity' blocks depending on what trigger you use. The set rotation doesn't look the best in game, it works just fine if you remove it. I'd also suggest you turn off collisions on your entity. And lastly, I don't suggest changing the value that have 230 in them unless you understand trigonometry pretty well and understand what the code is saying, but changing the values with 2 in them will change how far away the entity will be from you.""

Last seen on 00:35, 11. Oct 2023
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
holy cow, you are a…
Wed, 09/13/2023 - 03:22

holy cow, you are a lifesaver !!! THANKS SO MUCH :D

Last seen on 00:15, 19. Jul 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problem, glad I could…
Fri, 09/15/2023 - 23:17

No problem, glad I could help!

Last seen on 06:06, 13. Jul 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
PhatBoi i love you   
Sat, 01/20/2024 - 08:53

PhatBoi i love you