Lightning on player

Started by Ypermat on

Topic category: Help with modding (Java Edition)

Last seen on 10:28, 30. Oct 2023
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Lightning on player

Hey hey ! How can I strike lightning on player ? Or how can I get the player's coordinates to strike lightning on it ?

Thank you !

Last seen on 14:00, 14. Nov 2023
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Did you even searched in the…
Sat, 07/18/2020 - 22:09

Did you even searched in the procedures?
In the "world management" tab, there is a procedure block "Strike lightning at x y z"

Please, at least search before askiing...

Last seen on 10:28, 30. Oct 2023
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah thank you mate (like I…
Sun, 07/19/2020 - 08:57

Yeah thank you mate (like I didn't shearched...) if I "strike lightning at x y z".

Please, at least search before askiing...

If I do that the lightning strike on the entity, not on the player, my question is how to strike lightning ON THE PLAYER.

Please, at least read before answer... :)

Last seen on 14:00, 14. Nov 2023
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Are you freaking serious???…
Sun, 07/19/2020 - 11:05

Are you freaking serious??? The player IS an entity...... it's just a special one because you can control it, but it is considered as an entity... Did you even tried to use that procedure block before answering? I'm here to help you so if you don't want then goodbye!

Last seen on 10:28, 30. Oct 2023
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Bro I am freaking serious,…
Sun, 07/19/2020 - 13:03

Bro I am freaking serious, the procedure is at coordinates, not entity.

When I call the procedure for exemple when you right click a mob, the lightning strike THE MOB not THE PLAYER...

So I tried to play withe the coordinates but if the player is not at the exact coordinates the lightning miss.

You answered me twice in a haughty tone that you "just have to use the block procedure", that is false.

I know the player is an entity, I tried several times in different ways to hit the THE PLAYER not THE MOB and I didn't succed.

Last seen on 10:28, 30. Oct 2023
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I figured out myslef, I used…
Sun, 07/19/2020 - 13:43

I figured out myslef, I used some "X position of..." + "source entity" + "event/target entity" + "strike lightning at..." + entity hit trigger and other things.

More complex than just

"Strike lightning at x y z"

 Thank you.

Last seen on 13:21, 23. Jan 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How exactly did you do this?…
Wed, 10/21/2020 - 18:09

How exactly did you do this? Can you explain? I am doing a professional mod for someone.

Last seen on 13:56, 7. Feb 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey, sorry if i'm a little…
Tue, 02/02/2021 - 08:00

Hey, sorry if i'm a little late, but you can just use "Strike lightning at x: (X position of Source entity) and the same for y and z)" if you want to strike entity on the player.

Last seen on 13:56, 7. Feb 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
strike lightning on the…
Tue, 02/02/2021 - 08:01

strike lightning on the player*

Last seen on 20:01, 27. Mar 2024
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey,  know i'm late x) (…
Tue, 02/01/2022 - 15:41

Hey,  know i'm late x) ( like 1 year later ), but I really need help about what you said... I want that when a specific mob attack you ( the player ) you get strike by a lightning. If a use a "source entity" it does not work. So can someone revive this forum and help me please x)

Last seen on 00:26, 26. Dec 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sushiue, I know im late but…
Sun, 08/21/2022 - 19:07

Sushiue, I know im late but still.
For that, simply create a new procedure, and select Entity attacked as global trigger.
Now check if the event/target entity is player by searching for the Is [Event/Target Entity]  sub-type of [Player] (you have to select Player specifically). Then let it check if the Source Entity (the entity attacking you) is that specific mob that you want. If that is true, do 
Strike Lightning at [X Position of Event/Target Entity] [Y Position of Event/Target Entity] [Z Position of Event/Target Entity].

There you go! :)