Started by
Steakpiper
on
Topic category: Help with Minecraft modding (Java Edition)
I want to teleport to the back of the mobs in 10 blocks based on me when I hold a sword and right click to create the ability to put damage. And if there is more than one mob in 10 blocks, I do it 6 times. Please show me the trigger with screenshot not only talking
Edited by Steakpiper on Mon, 01/31/2022 - 11:59
Unfortunately the screenshot failed to send, but I hope this brief written explanation can still be of use?
In a when right clicked on block / in air procedure, drag an "execute command /_____ [x] [y] [z]" block into the procedure.
Set the command to "execute at @e[distance=..10] run tp @s ~ ~3 ~"
This will teleport you three blocks ABOVE the mob, but it is close enough hopefully? Sorry I couldn't be of more help
Thank you for answering! If you use imgur, you can take a screenshot.