How to teleport when ranged projectile hits a block

Started by Mateo2014 on

Topic category: Help with MCreator software

Last seen on 17:11, 19. Sep 2023
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to teleport when ranged projectile hits a block

I am trying to make a spider man glove, so that when the webs hit a block, It teleport the player to that block

 can somebody help me with the procedure.?

Thanks,

Mateo

Last seen on 05:17, 25. Jun 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I did something similar…
Wed, 09/06/2023 - 00:29

I did something similar recently, but the web or any string looking thing I don't think is easily possible. What I did is I had a ranged weapon which shoots a projectile that the player teleports to each tick, so it doesn't look the smoothest if you try turning your character, but it does the trick.  Add the attached code to the "when projectile hits block," "when projectile hits living entity," and "while projectile flying tick" triggers in a ranged weapon. Mess around with the projectile power to go longer or shorter distances with different speeds, I personally use power level 2, much higher can get pretty out of control. Hope this helps!""

Last seen on 17:11, 19. Sep 2023
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks so much!
Wed, 09/06/2023 - 00:47

Thanks so much!

Last seen on 17:11, 19. Sep 2023
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what blocks are those?
Wed, 09/06/2023 - 11:57

what blocks are those?

Last seen on 05:17, 25. Jun 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The OR is found under Logic,…
Wed, 09/06/2023 - 23:51

The OR is found under Logic, it’s one of the blue = block but is has a option to be OR. When you grab it the inputs will be internal/horizontal, it does the same thing. The is the same block as block is also under Logic, and the blank block selector is under Minecraft components.