Heya! This is a really easy, really simple set up that should make you teleport wherever you're looking where you right click with an item and if you're crouching!
Since it's a bit hard to see, here's a brief description of what it is and how it works
Global trigger: Player right clicks with item
If is entity/target entity sneaking
do Set location of event/target entity to
x: X look position of event/target entity with raytrace distance 20 fluid mode none block mode visual
Y: Y look position of event/target entity with raytrace distance 20 fluid mode none block mode visual
Z: Z look position of event/target entity with raytrace distance 20 fluid mode none block mode visual
The global trigger will make the game call the procedure when the player right clicks with an item in their hand
The if will only do what is in the do area when the player is sneaking
the do area will teleport the player to whatever block is 20 blocks in front of where they're looking
Hope this helps!
Heya! This is a really easy, really simple set up that should make you teleport wherever you're looking where you right click with an item and if you're crouching!
https://imgur.com/gallery/x2QSHSD
Since it's a bit hard to see, here's a brief description of what it is and how it works
Global trigger: Player right clicks with item
If is entity/target entity sneaking
do Set location of event/target entity to
x: X look position of event/target entity with raytrace distance 20 fluid mode none block mode visual
Y: Y look position of event/target entity with raytrace distance 20 fluid mode none block mode visual
Z: Z look position of event/target entity with raytrace distance 20 fluid mode none block mode visual
The global trigger will make the game call the procedure when the player right clicks with an item in their hand
The if will only do what is in the do area when the player is sneaking
the do area will teleport the player to whatever block is 20 blocks in front of where they're looking
Hope this helps!
i already find procedure, but thank you i will use it later to do teleports