Skip to content

Commit

Permalink
Merge branch 'master' into collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
FourIsTheNumber authored Sep 25, 2024
2 parents 4c1a447 + 00b6c43 commit 738587f
Show file tree
Hide file tree
Showing 36 changed files with 348 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ dependencies {

compileOnlyApi('com.github.GTNewHorizons:ThaumicTinkerer:2.10.1:dev')
compileOnlyApi("com.github.GTNewHorizons:Mobs-Info:0.4.6-GTNH:dev")
compileOnlyApi("com.github.GTNewHorizons:Navigator:1.0.12:dev")
compileOnlyApi("com.github.GTNewHorizons:Navigator:1.0.13:dev")
implementation('com.github.GTNewHorizons:Baubles:1.0.4:dev') {transitive=false}
// Required to prevent an older bauble api from Extra Utilities from loading first in the javac classpath
compileOnly('com.github.GTNewHorizons:Baubles:1.0.4:dev') {transitive=false}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/bartworks/system/material/WerkstoffLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,7 @@ public static void setUp() {
new Werkstoff.GenerationFeatures().onlyDust()
.addMolten()
.addMetalItems()
.addCraftingMetalWorkingItems()
.enforceUnification(),
64,
TextureSet.SET_METALLIC
Expand Down Expand Up @@ -1236,6 +1237,7 @@ public static void setUp() {
.onlyDust()
.addMetalItems()
.addMolten()
.addCraftingMetalWorkingItems()
.enforceUnification(),
78,
TextureSet.SET_METALLIC);
Expand Down
18 changes: 18 additions & 0 deletions src/main/java/gregtech/api/recipe/RecipeMaps.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.util.Optional;

import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;

Expand Down Expand Up @@ -85,6 +86,7 @@
import gregtech.nei.formatter.FusionSpecialValueFormatter;
import gregtech.nei.formatter.HeatingCoilSpecialValueFormatter;
import gregtech.nei.formatter.SimpleSpecialValueFormatter;
import gtPlusPlus.core.block.ModBlocks;
import gtPlusPlus.core.item.ModItems;
import mods.railcraft.common.blocks.aesthetics.cube.EnumCube;
import mods.railcraft.common.items.RailcraftToolItems;
Expand Down Expand Up @@ -681,6 +683,22 @@ else if (Materials.PhasedIron.getMolten(1)
.setOutputs(aOutput1, aOutput2, Materials.Ash.getDust(aCoalAmount / 2))
.setDuration(aDuration * 20 / 3);
}
ItemStack cactusCokeBlock = new ItemStack(
Item.getItemFromBlock(ModBlocks.blockCactusCoke),
aCoalAmount * 2,
0);
ItemStack sugarCokeBlock = new ItemStack(
Item.getItemFromBlock(ModBlocks.blockSugarCoke),
aCoalAmount * 2,
0);
coll.derive()
.setInputs(aInput1, aInput2, cactusCokeBlock)
.setOutputs(aOutput1, aOutput2, Materials.Ash.getDust(aCoalAmount * 2))
.setDuration(aDuration * 20 / 3);
coll.derive()
.setInputs(aInput1, aInput2, sugarCokeBlock)
.setOutputs(aOutput1, aOutput2, Materials.Ash.getDust(aCoalAmount * 2))
.setDuration(aDuration * 20 / 3);
}
return coll.getAll();
})
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/gregtech/loaders/misc/GTBeeDefinition.java
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,7 @@ public void accept(GTBeeDefinition dis) {
JUPITER(GTBranchDefinition.PLANET, "Jupiter", false, new Color(0x734B2E), new Color(0xD0CBC4), beeSpecies -> {
beeSpecies.addProduct(GTBees.combs.getStackForType(CombType.JUPITER), 0.35f);
beeSpecies.addSpecialty(GTModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CallistoStoneDust", 1, 0), 0.05f);
beeSpecies.addSpecialty(GTModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CallistoIceDust", 1, 0), 0.05f);
beeSpecies.addSpecialty(Materials.CallistoIce.getDust(1), 0.05f);
beeSpecies.addSpecialty(GTModHandler.getModItem(NewHorizonsCoreMod.ID, "item.IoStoneDust", 1, 0), 0.05f);
beeSpecies.addSpecialty(GTModHandler.getModItem(NewHorizonsCoreMod.ID, "item.EuropaStoneDust", 1, 0), 0.05f);
beeSpecies.addSpecialty(GTModHandler.getModItem(NewHorizonsCoreMod.ID, "item.EuropaIceDust", 1, 0), 0.05f);
Expand Down Expand Up @@ -1991,7 +1991,7 @@ public void accept(GTBeeDefinition dis) {
CALLISTO(GTBranchDefinition.PLANET, "Callisto", true, new Color(0x0f333d), new Color(0x0d84a5), beeSpecies -> {
beeSpecies.addProduct(GTBees.combs.getStackForType(CombType.JUPITER), 0.25f);
beeSpecies.addSpecialty(GTModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CallistoStoneDust", 1, 0), 0.10f);
beeSpecies.addSpecialty(GTModHandler.getModItem(NewHorizonsCoreMod.ID, "item.CallistoIceDust", 1, 0), 0.10f);
beeSpecies.addSpecialty(Materials.CallistoIce.getDust(1), 0.10f);
beeSpecies.setHumidity(DAMP);
beeSpecies.setTemperature(ICY);
beeSpecies.setNocturnal();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDic
else if (aMaterial != Materials.Clay && aMaterial != Materials.Basalt) {

GTValues.RA.stdBuilder()
.itemInputs(GTUtility.copyAmount(1, aStack))
.itemInputs(GTOreDictUnificator.get(OrePrefixes.block, aMaterial, 1))
.itemOutputs(GTOreDictUnificator.get(OrePrefixes.plate, aMaterial, 9L))
.fluidInputs(
Materials.Water.getFluid(
Expand All @@ -93,7 +93,7 @@ else if (aMaterial != Materials.Clay && aMaterial != Materials.Basalt) {
.addTo(cutterRecipes);

GTValues.RA.stdBuilder()
.itemInputs(GTUtility.copyAmount(1, aStack))
.itemInputs(GTOreDictUnificator.get(OrePrefixes.block, aMaterial, 1))
.itemOutputs(GTOreDictUnificator.get(OrePrefixes.plate, aMaterial, 9L))
.fluidInputs(
GTModHandler.getDistilledWater(
Expand All @@ -105,7 +105,7 @@ else if (aMaterial != Materials.Clay && aMaterial != Materials.Basalt) {
.addTo(cutterRecipes);

GTValues.RA.stdBuilder()
.itemInputs(GTUtility.copyAmount(1, aStack))
.itemInputs(GTOreDictUnificator.get(OrePrefixes.block, aMaterial, 1))
.itemOutputs(GTOreDictUnificator.get(OrePrefixes.plate, aMaterial, 9L))
.fluidInputs(
Materials.Lubricant.getFluid(
Expand Down Expand Up @@ -154,7 +154,7 @@ else if (aMaterial != Materials.Clay && aMaterial != Materials.Basalt) {

if (tStack2 != null) {
GTValues.RA.stdBuilder()
.itemInputs(aStack)
.itemInputs(GTOreDictUnificator.get(OrePrefixes.block, aMaterial, 1))
.itemOutputs(tStack2)
.duration(5 * SECONDS)
.eut(24)
Expand Down
14 changes: 14 additions & 0 deletions src/main/java/gtPlusPlus/core/block/ModBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import net.minecraftforge.fluids.Fluid;

import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.core.block.fuel.BlockCactusCharcoal;
import gtPlusPlus.core.block.fuel.BlockCactusCoke;
import gtPlusPlus.core.block.fuel.BlockSugarCharcoal;
import gtPlusPlus.core.block.fuel.BlockSugarCoke;
import gtPlusPlus.core.block.general.BlockCompressedObsidian;
import gtPlusPlus.core.block.general.BlockFluidTankInfinite;
import gtPlusPlus.core.block.general.BlockHellFire;
Expand Down Expand Up @@ -53,6 +57,11 @@ public final class ModBlocks {
public static Block blockWitherGuard;
public static Block blockCompressedObsidian;

public static Block blockCactusCharcoal;
public static Block blockCactusCoke;
public static Block blockSugarCharcoal;
public static Block blockSugarCoke;

public static Block blockCustomJukebox;

public static Block blockPooCollector;
Expand Down Expand Up @@ -82,6 +91,11 @@ public static void registerBlocks() {
blockWitherGuard = new BlockWitherProof();
blockCompressedObsidian = new BlockCompressedObsidian();

blockCactusCharcoal = new BlockCactusCharcoal();
blockCactusCoke = new BlockCactusCoke();
blockSugarCharcoal = new BlockSugarCharcoal();
blockSugarCoke = new BlockSugarCoke();

blockCircuitProgrammer = new BlockCircuitProgrammer();

blockDecayablesChest = new BlockDecayablesChest();
Expand Down
55 changes: 55 additions & 0 deletions src/main/java/gtPlusPlus/core/block/fuel/BlockCactusCharcoal.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
package gtPlusPlus.core.block.fuel;

import static gregtech.api.enums.Mods.GTPlusPlus;

import java.util.List;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;

import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import gtPlusPlus.core.item.base.itemblock.ItemBlockMeta;
import gtPlusPlus.core.util.minecraft.ItemUtils;

public class BlockCactusCharcoal extends Block {

private final IIcon[] textureArray = new IIcon[6];

public BlockCactusCharcoal() {
super(Material.rock);
this.setBlockName("blockCactusCharcoal");
this.setStepSound(soundTypeStone);
GameRegistry.registerBlock(this, ItemBlockMeta.class, "blockCactusCharcoal");
}

@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
for (int i = 0; i < textureArray.length; i++) {
this.textureArray[i] = iconRegister.registerIcon(GTPlusPlus.ID + ":fuel/blockCactusCharcoal" + i);
}
}

@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
return this.textureArray[meta];
}

@Override
public void getSubBlocks(final Item item, final CreativeTabs tab, final List<ItemStack> list) {
for (int i = 0; i < textureArray.length; i++) {
ItemStack is = new ItemStack(item, 1, i);
ItemUtils.registerFuel(is, 4000 * (int) Math.pow(9, i));
list.add(is);
}
}

}
55 changes: 55 additions & 0 deletions src/main/java/gtPlusPlus/core/block/fuel/BlockCactusCoke.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
package gtPlusPlus.core.block.fuel;

import static gregtech.api.enums.Mods.GTPlusPlus;

import java.util.List;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;

import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import gtPlusPlus.core.item.base.itemblock.ItemBlockMeta;
import gtPlusPlus.core.util.minecraft.ItemUtils;

public class BlockCactusCoke extends Block {

private final IIcon[] textureArray = new IIcon[6];

public BlockCactusCoke() {
super(Material.rock);
this.setBlockName("blockCactusCoke");
this.setStepSound(soundTypeStone);
GameRegistry.registerBlock(this, ItemBlockMeta.class, "blockCactusCoke");
}

@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
for (int i = 0; i < textureArray.length; i++) {
this.textureArray[i] = iconRegister.registerIcon(GTPlusPlus.ID + ":fuel/blockCactusCoke" + i);
}
}

@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
return this.textureArray[meta];
}

@Override
public void getSubBlocks(final Item item, final CreativeTabs tab, final List<ItemStack> list) {
for (int i = 0; i < textureArray.length; i++) {
ItemStack is = new ItemStack(item, 1, i);
ItemUtils.registerFuel(is, 8000 * (int) Math.pow(9, i));
list.add(is);
}
}

}
55 changes: 55 additions & 0 deletions src/main/java/gtPlusPlus/core/block/fuel/BlockSugarCharcoal.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
package gtPlusPlus.core.block.fuel;

import static gregtech.api.enums.Mods.GTPlusPlus;

import java.util.List;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;

import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import gtPlusPlus.core.item.base.itemblock.ItemBlockMeta;
import gtPlusPlus.core.util.minecraft.ItemUtils;

public class BlockSugarCharcoal extends Block {

private final IIcon[] textureArray = new IIcon[6];

public BlockSugarCharcoal() {
super(Material.rock);
this.setBlockName("blockSugarCharcoal");
this.setStepSound(soundTypeStone);
GameRegistry.registerBlock(this, ItemBlockMeta.class, "blockSugarCharcoal");
}

@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
for (int i = 0; i < textureArray.length; i++) {
this.textureArray[i] = iconRegister.registerIcon(GTPlusPlus.ID + ":fuel/blockSugarCharcoal" + i);
}
}

@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
return this.textureArray[meta];
}

@Override
public void getSubBlocks(final Item item, final CreativeTabs tab, final List<ItemStack> list) {
for (int i = 0; i < textureArray.length; i++) {
ItemStack is = new ItemStack(item, 1, i);
ItemUtils.registerFuel(is, 4000 * (int) Math.pow(9, i));
list.add(is);
}
}

}
55 changes: 55 additions & 0 deletions src/main/java/gtPlusPlus/core/block/fuel/BlockSugarCoke.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
package gtPlusPlus.core.block.fuel;

import static gregtech.api.enums.Mods.GTPlusPlus;

import java.util.List;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;

import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import gtPlusPlus.core.item.base.itemblock.ItemBlockMeta;
import gtPlusPlus.core.util.minecraft.ItemUtils;

public class BlockSugarCoke extends Block {

private final IIcon[] textureArray = new IIcon[6];

public BlockSugarCoke() {
super(Material.rock);
this.setBlockName("blockSugarCoke");
this.setStepSound(soundTypeStone);
GameRegistry.registerBlock(this, ItemBlockMeta.class, "blockSugarCoke");
}

@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
for (int i = 0; i < textureArray.length; i++) {
this.textureArray[i] = iconRegister.registerIcon(GTPlusPlus.ID + ":fuel/blockSugarCoke" + i);
}
}

@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
return this.textureArray[meta];
}

@Override
public void getSubBlocks(final Item item, final CreativeTabs tab, final List<ItemStack> list) {
for (int i = 0; i < textureArray.length; i++) {
ItemStack is = new ItemStack(item, 1, i);
ItemUtils.registerFuel(is, 8000 * (int) Math.pow(9, i));
list.add(is);
}
}

}
Loading

0 comments on commit 738587f

Please sign in to comment.