mirror of
https://github.com/chylex/Better-Controls.git
synced 2024-11-25 19:42:45 +01:00
Compare commits
3 Commits
2126402d28
...
8a7febb76b
Author | SHA1 | Date | |
---|---|---|---|
8a7febb76b | |||
553cc9c954 | |||
6a35ef4203 |
@ -29,7 +29,7 @@
|
||||
}],
|
||||
|
||||
"depends": {
|
||||
"fabricloader": ">=0.7.4",
|
||||
"minecraft": ">=1.17"
|
||||
"fabricloader": ">=${minimumFabricVersion}",
|
||||
"minecraft": ">=${minimumMinecraftVersion}"
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ import chylex.bettercontrols.gui.BetterControlsScreen;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.screens.Screen;
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
import net.minecraftforge.client.ConfigGuiHandler.ConfigGuiFactory;
|
||||
import net.minecraftforge.client.ConfigScreenHandler.ConfigScreenFactory;
|
||||
import net.minecraftforge.fml.DistExecutor;
|
||||
import net.minecraftforge.fml.IExtensionPoint.DisplayTest;
|
||||
import net.minecraftforge.fml.ModLoadingContext;
|
||||
@ -16,7 +16,7 @@ import net.minecraftforge.network.NetworkConstants;
|
||||
public final class BetterControlsMod {
|
||||
public BetterControlsMod() {
|
||||
BetterControlsCommon.setConfig(DistExecutor.safeCallWhenOn(Dist.CLIENT, () -> ClientLoader::loadConfig));
|
||||
ModLoadingContext.get().registerExtensionPoint(ConfigGuiFactory.class, () -> new ConfigGuiFactory(ClientLoader::createScreen));
|
||||
ModLoadingContext.get().registerExtensionPoint(ConfigScreenFactory.class, () -> new ConfigScreenFactory(ClientLoader::createScreen));
|
||||
ModLoadingContext.get().registerExtensionPoint(DisplayTest.class, () -> new DisplayTest(() -> NetworkConstants.IGNORESERVERONLY, (a, b) -> true));
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
modLoader = "javafml"
|
||||
loaderVersion = "[37,)"
|
||||
loaderVersion = "[0,)"
|
||||
|
||||
authors = "${author}"
|
||||
license = "${license}"
|
||||
@ -15,13 +15,13 @@ logoFile = "icon.png"
|
||||
[[dependencies.${id}]]
|
||||
modId = "minecraft"
|
||||
mandatory = true
|
||||
versionRange = "[1.17.1,)"
|
||||
versionRange = "[${minimumMinecraftVersion},)"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
||||
|
||||
[[dependencies.${id}]]
|
||||
modId = "forge"
|
||||
mandatory = true
|
||||
versionRange = "[37,)"
|
||||
versionRange = "[${minimumForgeVersion},)"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
||||
|
@ -14,6 +14,10 @@ val modIssuesURL: String by project
|
||||
val minecraftVersion: String by project
|
||||
val mixinVersion: String by project
|
||||
|
||||
val minimumMinecraftVersion: String by project
|
||||
val minimumForgeVersion: String by project
|
||||
val minimumFabricVersion: String by project
|
||||
|
||||
val modNameStripped = modName.replace(" ", "")
|
||||
val jarVersion = "$minecraftVersion+v$modVersion"
|
||||
|
||||
@ -110,6 +114,9 @@ subprojects {
|
||||
inputs.property("license", modLicense)
|
||||
inputs.property("sourcesURL", modSourcesURL)
|
||||
inputs.property("issuesURL", modIssuesURL)
|
||||
inputs.property("minimumMinecraftVersion", minimumMinecraftVersion)
|
||||
inputs.property("minimumForgeVersion", minimumForgeVersion)
|
||||
inputs.property("minimumFabricVersion", minimumFabricVersion)
|
||||
|
||||
from(rootProject.sourceSets.main.get().resources) {
|
||||
expand(inputs.properties)
|
||||
|
@ -3,18 +3,23 @@ modId=bettercontrols
|
||||
modName=Better Controls
|
||||
modDescription=Adds many powerful key bindings and options to control your movement.\\n\\nThe features complement vanilla mechanics without giving unfair advantages, so server use should be fine.
|
||||
modAuthor=chylex
|
||||
modVersion=1.2.3
|
||||
modVersion=1.2.3a
|
||||
modLicense=MPL-2.0
|
||||
modSourcesURL=https://github.com/chylex/Better-Controls
|
||||
modIssuesURL=https://github.com/chylex/Better-Controls/issues
|
||||
|
||||
# Dependencies
|
||||
minecraftVersion=1.19
|
||||
forgeVersion=41.0.1
|
||||
forgeVersion=41.1.0
|
||||
fabricVersion=0.14.6
|
||||
loomVersion=0.12
|
||||
mixinVersion=0.8.5
|
||||
|
||||
# Constraints
|
||||
minimumMinecraftVersion=1.19
|
||||
minimumForgeVersion=41.0.94
|
||||
minimumFabricVersion=0.7.4
|
||||
|
||||
# Gradle
|
||||
org.gradle.jvmargs=-Xmx3G
|
||||
org.gradle.daemon=false
|
||||
|
Loading…
Reference in New Issue
Block a user