Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
Add Extreme Industrial Greenhouse (#111)
Browse files Browse the repository at this point in the history
* Add Extreme Industrial Greenhouse

* Add info about crops inside the machine

* Add a way to remove crops from machine

* Add crafting recipe

* Dont use full amp

* Add glass tier requirements

* Bug fix

* Account for IC2 crops with two diffrent outputs

* Add water requirement

Former-commit-id: f3293cb0d97947324bd63e7b79c945051000942d
  • Loading branch information
kuba6000 authored Apr 11, 2022
1 parent 4c687a4 commit cd9b2aa
Show file tree
Hide file tree
Showing 8 changed files with 818 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ private LoaderReference(){}
public static boolean HardcoreEnderExpension;
public static boolean betterloadingscreen;
public static boolean TGregworks;
public static boolean ProjRedIllumination;


public static void init() {
Natura = Loader.isModLoaded("Natura");
Expand Down Expand Up @@ -86,5 +88,6 @@ public static void init() {
HardcoreEnderExpension = Loader.isModLoaded("HardcoreEnderExpension");
betterloadingscreen = Loader.isModLoaded("betterloadingscreen");
TGregworks = Loader.isModLoaded("TGregworks");
ProjRedIllumination = Loader.isModLoaded("ProjRed|Illumination");
}
}
2 changes: 2 additions & 0 deletions src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
+ "after:GalacticraftMars; "
+ "after:GalacticraftCore; "
+ "after:Forestry; "
+ "after:ProjRed|Illumination; "
+ "after:RandomThings; "
+ "before:miscutils; "
)
public final class MainMod {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
package com.github.bartimaeusnek.bartworks.client.renderer;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.particle.EntityFX;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
import org.lwjgl.opengl.GL11;

@SideOnly(Side.CLIENT)
public class BW_CropVisualizer extends EntityFX {
int meta;

public BW_CropVisualizer(World world, int x, int y, int z, int meta, int age) {
super(world, (double) x, ((double) y - 0.0625d), (double) z);
this.prevPosX = this.posX;
this.prevPosY = this.posY;
this.prevPosZ = this.posZ;
this.particleMaxAge = age;
this.meta = meta;
}

@Override
public void onUpdate() {
if (this.particleAge++ >= this.particleMaxAge)
this.setDead();
}

@Override
public void renderParticle(Tessellator p_70539_1_, float p_70539_2_, float p_70539_3_, float p_70539_4_, float p_70539_5_, float p_70539_6_, float p_70539_7_) {
Tessellator tessellator = Tessellator.instance;
GL11.glDisable(GL11.GL_CULL_FACE);
GL11.glDepthMask(false);
tessellator.setColorRGBA(255, 255, 255, 255);
float f11 = (float) (this.prevPosX + (this.posX - this.prevPosX) * (double) p_70539_2_ - interpPosX);
float f12 = (float) (this.prevPosY + (this.posY - this.prevPosY) * (double) p_70539_2_ - interpPosY);
float f13 = (float) (this.prevPosZ + (this.posZ - this.prevPosZ) * (double) p_70539_2_ - interpPosZ);
RenderBlocks.getInstance().renderBlockCropsImpl(Blocks.wheat, meta, f11, f12, f13);
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glDepthMask(true);
}

@Override
public int getFXLayer() {
return 1;
}

@Override
public boolean shouldRenderInPass(int pass) {
return pass == 2;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@
import com.github.bartimaeusnek.bartworks.common.tileentities.classic.BW_TileEntity_ExperimentalFloodGate;
import com.github.bartimaeusnek.bartworks.common.tileentities.classic.BW_TileEntity_HeatedWaterPump;
import com.github.bartimaeusnek.bartworks.common.tileentities.debug.CreativeScanner;
import com.github.bartimaeusnek.bartworks.common.tileentities.multis.GT_TileEntity_CircuitAssemblyLine;
import com.github.bartimaeusnek.bartworks.common.tileentities.multis.GT_TileEntity_DEHP;
import com.github.bartimaeusnek.bartworks.common.tileentities.multis.GT_TileEntity_ElectricImplosionCompressor;
import com.github.bartimaeusnek.bartworks.common.tileentities.multis.GT_TileEntity_THTR;
import com.github.bartimaeusnek.bartworks.common.tileentities.multis.GT_TileEntity_HTGR;
import com.github.bartimaeusnek.bartworks.common.tileentities.multis.*;
import com.github.bartimaeusnek.bartworks.common.tileentities.multis.mega.GT_TileEntity_MegaBlastFurnace;
import com.github.bartimaeusnek.bartworks.common.tileentities.multis.mega.GT_TileEntity_MegaDistillTower;
import com.github.bartimaeusnek.bartworks.common.tileentities.multis.mega.GT_TileEntity_MegaVacuumFreezer;
Expand Down Expand Up @@ -151,6 +147,7 @@ public class ItemRegistry {
public static ItemStack[] voidminer = new ItemStack[3];
public static ItemStack THTR;
public static ItemStack HTGR;
public static ItemStack EIG;
public static ItemStack eic;
public static ItemStack cal;
public static ItemStack compressedHatch;
Expand Down Expand Up @@ -196,6 +193,7 @@ public static void run() {
GT_TileEntity_THTR.THTRMaterials.registeraTHR_Materials();
ItemRegistry.HTGR = new GT_TileEntity_HTGR(ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 15 + 48, "HTGR", "High Temperature Gas-cooled Reactor").getStackForm(1L);
GT_TileEntity_HTGR.HTGRMaterials.registeraTHR_Materials();
ItemRegistry.EIG = new GT_TileEntity_ExtremeIndustrialGreenhouse(ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 15 + 49, "EIG", "Extreme Industrial Greenhouse").getStackForm(1L);
GT_OreDictUnificator.add(OrePrefixes.block, Materials.BorosilicateGlass, new ItemStack(ItemRegistry.bw_glasses[0], 1, 0));
GT_OreDictUnificator.registerOre(OrePrefixes.block, Materials.NickelZincFerrite, new ItemStack(ItemRegistry.BW_BLOCKS[2]));
for (int i = 0; i < GT_Values.VN.length; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,20 @@ public static void run() {
}
);

GT_ModHandler.addCraftingRecipe(
ItemRegistry.EIG,
RecipeLoader.BITSD,
new Object[]{
"AZA",
"BRB",
"AZA",
'B', new ItemStack(GregTech_API.sBlockCasings4, 1, 1),
'R', GT_ModHandler.getModItem("EnderIO", "blockFarmStation", 1),
'A', new ItemStack(GregTech_API.sBlockMachines, 1, 11104),
'Z', "circuitUltimate"
}
);

if (LoaderReference.galacticgreg) {
GT_Values.RA.addAssemblylineRecipe(
ItemList.OreDrill4.get(1L),
Expand Down
Loading

0 comments on commit cd9b2aa

Please sign in to comment.