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
-
@soulplexis lol wtf
edit: just use it dno why you needed to ask -
@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 do you mean importing it? if so:
var PathUtils = Java.type("blah.blah.blah.PathUtils"); //where the class file is placed in