My projectile not detects if it hits a block

Started by andras.kohler on

Topic category: Help with Minecraft modding (Java Edition)

Active 7 months ago
Joined Jul 2024
Points:
81

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
My projectile not detects if it hits a block
Sun, 07/07/2024 - 20:22 (edited)

I wanted to create a ender pearl projectile which teleportates me to the place where the ender pearl lands.

The problem:

At the projectile "when entity hits a block" trigger I've tried to "set location of Event/target entity to x,y,z" but when I tested my projectile it went through the blocks, teleport was not working.

 

 

Edited by andras.kohler on Sun, 07/07/2024 - 20:22
Active 3 hours ago
Joined Apr 2024
Points:
426

User statistics:

  • Modifications: 9
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 474
Because the event target…
Mon, 07/15/2024 - 00:06

Because the event target entity Is the projectile, you have to teleport the source entity 

Active 7 months ago
Joined Jul 2024
Points:
81

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Thanks, I will try it!
Tue, 07/16/2024 - 13:45

Thanks, I will try it!

Active 11 hours ago
Joined Jan 2025
Points:
47

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
Sadly there is no source…
Thu, 01/16/2025 - 18:35

Sadly there is no source entity provided in the "when projectile hits block" procedure. By the way I have the same problem.