Add LibCD Support (#1851)
* First ugly commit for LibCD support * fix all the ugly hacks, add rolling machine + fluid gen recipes * be a bit more lenient with fluid generator names * add test script, fix a few bugs * get rid of ShapedRecipeSerializer stuff that's no longer needed * Add a warning to the sample script
This commit is contained in:
parent
bfce163c99
commit
989e4601af
12 changed files with 801 additions and 0 deletions
|
@ -26,6 +26,7 @@ package techreborn;
|
|||
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder;
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
import net.minecraft.block.DispenserBlock;
|
||||
import net.minecraft.item.ItemGroup;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
@ -39,6 +40,7 @@ import reborncore.common.util.Torus;
|
|||
import reborncore.common.world.DataAttachment;
|
||||
import techreborn.blockentity.storage.idsu.IDSUManager;
|
||||
import techreborn.client.GuiHandler;
|
||||
import techreborn.compat.libcd.TRTweaker;
|
||||
import techreborn.config.TechRebornConfig;
|
||||
import techreborn.events.ModRegistry;
|
||||
import techreborn.init.*;
|
||||
|
@ -89,6 +91,10 @@ public class TechReborn implements ModInitializer {
|
|||
|
||||
DataAttachment.REGISTRY.register(IDSUManager.class, IDSUManager::new);
|
||||
|
||||
if (FabricLoader.getInstance().isModLoaded("libcd")) {
|
||||
TRTweaker.init();
|
||||
}
|
||||
|
||||
LOGGER.info("TechReborn setup done!");
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue