Help with launch the player with a gun WITHOUT doing damage to the player or blocks around it?

Started by Creeper521 on

Topic category: Help with modding (Java Edition)

Last seen on 13:58, 27. May 2019
Joined Jul 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with launch the player with a gun WITHOUT doing damage to the player or blocks around it?

I'm trying to create a sort of recoil/blast effect. Could use some help. 

I need it to:

- launch the player at least like, 4 blocks, doesn't matter what direction

- not damage the player

- not break nearby blocks

Last seen on 03:51, 31. Jul 2023
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not certain if that's…
Sun, 05/26/2019 - 04:52

I'm not certain if that's possible or not. 

Last seen on 05:52, 18. Oct 2021
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I could be wrong but you…
Mon, 05/27/2019 - 09:16

I could be wrong but you could make it so that you teleport 4 blocks away and make explosion power 1

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is possible... I'm…
Mon, 05/27/2019 - 11:07

This is possible... I'm using this to make a missile in my mod.

For the explosions set the explode blocks power to something like 0.1?

For the movement you could use the moverelative method for entities in the code tab.