Lighting and other elemental shots

Started by fastblast64 on

Topic category: Help with modding (Java Edition)

Last seen on 17:36, 20. Aug 2018
Joined Feb 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Lighting and other elemental shots

so im trying to make a staffs and i have the main lightning and right click during tool use down, but i cant seem to figure out how to make the lightning or other element hit where im clicking rather than where im standing i can only seem to constantly kill my self rather than shoot something else with the rod i could do a variable that makes me invincible while the staff is in my hand ,but while its in my hand i also cant take damage period which invincibility isnt the goal.if someone could help or know how to id appreciate the help 

 

Last seen on 09:33, 25. Jun 2018
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can make it right click…
Wed, 06/20/2018 - 11:13

You can make it right click on block(which does hand location) and make it give you invincibility before it strikes lightning for 1 second.

If not then make it kill you but make a upgrade sort of thing which gives you the ability to become invincible for a second(Its what I am making for my mod).

I tried!

Last seen on 09:33, 25. Jun 2018
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you want a bigger…
Wed, 06/20/2018 - 11:14

If you want a bigger explanation then ask me!

Last seen on 17:36, 20. Aug 2018
Joined Feb 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i get what your saying i…
Thu, 06/21/2018 - 08:16

i get what your saying i have accomplished that but im trying to go even futher to where im looking rather than just in my general radius

Last seen on 09:33, 25. Jun 2018
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can make it with…
Thu, 06/21/2018 - 09:18

You can make it with commands.

When right clicked on air -

/execute @e[rm=1,r=10] ~ ~ ~/summon lightning_bolt

i think that shoukd work. It will strike all entities with lightning in a radius of 10 blocks

Last seen on 04:15, 27. Mar 2024
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You'd also need a 'type=…
Thu, 06/21/2018 - 12:27

You'd also need a 'type=!player' argument to avoid striking yourself.

Last seen on 17:36, 20. Aug 2018
Joined Feb 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thx for the help  
Thu, 06/21/2018 - 19:21

thx for the help

 

Last seen on 17:36, 20. Aug 2018
Joined Feb 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thx
Thu, 06/21/2018 - 19:21

thx