How to use pathutils in a script?
-
this code in teleport for example:
PathUtils.findBlinkPath(endX, endY, endZ).forEach(vector3d -> { mc.getNetHandler().addToSendQueue(classProvider.createCPacketPlayerPosition(vector3d.x, vector3d.y, vector3d.z, true)); thePlayer.setPosition(endX, endY, endZ); });
i wanna use this to make a new teleport-hit that doesnt require you to be falling in order to use it
-
this code in teleport for example:
PathUtils.findBlinkPath(endX, endY, endZ).forEach(vector3d -> { mc.getNetHandler().addToSendQueue(classProvider.createCPacketPlayerPosition(vector3d.x, vector3d.y, vector3d.z, true)); thePlayer.setPosition(endX, endY, endZ); });
i wanna use this to make a new teleport-hit that doesnt require you to be falling in order to use it
@soulplexis lol wtf
edit: just use it dno why you needed to ask -
this code in teleport for example:
PathUtils.findBlinkPath(endX, endY, endZ).forEach(vector3d -> { mc.getNetHandler().addToSendQueue(classProvider.createCPacketPlayerPosition(vector3d.x, vector3d.y, vector3d.z, true)); thePlayer.setPosition(endX, endY, endZ); });
i wanna use this to make a new teleport-hit that doesnt require you to be falling in order to use it
@soulplexis said in How to use pathutils in a script?:
this code in teleport for example:
PathUtils.findBlinkPath(endX, endY, endZ).forEach(vector3d -> { mc.getNetHandler().addToSendQueue(classProvider.createCPacketPlayerPosition(vector3d.x, vector3d.y, vector3d.z, true)); thePlayer.setPosition(endX, endY, endZ); });
i wanna use this to make a new teleport-hit that doesnt require you to be falling in order to use it
PathUtils likes to go thru walls for no reasons afaik, it behaves like that
Which flags vanilla antiphase (bruh!) -
@soulplexis said in How to use pathutils in a script?:
this code in teleport for example:
PathUtils.findBlinkPath(endX, endY, endZ).forEach(vector3d -> { mc.getNetHandler().addToSendQueue(classProvider.createCPacketPlayerPosition(vector3d.x, vector3d.y, vector3d.z, true)); thePlayer.setPosition(endX, endY, endZ); });
i wanna use this to make a new teleport-hit that doesnt require you to be falling in order to use it
PathUtils likes to go thru walls for no reasons afaik, it behaves like that
Which flags vanilla antiphase (bruh!)@yorik100 bruh
-
this code in teleport for example:
PathUtils.findBlinkPath(endX, endY, endZ).forEach(vector3d -> { mc.getNetHandler().addToSendQueue(classProvider.createCPacketPlayerPosition(vector3d.x, vector3d.y, vector3d.z, true)); thePlayer.setPosition(endX, endY, endZ); });
i wanna use this to make a new teleport-hit that doesnt require you to be falling in order to use it
@soulplexis do you mean importing it? if so:
var PathUtils = Java.type("blah.blah.blah.PathUtils"); //where the class file is placed in