Started by
Ypermat
on
Topic category: Help with Minecraft modding (Java Edition)
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 !
Topic category: Help with Minecraft modding (Java Edition)
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 !
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...
Yeah thank you mate (like I didn't shearched...) if I "strike lightning at x y z".
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... :)
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!
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.
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
Thank you.
How exactly did you do this? Can you explain? I am doing a professional mod for someone.
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.
strike lightning on the player*
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)
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! :)