Links
Tags
Creators
Details
Licensed MIT
Published 2 years ago
Updated 2 years ago
All versions
1.0.0
Release
SmartElytra 1.0.02 years ago 53
Compatibility
Minecraft: Java Edition
1.20.1–1.20.6
Platform
Fabric
Supported environments
Client-side
Required content
Any compatible version
Changes
欢迎使用 SmartElytra
本模组致力于尽可能地避免玩家误触鞘翅。
检测逻辑
模组通过固定的逻辑猜测玩家是否是主观地想要使用鞘翅,从而在玩家不想使用鞘翅时禁用鞘翅。
检测逻辑如下:
- 检查玩家是否手持烟花,如果是则允许使用鞘翅,否则继续向下
- 检查玩家是否不在奔跑且脚下不是空气方块,如果是说明玩家地脚在方块中或在流体中,此时禁用鞘翅,否则继续向下
- 检查玩家垂直方向速度的绝对值是否小于 0.25 且距离上一次跳跃的间隔小于 20 Tick,如果是说明玩家在跳跃最高点附近按下了空格,可能是想要通过鞘翅滑行进入爬行模式,此时允许使用鞘翅,否则继续向下
- 检查玩家是否不在奔跑且脚下间隔一个方块的位置是流体或空气,如果是说明玩家可能在尝试进入爬行或借助鞘翅越出水面,此时允许使用鞘翅,否则继续向下
- 检查玩家前方五格的空间是否允许飞行,如果是则允许使用鞘翅,否则禁用鞘翅
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:zGGtU1ry:ZU90Aa58"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:zGGtU1ry:ZU90Aa58"
}

