right clicking summun lightning

Started by alduin370 on

Topic category: Help with MCreator software

Last seen on 07:19, 11. May 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
right clicking summun lightning

Hello I would like to know how to make a lightning spawn where I look by right clicking with a sword

Last seen on 12:02, 20. Mar 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can do if you want it to…
Wed, 05/11/2022 - 17:38

I can do if you want it to strike specifically right click on entity, not on block or in air. Sorry if that isn't good.

What you need to do for right click on entity is this:

1. Make procedure. You can name it anything.

2. In the green script starter block, change "No additional trigger" to "Player right clicks on entity".

3. Make a block that says                                                                                                                                                                     "if: [item in main hand of [source entity] ] = [<put your sword here>], do: strike lightning at [x] [y] [z] effect only: false"

Sorry I couldn't send an image. Hope this helped

Last seen on 11:59, 11. Aug 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Go to your sword's trigger …
Thu, 05/26/2022 - 16:16

Go to your sword's trigger "on right click" and then make a procedure using ray tracing.

Should look something like this:

event {

strike lightning at [look X pos of (event entity) with raytrace distance (100) fluid none] [look Y pos of (event entity) with raytrace distance (100) fluid none] [look Z pos of (event entity) with raytrace distance (100) fluid none]

}

Changing the 100 to your desired RT distance

Last seen on 00:43, 14. Jan 2023
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Go to "triggers" in your…
Sun, 05/29/2022 - 00:23

Go to "triggers" in your sword and then add a procedure for "On right clicked block".

After that, add the block: STRIKE LIGHTNING AT X: x Y: y Z:z.

Then you should be good!

I havent actually tried this but it should work