Lightning on player

Started by Ypermat on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Aug 2018
Points:
825

User statistics:

  • Modifications: 2
  • Forum topics: 18
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 73
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 !

Active 1 year ago
Joined Jun 2015
Points:
1277

User statistics:

  • Modifications: 10
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 1
  • Comments: 543
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...

Active 1 year ago
Joined Aug 2018
Points:
825

User statistics:

  • Modifications: 2
  • Forum topics: 18
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 73
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... :)

Active 1 year ago
Joined Jun 2015
Points:
1277

User statistics:

  • Modifications: 10
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 1
  • Comments: 543
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!

Active 1 year ago
Joined Aug 2018
Points:
825

User statistics:

  • Modifications: 2
  • Forum topics: 18
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 73
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.

Active 1 year ago
Joined Aug 2018
Points:
825

User statistics:

  • Modifications: 2
  • Forum topics: 18
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 73
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.

Active 3 years ago
Joined Oct 2020
Points:
634

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
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.

Active 4 years ago
Joined Feb 2021
Points:
597

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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.

Active 4 years ago
Joined Feb 2021
Points:
597

User statistics:

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

strike lightning on the player*

Active 1 year ago
Joined Feb 2022
Points:
482

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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)

Active 1 year ago
Joined Mar 2022
Points:
462

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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! :)