(RESOLVED) Lightning at cursor, not player. Please help me

Started by Expandi-craft … on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 16:20, 16. Nov 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(RESOLVED) Lightning at cursor, not player. Please help me
Mon, 07/03/2023 - 07:28 (edited)

So i'm making a item which when right clicked at an entity, it spawns lightning on them, but it spawns at the player's location. How do i fix it?

Edited by Expandi-craft mod dev on Mon, 07/03/2023 - 07:28
Last seen on 20:18, 12. Mar 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try using the block: Strike…
Sun, 07/02/2023 - 21:00

Try using the block: Strike lightning at (X of (event/target entity)) (Y of (event/target entity)) (Z of (event/target entity))

Make sure you aren't using the "Source entity" block, or the "x", "y", and "z" blocks.