Started by
Versannon
on
Topic category: Help with Minecraft modding (Java Edition)
So, i am trying to make a sword that can teleport the player holding the sword to the location where the crosshair is pointed at but i can't quite figure it out.
I have the textures and everything else ready just not the procedure for 'when right clicked'.Please help me
You can use the 'set location of' block found in entity procedures tab, and inside each coordinate axis, replace the x, y & z with all the different 'look x/y/z position of event/target entity with raytrace distance' blocks found under the same tab and set the number to how far away you want players to be able to teleport. Just remember to match up the x, y & z's together.
This forum has a pretty good example of what I'm talking about, but replace summoning lightning with teleporting the player:
https://mcreator.net/forum/66804/lightining-sword
just one thing, what is the "fluid mode" and "block mode"?