Skip to content

Commit

Permalink
Begin GroovyScript integration
Browse files Browse the repository at this point in the history
  • Loading branch information
ACGaming committed Dec 25, 2024
1 parent 01ef83e commit 5cff82e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ dependencies {
}
if (project.use_mixins.toBoolean()) {
implementation 'com.cleanroommc:configanytime:3.0'
implementation 'zone.rong:mixinbooter:9.1'
implementation 'zone.rong:mixinbooter:10.2'
}

// Had Enough Items
Expand All @@ -127,9 +127,12 @@ dependencies {
// CraftTweaker
implementation 'curse.maven:crafttweaker-239197:5486112'

// GroovyScript
implementation 'curse.maven:groovyscript-687577:5789691'

if (project.use_mixins.toBoolean()) {
// Change your mixin refmap name here:
String mixin = modUtils.enableMixins('zone.rong:mixinbooter:9.1', "mixins.${project.mod_id}.refmap.json")
String mixin = modUtils.enableMixins('zone.rong:mixinbooter:10.2', "mixins.${project.mod_id}.refmap.json")
api(mixin) {
transitive = false
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/mod/emt/harkenscythe/HarkenScythe.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class HarkenScythe
{
public static final String MOD_ID = Tags.MOD_ID;
public static final String MOD_PREFIX = MOD_ID + ":";
public static final String NAME = "Harken Scythe Resharpened";
public static final String NAME = "Harken Scythe: Resharpened";
public static final String VERSION = Tags.VERSION;
public static final String ACCEPTED_VERSIONS = "[1.12.2]";
public static final String DEPENDENCIES = "after:thaumcraft;after:tconstruct;after:conarm";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package mod.emt.harkenscythe.compat.groovyscript;

import com.cleanroommc.groovyscript.GroovyScript;
import com.cleanroommc.groovyscript.api.GroovyPlugin;
import com.cleanroommc.groovyscript.compat.mods.GroovyContainer;
import groovyjarjarantlr4.v4.runtime.misc.NotNull;
import mod.emt.harkenscythe.HarkenScythe;

public class HSGroovyScriptPlugin implements GroovyPlugin
{
@Override
public @NotNull String getModId()
{
return HarkenScythe.MOD_ID;
}

@Override
public @NotNull String getContainerName()
{
return HarkenScythe.NAME;
}

@Override
public void onCompatLoaded(GroovyContainer<?> container)
{
GroovyScript.LOGGER.info(HarkenScythe.NAME + " container loaded");
}
}

0 comments on commit 5cff82e

Please sign in to comment.