Skip to content

Commit

Permalink
Merge pull request #34 from RenardFute/mc1.18.2/forge
Browse files Browse the repository at this point in the history
Add 1.18.2 support
  • Loading branch information
a0a7 authored Nov 17, 2024
2 parents 96e9a14 + 6c360b5 commit 6920050
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 18 deletions.
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ minecraft {
//
// Use non-default mappings at your own risk. They may not always work.
// Simply re-run your setup task after changing the mappings to update your workspace.
mappings channel: 'parchment', version: '2022.08.14-1.19.2'
mappings channel: 'parchment', version: '2022.11.06-1.18.2'
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') // Currently, this location cannot be changed from the default.

// Default run configurations.
Expand Down Expand Up @@ -109,7 +109,6 @@ minecraft {
sourceSets.main.resources { srcDir 'src/generated/resources' }

repositories {
repositories {
maven {
name = 'tterrag maven'
url = 'https://maven.tterrag.com/'
Expand All @@ -119,20 +118,21 @@ repositories {
name = "Jared's maven"
url = "https://maven.blamejared.com/"
}
}
mavenCentral()
maven { url = "https://maven.blamejared.com/" } // JEI, Hex Casting
maven { url = "https://maven.parchmentmc.org" } // Parchment mappings
}


dependencies {
minecraft 'net.minecraftforge:forge:1.19.2-43.2.3'
minecraft 'net.minecraftforge:forge:1.18.2-40.2.10'

implementation fg.deobf("com.simibubi.create:create-${create_minecraft_version}:${create_version}:slim") { transitive = false }
implementation fg.deobf("com.jozufozu.flywheel:flywheel-forge-${flywheel_minecraft_version}:${flywheel_version}")
implementation fg.deobf("com.tterrag.registrate:Registrate:${registrate_version}")
compileOnly(fg.deobf("mezz.jei:jei-${mc_version}-common-api:${jei_version}"))
compileOnly(fg.deobf("mezz.jei:jei-${mc_version}-forge-api:${jei_version}"))
compileOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}:api")
// at runtime, use the full JEI jar for Forge
runtimeOnly(fg.deobf("mezz.jei:jei-${mc_version}-forge:${jei_version}"))
runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}")
}

// Example for how to get properties into the manifest for reading at runtime.
Expand Down
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
create_minecraft_version = 1.19.2
flywheel_minecraft_version = 1.19.2
create_version = 0.5.1.c-36
flywheel_version = 0.6.9-18
registrate_version = MC1.19-1.1.5
mc_version=1.19.2
jei_version=11.2.0.254
create_minecraft_version = 1.18.2
flywheel_minecraft_version = 1.18.2
create_version = 0.5.1.c-297
flywheel_version = 0.6.9-101
registrate_version = MC1.18.2-1.1.3
mc_version=1.18.2
jei_version=9.7.0.209
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@ private void commonSetup(final FMLCommonSetupEvent event) {
public static class ClientModEvents {
@SubscribeEvent
public static void onClientSetup(FMLClientSetupEvent event) {
ItemBlockRenderTypes.setRenderLayer(ModBlocks.ANDESITE_BOGIE_STEPS.get(), RenderType.cutout());
ItemBlockRenderTypes.setRenderLayer(ModBlocks.ANDESITE_DOOR_STEP.get(), RenderType.cutout());
ItemBlockRenderTypes.setRenderLayer(ModBlocks.ANDESITE_GRAB_RAILS.get(), RenderType.cutout());

ItemBlockRenderTypes.setRenderLayer(ModBlocks.BRASS_BOGIE_STEPS.get(), RenderType.cutout());
ItemBlockRenderTypes.setRenderLayer(ModBlocks.BRASS_DOOR_STEP.get(), RenderType.cutout());
ItemBlockRenderTypes.setRenderLayer(ModBlocks.BRASS_GRAB_RAILS.get(), RenderType.cutout());

ItemBlockRenderTypes.setRenderLayer(ModBlocks.COPPER_BOGIE_STEPS.get(), RenderType.cutout());
ItemBlockRenderTypes.setRenderLayer(ModBlocks.COPPER_DOOR_STEP.get(), RenderType.cutout());
ItemBlockRenderTypes.setRenderLayer(ModBlocks.COPPER_GRAB_RAILS.get(), RenderType.cutout());

ItemBlockRenderTypes.setRenderLayer(ModBlocks.HEADLIGHT.get(), RenderType.cutout());
ItemBlockRenderTypes.setRenderLayer(ModBlocks.ORNATE_IRON_TRAPDOOR.get(), RenderType.cutout());
ItemBlockRenderTypes.setRenderLayer(ModBlocks.METRO_WINDOW.get(), RenderType.cutout());

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import com.tterrag.registrate.util.entry.BlockEntry;
import com.tterrag.registrate.util.nullness.NonNullUnaryOperator;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.data.CachedOutput;
import net.minecraft.data.loot.BlockLoot;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.tags.ItemTags;
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
modLoader="javafml" #mandatory
loaderVersion="[43,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
loaderVersion="[40,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
license="MIT"
# A URL to refer people to when problems occur with this mod
issueTrackerURL="https://github.com/alexandsr/BellsAndWhistlesMod/issues"
Expand All @@ -24,7 +24,7 @@ description='''
# Does this dependency have to exist - if not, ordering below must be specified
mandatory=true #mandatory
# The version range of the dependency
versionRange="[43,)" #mandatory
versionRange="[40.2.10,)" #mandatory
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
ordering="NONE"
# Side this dependency is applied on - BOTH, CLIENT or SERVER
Expand All @@ -34,7 +34,7 @@ description='''
modId="minecraft"
mandatory=true
# This version range declares a minimum of the current minecraft version up to but not including the next major version
versionRange="[1.19.2,1.20)"
versionRange="[1.18.2,)"
ordering="NONE"
side="BOTH"
[[dependencies.bellsandwhistles]]
Expand Down

0 comments on commit 6920050

Please sign in to comment.