Skip to content
Draft
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
4 changes: 3 additions & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@
dependencies {
// Published dependencies
api("codechicken:codechickenlib:3.2.3.358") // CCL 3.2.3.358
api("com.cleanroommc:modularui:2.5.0-rc1") { transitive = false } // MUI 2.5.0-rc1
api("com.cleanroommc:groovyscript:1.1.2") { transitive = false } // GrS 1.1.2
api("CraftTweaker2:CraftTweaker2-MC1120-Main:1.12-4.1.20.700") // CrT 4.1.20.700
api("appeng:ae2-uel:v0.56.4") { transitive = false } // AE2 0.56.4(IAEWrench access error)
api rfg.deobf("curse.maven:ctm-267602:2915363") // CTM 1.0.2.31

// Hard Dependencies
devOnlyNonPublishable(rfg.deobf("curse.maven:gregtech-ce-unofficial-557242:5519022")) // CEu 2.8.10
//devOnlyNonPublishable(rfg.deobf("curse.maven:gregtech-ce-unofficial-557242:5519022")) // CEu 2.8.10
devOnlyNonPublishable(rfg.deobf(project.files("libs/gregtech-1.12.2-2.9.0-beta-dev.jar"))) // CEu pr 2.9.0

// Debug Thaumcraft
if (project.debug_all.toBoolean() || project.debug_thaumcraft.toBoolean()) {
Expand Down
Binary file added libs/gregtech-1.12.2-2.9.0-beta-dev.jar
Binary file not shown.
Binary file added libs/gregtech-1.12.2-2.9.0-beta-sources.jar
Binary file not shown.
10 changes: 9 additions & 1 deletion src/main/java/com/github/gtexpert/gtwp/GTWPMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

import gregtech.GTInternalTags;
import gregtech.api.GregTechAPI;
import gregtech.api.metatileentity.registry.MTEManager;

import com.github.gtexpert.gtwp.api.ModValues;
import com.github.gtexpert.gtwp.api.util.ModLog;
Expand All @@ -32,7 +34,8 @@
version = Tags.VERSION,
updateJSON = "https://forge.curseupdate.com/1093753/gtwoodprocessing",
acceptedMinecraftVersions = "[1.12.2,1.13)",
dependencies = GTInternalTags.DEP_VERSION_STRING + "after:" + Mods.Names.GREGTECH_FOOD_OPTION + ";" +
dependencies = GTInternalTags.DEP_VERSION_STRING + "required-after:" + Mods.Names.MODULRAUI + ";" +
"after:" + Mods.Names.GREGTECH_FOOD_OPTION + ";" +
"after:" + Mods.Names.THAUMCRAFT + ";" + "after:" + Mods.Names.FORESTRY + ";" +
"after:" + Mods.Names.EXTRA_TREES + ";" + "after:" + Mods.Names.ADVANCED_ROCKETRY + ";" +
"after:" + Mods.Names.PROJECT_VIBRANT_JOURNEYS + ";" + "after:" + Mods.Names.PLANTS + ";" +
Expand Down Expand Up @@ -158,6 +161,11 @@ public static <T extends Block> ItemBlock createItemBlock(T block, Function<T, I
return itemBlock;
}

@SubscribeEvent
public static void registerMTERegistry(MTEManager.MTERegistryEvent event) {
GregTechAPI.mteManager.createRegistry(ModValues.MODID);
}

@SubscribeEvent
public static void syncConfigValues(ConfigChangedEvent.OnConfigChangedEvent event) {
if (event.getModID().equals(ModValues.MODID)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import gregtech.api.gui.GuiTextures;
import gregtech.api.gui.widgets.ProgressWidget;
import gregtech.api.recipes.RecipeMap;
import gregtech.api.recipes.RecipeMapBuilder;
import gregtech.api.recipes.builders.SimpleRecipeBuilder;
import gregtech.core.sound.GTSoundEvents;

Expand All @@ -15,11 +16,16 @@
public class GTWPRecipeMaps {

@ZenProperty
public static final RecipeMap<SimpleRecipeBuilder> SAWMILL_RECIPES = new RecipeMap<>(
"sawmill", 2, 2, 1, 0, new SimpleRecipeBuilder(), false)
.setSlotOverlay(false, false, GuiTextures.SAWBLADE_OVERLAY)
.setSlotOverlay(true, false, false, GuiTextures.CUTTER_OVERLAY)
.setSlotOverlay(true, false, true, GuiTextures.DUST_OVERLAY)
.setProgressBar(GuiTextures.PROGRESS_BAR_SLICE, ProgressWidget.MoveType.HORIZONTAL)
.setSound(GTSoundEvents.CHAINSAW_TOOL);
public static final RecipeMap<SimpleRecipeBuilder> SAWMILL_RECIPES = new RecipeMapBuilder<>(
"sawmill", new SimpleRecipeBuilder())
.itemInputs(2)
.itemOutputs(2)
.fluidInputs(1)
.fluidOutputs(0)
.itemSlotOverlay(GuiTextures.SAWBLADE_OVERLAY, false, false)
.itemSlotOverlay(GuiTextures.CUTTER_OVERLAY, true, false)
.itemSlotOverlay(GuiTextures.DUST_OVERLAY, true, true)
.progressBar(GuiTextures.PROGRESS_BAR_SLICE, ProgressWidget.MoveType.HORIZONTAL)
.sound(GTSoundEvents.CHAINSAW_TOOL)
.build();
}
17 changes: 17 additions & 0 deletions src/main/resources/assets/gtwp/models/item/mte.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"forge_marker": 1,
"defaults": {
"model": "minecraft:cube_all",
"textures": {
"all": "blocks/iron_block"
}
},
"variants": {
"normal": [
{}
],
"inventory": [
{}
]
}
}
1 change: 1 addition & 0 deletions src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"credits": "",
"dependencies": [
"chickenchunks",
"modularui",
"gregtech"
]
}]