Compare commits
6 Commits
createairf
...
createairf
Author | SHA1 | Date | |
---|---|---|---|
46a668339c | |||
58a5175ed9 | |||
7ccdf8d063 | |||
5bf98c8248 | |||
3e3ab91895 | |||
2bbd719a5f |
13
build.gradle
13
build.gradle
@ -31,10 +31,15 @@ repositories {
|
|||||||
maven { url = "https://jitpack.io/" } // Mixin Extras, Fabric ASM
|
maven { url = "https://jitpack.io/" } // Mixin Extras, Fabric ASM
|
||||||
maven { url = "https://maven.tterrag.com/" } // Flywheel
|
maven { url = "https://maven.tterrag.com/" } // Flywheel
|
||||||
|
|
||||||
|
exclusiveContent {
|
||||||
|
forRepository {
|
||||||
maven {
|
maven {
|
||||||
url 'https://www.cursemaven.com'
|
name = "Modrinth"
|
||||||
content {
|
url = "https://api.modrinth.com/maven"
|
||||||
includeGroup "curse.maven"
|
}
|
||||||
|
}
|
||||||
|
filter {
|
||||||
|
includeGroup "maven.modrinth"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -56,7 +61,7 @@ dependencies {
|
|||||||
modImplementation("com.simibubi.create:create-fabric-${minecraft_version}:${create_version}")
|
modImplementation("com.simibubi.create:create-fabric-${minecraft_version}:${create_version}")
|
||||||
|
|
||||||
// Thin Air
|
// Thin Air
|
||||||
modImplementation("curse.maven:new-thin-air-878379:4611944")
|
modImplementation("maven.modrinth:thin-air:v8.1.3-1.20.1-Fabric")
|
||||||
|
|
||||||
// Development QOL
|
// Development QOL
|
||||||
modLocalRuntime("maven.modrinth:lazydfu:${lazydfu_version}")
|
modLocalRuntime("maven.modrinth:lazydfu:${lazydfu_version}")
|
||||||
|
@ -5,7 +5,7 @@ org.gradle.jvmargs=-Xmx1G
|
|||||||
# check these on https://modmuss50.me/fabric.html
|
# check these on https://modmuss50.me/fabric.html
|
||||||
minecraft_version=1.20.1
|
minecraft_version=1.20.1
|
||||||
yarn_mappings=1.20.1+build.10
|
yarn_mappings=1.20.1+build.10
|
||||||
fabric_loader_version=0.14.24
|
fabric_loader_version=0.14.21
|
||||||
# check this on https://modmuss50.me/fabric.html
|
# check this on https://modmuss50.me/fabric.html
|
||||||
fabric_api_version=0.90.0+1.20.1
|
fabric_api_version=0.90.0+1.20.1
|
||||||
|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
package ru.bitheaven.createairfabric;
|
package ru.bitheaven.createairfabric;
|
||||||
|
|
||||||
import com.simibubi.create.Create;
|
import com.simibubi.create.Create;
|
||||||
import fuzs.thinair.helper.AirHelper;
|
import fuzs.thinair.helper.AirQualityHelperImpl;
|
||||||
import fuzs.thinair.helper.AirQualityLevel;
|
|
||||||
import io.github.fabricators_of_create.porting_lib.util.EnvExecutor;
|
import io.github.fabricators_of_create.porting_lib.util.EnvExecutor;
|
||||||
import net.fabricmc.api.ModInitializer;
|
import net.fabricmc.api.ModInitializer;
|
||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
@ -25,8 +24,8 @@ public class CreateAirFabric implements ModInitializer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean airQualityActivatesHelmet(LivingEntity entity) {
|
public static boolean airQualityActivatesHelmet(LivingEntity entity) {
|
||||||
final AirQualityLevel air = AirHelper.getO2LevelFromLocation(entity.getEyePosition(), entity.level()).getFirst();
|
AirQualityHelperImpl air = new AirQualityHelperImpl();
|
||||||
return air == AirQualityLevel.RED || air == AirQualityLevel.YELLOW;
|
return !air.getAirQualityAtLocation(entity.level(), entity.getEyePosition()).canBreathe;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ResourceLocation id(String path) {
|
public static ResourceLocation id(String path) {
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 60 KiB |
@ -26,6 +26,7 @@
|
|||||||
"fabricloader": ">=${fabric_loader_version}",
|
"fabricloader": ">=${fabric_loader_version}",
|
||||||
"fabric": "*",
|
"fabric": "*",
|
||||||
"minecraft": "${minecraft_version}",
|
"minecraft": "${minecraft_version}",
|
||||||
"create": "${create_version}"
|
"create": "${create_version}",
|
||||||
|
"thinair": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user