how to use new RotationUtils and MovementUtils(如何使用最新的RotationUtils和MovementUtils)
-
当我从b77 c54c5ca版本更新为b77 6d51ef3版本时
我更新的js出现了无法放置方块,autoblock模块不工作的情况
从日志中查看更新后尝试将
RotationUtils.setTargetRotation();
转换为RotationUtils.INSTACE.setTargetRotation()
MovementUtils.strafe(0.2);
转换为MovementUtils.INSTACE.strafe(0.2);
但仍然无法修复
如果可以的话请给出更新后内容js如何使用的示例
或者方法,感谢When I update from the b77 c54c5ca version to the b77 6d51ef3 version
The js I updated failed to place blocks and the autoblock module did not work
After viewing the update from the log, try to
RotationUtils.setTargetRotation();
Convert to RotationUtils. INSTACE. setTargetRotation()
MovementUtils.strafe(0.2);
Convert to MovementUtils. INSTACE. trace (0.2);
But it still cannot be repaired
If possible, please provide an example of how to use the updated content js
Or method, thank youbug反馈无法提交文件,所以我把我的js链接放在下面
Bug feedback: Unable to submit the file, so I placed my js link belowhttps://github.com/Hirohiko360/LiquidBounceScripts-TestScaffold
-
当我从b77 c54c5ca版本更新为b77 6d51ef3版本时
我更新的js出现了无法放置方块,autoblock模块不工作的情况
从日志中查看更新后尝试将
RotationUtils.setTargetRotation();
转换为RotationUtils.INSTACE.setTargetRotation()
MovementUtils.strafe(0.2);
转换为MovementUtils.INSTACE.strafe(0.2);
但仍然无法修复
如果可以的话请给出更新后内容js如何使用的示例
或者方法,感谢When I update from the b77 c54c5ca version to the b77 6d51ef3 version
The js I updated failed to place blocks and the autoblock module did not work
After viewing the update from the log, try to
RotationUtils.setTargetRotation();
Convert to RotationUtils. INSTACE. setTargetRotation()
MovementUtils.strafe(0.2);
Convert to MovementUtils. INSTACE. trace (0.2);
But it still cannot be repaired
If possible, please provide an example of how to use the updated content js
Or method, thank youbug反馈无法提交文件,所以我把我的js链接放在下面
Bug feedback: Unable to submit the file, so I placed my js link belowhttps://github.com/Hirohiko360/LiquidBounceScripts-TestScaffold
@ybyyby_-awa I ported RotationUtils to kotlin, but didn't think of annotating all fields and methods with @JvmStatic and @JvmField.
You therefore have to use RotationUtils like:
RotationUtils.INSTANCE.setTargetRotation()However, I don't like this and it will probably get fixed in b78.
MovementUtils.INSTANCE.getSpeed()is nowMovementUtils.getSpeed()I will preferably make it so that you don't need to access the INSTANCE in the future.
-
@ybyyby_-awa I ported RotationUtils to kotlin, but didn't think of annotating all fields and methods with @JvmStatic and @JvmField.
You therefore have to use RotationUtils like:
RotationUtils.INSTANCE.setTargetRotation()However, I don't like this and it will probably get fixed in b78.
MovementUtils.INSTANCE.getSpeed()is nowMovementUtils.getSpeed()I will preferably make it so that you don't need to access the INSTANCE in the future.
@CzechHek I don't know if what you said worked, so I conducted a test
(Because I have developed a scaffold for a long time, I have found similar js for testing.)
MatrixScaffold.js

This is a simple scaffold that does not work in b77 6d51ef3, so I changed RotationUtils. setTargetRotation (new Rotation (mc. thePlayer. rotationYaw, 90)) to RotationUtils. INSTANCE. setTargetRotation (new Rotation (mc. thePlayer. rotationYaw, 90)) according to your method, but it still does not work
-
@CzechHek I don't know if what you said worked, so I conducted a test
(Because I have developed a scaffold for a long time, I have found similar js for testing.)
MatrixScaffold.js

This is a simple scaffold that does not work in b77 6d51ef3, so I changed RotationUtils. setTargetRotation (new Rotation (mc. thePlayer. rotationYaw, 90)) to RotationUtils. INSTANCE. setTargetRotation (new Rotation (mc. thePlayer. rotationYaw, 90)) according to your method, but it still does not work
@ybyyby_-awa I see, you also need to put keepLength parameter because there isn't @JvmOverloads, so just:
RotationUtils.INSTANCE.setTargetRotation(rotation, 0)from src:
fun setTargetRotation(rotation: Rotation, keepLength: Int = 0)after my pr gets merged, the previous syntax should work just fine:
RotationUtils.setTargetRotation(rotation) -
@ybyyby_-awa I see, you also need to put keepLength parameter because there isn't @JvmOverloads, so just:
RotationUtils.INSTANCE.setTargetRotation(rotation, 0)from src:
fun setTargetRotation(rotation: Rotation, keepLength: Int = 0)after my pr gets merged, the previous syntax should work just fine:
RotationUtils.setTargetRotation(rotation)@CzechHek Thank you for your answer

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login