change stonecutter target version to 1.21.11-neoforge since we're developing in that anyway

This commit is contained in:
2026-04-07 20:16:25 -03:00
parent e21ee3057a
commit 7f9abfb8ca
5 changed files with 12 additions and 13 deletions

View File

@@ -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). 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. 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 The minecraft version this mod is currently being developed on is 1.21.11 neoforge or fabric.
is currently using 1.21.9-fabric, you can easily change it with the gradle task.
The recommended IDE for this is IntelliJ IDEA 2026.1, and the JDK used is Eclipse Temurin 25.0.2 (from Adoptium), although 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. you should be able to use any other build of OpenJDK 26.

View File

@@ -1,5 +1,5 @@
//? if fabric { //? 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.ConfigScreenFactory;
import com.terraformersmc.modmenu.api.ModMenuApi; import com.terraformersmc.modmenu.api.ModMenuApi;
@@ -10,4 +10,4 @@ public class ModMenuIntegration implements ModMenuApi {
return ConfigScreen::createConfigScreen; return ConfigScreen::createConfigScreen;
} }
} }
//?} *///?}

View File

@@ -1,5 +1,5 @@
//? if fabric { //? if fabric {
package org.neoflock.neocomputers.platforms.fabric; /*package org.neoflock.neocomputers.platforms.fabric;
import org.neoflock.neocomputers.ModPlatform; import org.neoflock.neocomputers.ModPlatform;
import net.fabricmc.api.ModInitializer; import net.fabricmc.api.ModInitializer;
@@ -24,4 +24,4 @@ public class NeoComputersFabric implements ModInitializer {
} }
} }
} }
//?} *///?}

View File

@@ -1,5 +1,5 @@
//? if neoforge { //? 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.ConfigScreen;
import org.neoflock.neocomputers.NeoComputersInit; import org.neoflock.neocomputers.NeoComputersInit;
@@ -9,8 +9,8 @@ import net.neoforged.fml.ModLoadingContext;
import net.neoforged.fml.common.Mod; import net.neoforged.fml.common.Mod;
import org.neoflock.neocomputers.NeoComputers; import org.neoflock.neocomputers.NeoComputers;
//? if <1.21 { //? if <1.21 {
/^import net.neoforged.neoforge.client.ConfigScreenHandler; /*import net.neoforged.neoforge.client.ConfigScreenHandler;
^///?} else { *///?} else {
import net.neoforged.neoforge.client.gui.IConfigScreenFactory; import net.neoforged.neoforge.client.gui.IConfigScreenFactory;
//?} //?}
@Mod("neocomputers") @Mod("neocomputers")
@@ -19,11 +19,11 @@ public class NeoComputersNeoForge {
NeoComputers.INSTANCE.entrypoint(new NeoForgePlatform()); NeoComputers.INSTANCE.entrypoint(new NeoForgePlatform());
ModLoadingContext.get().registerExtensionPoint( ModLoadingContext.get().registerExtensionPoint(
//? if <1.21 { //? if <1.21 {
/^ConfigScreenHandler.ConfigScreenFactory.class, /*ConfigScreenHandler.ConfigScreenFactory.class,
() -> new ConfigScreenHandler.ConfigScreenFactory( () -> new ConfigScreenHandler.ConfigScreenFactory(
((client, parent) -> ConfigScreen.createConfigScreen(parent)) ((client, parent) -> ConfigScreen.createConfigScreen(parent))
) )
^///?} else { *///?} else {
IConfigScreenFactory.class, IConfigScreenFactory.class,
() -> (client, parent) -> ConfigScreen.createConfigScreen(parent) () -> (client, parent) -> ConfigScreen.createConfigScreen(parent)
//?} //?}
@@ -41,4 +41,4 @@ public class NeoComputersNeoForge {
} }
} }
} }
*///?} //?}

View File

@@ -5,7 +5,7 @@ plugins {
id("com.gradleup.shadow") version "9.3.0" apply false id("com.gradleup.shadow") version "9.3.0" apply false
id("me.modmuss50.mod-publish-plugin") version "0.8.4" 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 stonecutter.automaticPlatformConstants = true
// Builds every version into `build/libs/{mod.version}/{loader}` // Builds every version into `build/libs/{mod.version}/{loader}`