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 Minecraft modding (Java Edition)

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

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. 

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

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.