Falling Projectile

Started by KutikiPlayz on Thu, 12/24/2020 - 22:31

Topic category: Help with modding (Java Edition)

Last seen on 03:36, 25. Dec 2020
Joined Dec 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Falling Projectile
Thu, 12/24/2020 - 22:31

Is it possible to make a weapon that, when it fires the projectile, it falls from the sky to where ever your crosshair is?

Last seen on 23:18, 25. Feb 2021
Joined Nov 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You should be able to…
Thu, 12/24/2020 - 23:32

You should be able to achieve this by doing something like this:

  • Create a ranged weapon that fires your projectile normally, with the creative tab set to None because this item is just so that you can use the projectile later and wouldn't actually be used by or accessible to the player
  • Make your actual weapon (probably of the Item or Tool element type) and have it perform a summon command on right-click at the players look location. You would have to use the "look position of entity" blocks and the join text block to create the command.

Unfortunately Imgur seems to be down right now, so I can't upload a picture of an example. Sorry if this was a bit obtuse.

Last seen on 03:36, 25. Dec 2020
Joined Dec 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Would it be possible for you…
Thu, 12/24/2020 - 23:52

Would it be possible for you to explain the procedure more? I haven't familiarized myself with the code blocks just yet.