Auto 1e-7 Stepping
一款小型实用模组,使 1e-7 步进机制更易于使用
如果你不知道什么是 1e-7 步进,这里有一个快速(且不一定最准确)的解释,帮助你理解该机制的基本原理:
|
如果你沿任何轴移动的距离小于硬编码值 1e-7(即 0.0000001),则该移动会被取消。这就引出了碰撞检测。当你即将与方块发生碰撞时——Minecraft 不会让你这样做,而是将你的位置设置在方块边缘附近,使得你与该方块的距离约为 1e-8。然后游戏会对移动向量进行平方运算,如果结果小于 1e-7,则移动被取消。
但如果你正准备上台阶(例如从半砖上跳下、跳到半砖上,或者以其他方式向上移动半个方块或更小的距离),检查过程如下:
第一次检查——发现你的移动量大于 1e-7 -> 发现你即将与方块碰撞 -> 发现你需要做一个踏步动作 -> 将你的位置设置在距离方块 1e-8 处并完成踏步(将你向上移动半个方块)。
第二次检查——发现你的移动向量平方后仍大于 1e-7(因为你也在向上移动),因此不做任何处理。
随后游戏会检查与上方方块的碰撞。如果没有障碍物——游戏允许你继续前进。如果有方块,它再次将你的位置设置在边缘附近,但仍认为你站在提供短暂跳跃时间的方块上。
你可以在这里找到关于此机制工作原理的更详细解释(*点击*)。
|
|
注意
本模组需要安装 Fabric API 和 Yet Another Config Lib 才能正常工作!
使用方法
要定位自身,你必须先撞向墙壁。
然后按下定位键
默认按键绑定为 "O"
或者运行命令
/auto1e7 positioning
|
|
|
第一种定位模式
|
第二种定位模式
|
你有两种定位模式:
- 数据包模式(向服务器发送包含所需精确位置的数据包)
- 脚本模式(执行一系列玩家可手动执行的操作,但速度稍快)
你可以通过在 ModMenu 选项卡中打开配置界面,或使用以下命令来切换定位模式:
/auto1e7 config
支持的语言
- 英语
- 俄语(可能不完全准确)
- 简体中文(可能不完全准确)
如果你想帮助翻译本模组——你可以在 Discord 上联系我 scany_alt
如果发现 bug——请在 GitHub Issues 页面 报告
Auto 1e-7 Stepping
Little utility mod to make 1e-7 stepping mechanics easier to use
If you don't know what 1e-7 stepping is, here's quick (and not the most accurate) explanation to understand the basic principals of this mechanic:
|
If you move along any axis less than the hardcoded value of 1e-7 (or 0.0000001) — the movement gets canceled. This brings us to the collision checks. When you're about to collide with a block — Minecraft doesn't let you do it and sets your position next to the edge of a block so the distance to it is about 1e-8. Then the game squares the movement vector and if the result is less than 1e-7 — movement gets canceled.
But if you're about to step (for example, from the slab, or to the slab, or otherwise move up half a block or less), the checks will run like that:
First check — sees your movement is greater than 1e-7 -> sees you're about to collide with the block -> sees that you need to make a step -> sets your position to 1e-8 from the block and makes a step (moves you half a block higher).
Second check — sees that your movement vector squared is greater than 1e-7 (since you're also moving upwards) and doesn't do anything.
Then the game checks the collision with the top block. If there's nothing — the game lets you move further. If there's a block, it again sets your position next to the edge, but still thinks that you're standing on the block that gives you a little time gap to make a jump.
Here you can find more detailed explanation of how this mechanics works (*click*).
|
|
ATTENTION
This mod requires Fabric API and Yet Another Config Lib to work correctly!
HOW TO USE
To position yourself you have to hit a wall first.
Then press positioning key
By default keybind is set to "O"
Or run the command
/auto1e7 positioning
|
|
|
First positioning mode
|
Second positioning mode
|
You have two positioning modes:
- Packet (sends packet on server with exact position you need to be moved)
- Script (performs series of actions that player can perform manually, but does it a bit faster)
You can switch between positioning modes by opening the config screen in modmenu tab or by using the command
/auto1e7 config
Languages supported
- English
- Russian (may be not 100% accurate)
- Simplified Chinese (may be not 100% accurate)
If you want to help with mod translation — you can contact me on discord scany_alt
If you found a bug — please report it on GitHub's Issues page
评论 0
登录后参与评分
还没有评论,来抢沙发吧