Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Create compat #82

Merged
merged 2 commits into from
Mar 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ repositories {
includeGroup("maven.modrinth")
}
}
maven {
// location of ponder, library used by create
name = "Create Mod Maven"
url = "https://maven.createmod.net"
}
}

dependencies {
Expand All @@ -106,11 +111,11 @@ dependencies {
}

// Compatibilities
runtimeOnly(fg.deobf("maven.modrinth:create:${create_version}"))
runtimeOnly(fg.deobf("com.simibubi.create:create-1.20.1:${create_version}"))
implementation(fg.deobf("maven.modrinth:farmers-delight:${farmersdelight_version}"))
implementation(fg.deobf("maven.modrinth:nethers-delight:${nethersdelight_version}"))
implementation(fg.deobf("maven.modrinth:shield-expansion:${shieldexpansion_version}"))
implementation(fg.deobf("maven.modrinth:create:${create_version}"))
implementation(fg.deobf("com.simibubi.create:create-1.20.1:${create_version}"))
implementation(fg.deobf("maven.modrinth:supplementaries:${supplementaries_version}"))

// For dev testing
Expand All @@ -127,6 +132,9 @@ dependencies {
// at runtime, use the full JEI jar for Forge
runtimeOnly(fg.deobf("mezz.jei:jei-${minecraft_version}-forge:${jei_version}"))

// library used by create
compileOnly(fg.deobf("net.createmod.ponder:Ponder-Forge-1.20.1:${ponder_version}"))

runtimeOnly(fg.deobf("maven.modrinth:scannable:${scannable_version}"))
runtimeOnly(fg.deobf("maven.modrinth:architectury-api:${architectury_version}"))
///
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jei_version=15.0.0.12
farmersdelight_version=1.20.1-1.2.4
nethersdelight_version=MTDQhZd2
shieldexpansion_version=8mpKmudC
create_version=ZZW2y7nG
create_version=6.0.1-25:all
ponder_version=1.0.43
supplementaries_version=eMF95dNK
scannable_version=2FlwUOgm
architectury_version=tBWqtdBO
Expand Down
1 change: 1 addition & 0 deletions src/main/java/galena/oreganized/Oreganized.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ public Oreganized() {
OPaintingVariants.PAINTING_VARIANTS,
OAttributes.ATTRIBUTES,
LOOT_MODIFIERS,
CreateCompat.ARM_INTERACTION_POINT_TYPES
};

for (DeferredRegister<?> register : registers) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
package galena.oreganized.compat.create;

import com.simibubi.create.api.registry.CreateBuiltInRegistries;
import com.simibubi.create.content.kinetics.mechanicalArm.ArmInteractionPointType;
import galena.oreganized.Oreganized;
import net.minecraft.core.Registry;
import net.minecraftforge.registries.DeferredRegister;

public class CreateCompat {

public static final DeferredRegister<ArmInteractionPointType> ARM_INTERACTION_POINT_TYPES = DeferredRegister.create(CreateBuiltInRegistries.ARM_INTERACTION_POINT_TYPE.key(), Oreganized.MOD_ID);

public static void register() {
ArmInteractionPointType.register(new GargoyleArmPointType());
ARM_INTERACTION_POINT_TYPES.register("gargoyle", GargoyleArmPointType::new);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
public class GargoyleArmPointType extends ArmInteractionPointType {

public GargoyleArmPointType() {
super(Oreganized.modLoc("gargoyle"));
super();
}

@Override
Expand Down
Loading