Started by
AlphaTD
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make a silent death from skyblock, and it basically teleports you to behind the mob you are looking at, and i can't figure out how to do this!
I responded to someone else trying to achieve the same thing. This is not exactly what you want, but hopefully it helps. Note that this is from someone who was trying to make you teleport behind mobs in a radius. You will need to use raytrace to detect mob you are looking at, which I can look into tomorrow and hopefully get back to you on. For now, this is what I've got:
----------------------------------------------------------------------------------------------------------------------------------------------------
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
----------------------------------------------------------------------------------------------------------------------------------------------------