change stonecutter target version to 1.21.11-neoforge since we're developing in that anyway
This commit is contained in:
@@ -8,8 +8,7 @@ the mod for that version!
|
||||
Also, try reading about how stonecutter's conditional macros work (those can be seen as the `//?` statements in the code).
|
||||
Stonecutter automatically comments and uncomments them when you switch between versions or loaders, you shouldn't do it yourself.
|
||||
|
||||
The minecraft version this mod is currently being developed on is 1.21.11 neoforge or fabric. Although the project stonecutter.gradle.kts
|
||||
is currently using 1.21.9-fabric, you can easily change it with the gradle task.
|
||||
The minecraft version this mod is currently being developed on is 1.21.11 neoforge or fabric.
|
||||
|
||||
The recommended IDE for this is IntelliJ IDEA 2026.1, and the JDK used is Eclipse Temurin 25.0.2 (from Adoptium), although
|
||||
you should be able to use any other build of OpenJDK 26.
|
||||
@@ -1,5 +1,5 @@
|
||||
//? if fabric {
|
||||
package org.neoflock.neocomputers.platforms.fabric;
|
||||
/*package org.neoflock.neocomputers.platforms.fabric;
|
||||
|
||||
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
||||
import com.terraformersmc.modmenu.api.ModMenuApi;
|
||||
@@ -10,4 +10,4 @@ public class ModMenuIntegration implements ModMenuApi {
|
||||
return ConfigScreen::createConfigScreen;
|
||||
}
|
||||
}
|
||||
//?}
|
||||
*///?}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//? if fabric {
|
||||
package org.neoflock.neocomputers.platforms.fabric;
|
||||
/*package org.neoflock.neocomputers.platforms.fabric;
|
||||
|
||||
import org.neoflock.neocomputers.ModPlatform;
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
@@ -24,4 +24,4 @@ public class NeoComputersFabric implements ModInitializer {
|
||||
}
|
||||
}
|
||||
}
|
||||
//?}
|
||||
*///?}
|
||||
@@ -1,5 +1,5 @@
|
||||
//? if neoforge {
|
||||
/*package org.neoflock.neocomputers.neocomputers.platforms.neoforge;
|
||||
package org.neoflock.neocomputers.neocomputers.platforms.neoforge;
|
||||
|
||||
import org.neoflock.neocomputers.ConfigScreen;
|
||||
import org.neoflock.neocomputers.NeoComputersInit;
|
||||
@@ -9,8 +9,8 @@ import net.neoforged.fml.ModLoadingContext;
|
||||
import net.neoforged.fml.common.Mod;
|
||||
import org.neoflock.neocomputers.NeoComputers;
|
||||
//? if <1.21 {
|
||||
/^import net.neoforged.neoforge.client.ConfigScreenHandler;
|
||||
^///?} else {
|
||||
/*import net.neoforged.neoforge.client.ConfigScreenHandler;
|
||||
*///?} else {
|
||||
import net.neoforged.neoforge.client.gui.IConfigScreenFactory;
|
||||
//?}
|
||||
@Mod("neocomputers")
|
||||
@@ -19,11 +19,11 @@ public class NeoComputersNeoForge {
|
||||
NeoComputers.INSTANCE.entrypoint(new NeoForgePlatform());
|
||||
ModLoadingContext.get().registerExtensionPoint(
|
||||
//? if <1.21 {
|
||||
/^ConfigScreenHandler.ConfigScreenFactory.class,
|
||||
/*ConfigScreenHandler.ConfigScreenFactory.class,
|
||||
() -> new ConfigScreenHandler.ConfigScreenFactory(
|
||||
((client, parent) -> ConfigScreen.createConfigScreen(parent))
|
||||
)
|
||||
^///?} else {
|
||||
*///?} else {
|
||||
IConfigScreenFactory.class,
|
||||
() -> (client, parent) -> ConfigScreen.createConfigScreen(parent)
|
||||
//?}
|
||||
@@ -41,4 +41,4 @@ public class NeoComputersNeoForge {
|
||||
}
|
||||
}
|
||||
}
|
||||
*///?}
|
||||
//?}
|
||||
@@ -5,7 +5,7 @@ plugins {
|
||||
id("com.gradleup.shadow") version "9.3.0" apply false
|
||||
id("me.modmuss50.mod-publish-plugin") version "0.8.4" apply false
|
||||
}
|
||||
stonecutter active "1.21.9-fabric" /* [SC] DO NOT EDIT */
|
||||
stonecutter active "1.21.11-neoforge" /* [SC] DO NOT EDIT */
|
||||
stonecutter.automaticPlatformConstants = true
|
||||
|
||||
// Builds every version into `build/libs/{mod.version}/{loader}`
|
||||
|
||||
Reference in New Issue
Block a user