Started by
sansdw
on
Topic category: Help with Minecraft modding (Java Edition)
I need help with that, it does teleport the player, yes it does. But even if i am 64 blocks away from the position i can still teleport ( which is not meant )
i cant send the image so yeah, but its basically a tool that teleports you if you are 64 blocks nearby the position you set to teleport.
hi, if you upload the screenshot to something like imgur it would be alot easier. or you could view the code and send that instead.
but it sounds like what you want to do, is something like this.
(event)
get entity x, y and z
get origin x, y and z
if entity x,y&z is < 64 blocks away from origin xyz:
teleport entity to origin
https://imgur.com/a/vpie4f0
Sorry for late response, i don't know why but i can't upload images so heres the link
and yes, thats what i want to do
can i ask when you are calling this procedure? is it only on right click of an item?
yeah, to set the position you shift + right click and to teleport you just right click
this is the procedure to set the position : https://imgur.com/a/ZEc9Stp
and this is the procedure to teleport : https://imgur.com/a/vpie4f0
seem your issue is your checking if any entity exists within 64 blocks of the player and then teleporting rather then if your within 64 blocks of the location
sorry im late lol. so how would i do it? im still learning mcreator