was fixing something
This commit is contained in:
@@ -87,10 +87,10 @@ dependencies {
|
|||||||
// <MINECRAFT-VERSION> and <JEI-VERSION> can be found on CurseForge, check the file name of the version you want.
|
// <MINECRAFT-VERSION> and <JEI-VERSION> can be found on CurseForge, check the file name of the version you want.
|
||||||
//
|
//
|
||||||
// compile against the JEI API
|
// compile against the JEI API
|
||||||
deobfCompile "mezz.jei:jei_${mc_version}:${jei_version}:api"
|
deobfCompile "nmd.primal.core:PrimalCore:${mc_version}-${primal_version}:dev"
|
||||||
//runtime "mezz.jei:jei_${mc_version}:${jei_version}"
|
//runtime "mezz.jei:jei_${mc_version}:${jei_version}"
|
||||||
|
|
||||||
deobfCompile "nmd.primal.core:PrimalCore:${primal_version}:dev"
|
deobfCompile "nmd.primal.core:PrimalCore:${mc_version}-${primal_version}:dev"
|
||||||
//runtime "nmd.primal.core:PrimalCore:${primal_version}"
|
//runtime "nmd.primal.core:PrimalCore:${primal_version}"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,18 @@ public class TileBloomery extends TileBaseSlot implements ITickable {
|
|||||||
this.setHeat(100);
|
this.setHeat(100);
|
||||||
}
|
}
|
||||||
this.iteration++;
|
this.iteration++;
|
||||||
|
if (this.iteration == 100) {
|
||||||
|
RecipeHelper.fuelManger(world, this, this.getSlotStack(0));
|
||||||
|
if(CommonUtils.randomCheck(1000)) {
|
||||||
|
makeSmoke(world, pos);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (this.iteration == 200) {
|
||||||
|
RecipeHelper.fuelManger(world, this, this.getSlotStack(0));
|
||||||
|
if(CommonUtils.randomCheck(1000)) {
|
||||||
|
makeSmoke(world, pos);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (this.iteration == 300) {
|
if (this.iteration == 300) {
|
||||||
this.iteration = 0;
|
this.iteration = 0;
|
||||||
//IBlockState state = world.getBlockState(this.pos);
|
//IBlockState state = world.getBlockState(this.pos);
|
||||||
@@ -51,9 +63,11 @@ public class TileBloomery extends TileBaseSlot implements ITickable {
|
|||||||
world.notifyBlockUpdate(pos, state, state, 2);
|
world.notifyBlockUpdate(pos, state, state, 2);
|
||||||
}
|
}
|
||||||
this.heatManager(this.getHeat(), state, this.getSlotStack(0), world, pos);
|
this.heatManager(this.getHeat(), state, this.getSlotStack(0), world, pos);
|
||||||
|
RecipeHelper.fuelManger(world, this, this.getSlotStack(0));
|
||||||
|
if(CommonUtils.randomCheck(1000)) {
|
||||||
|
makeSmoke(world, pos);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
slotZeroManager(world);
|
|
||||||
slotOneManager();
|
slotOneManager();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ import nmd.primal.core.common.helper.NBTHelper;
|
|||||||
import nmd.primal.core.common.helper.RecipeHelper;
|
import nmd.primal.core.common.helper.RecipeHelper;
|
||||||
import nmd.primal.forgecraft.blocks.Forge;
|
import nmd.primal.forgecraft.blocks.Forge;
|
||||||
import nmd.primal.forgecraft.crafting.ForgeCrafting;
|
import nmd.primal.forgecraft.crafting.ForgeCrafting;
|
||||||
|
import nmd.primal.forgecraft.items.parts.ToolPart;
|
||||||
import nmd.primal.forgecraft.util.ToolNBT;
|
import nmd.primal.forgecraft.util.ToolNBT;
|
||||||
|
|
||||||
import static nmd.primal.core.common.helper.FireHelper.makeSmoke;
|
import static nmd.primal.core.common.helper.FireHelper.makeSmoke;
|
||||||
@@ -46,6 +47,18 @@ public class TileForge extends TileBaseSlot implements ITickable, ToolNBT{
|
|||||||
IBlockState aboveState = world.getBlockState(abovePos);
|
IBlockState aboveState = world.getBlockState(abovePos);
|
||||||
Block block = world.getBlockState(abovePos).getBlock();
|
Block block = world.getBlockState(abovePos).getBlock();
|
||||||
if (world.getBlockState(this.getPos()).getValue(PrimalStates.ACTIVE)) {
|
if (world.getBlockState(this.getPos()).getValue(PrimalStates.ACTIVE)) {
|
||||||
|
if (this.iteration == 100) {
|
||||||
|
RecipeHelper.fuelManger(world, this, this.getSlotStack(0));
|
||||||
|
if(CommonUtils.randomCheck(1000)) {
|
||||||
|
makeSmoke(world, pos);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (this.iteration == 200) {
|
||||||
|
RecipeHelper.fuelManger(world, this, this.getSlotStack(0));
|
||||||
|
if(CommonUtils.randomCheck(1000)) {
|
||||||
|
makeSmoke(world, pos);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (this.iteration == 300) {
|
if (this.iteration == 300) {
|
||||||
this.iteration = 0;
|
this.iteration = 0;
|
||||||
|
|
||||||
@@ -57,9 +70,13 @@ public class TileForge extends TileBaseSlot implements ITickable, ToolNBT{
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.heatManager(this.getHeat(), state, this.getSlotStack(0), world, pos);
|
this.heatManager(this.getHeat(), state, this.getSlotStack(0), world, pos);
|
||||||
|
RecipeHelper.fuelManger(world, this, this.getSlotStack(0));
|
||||||
|
if(CommonUtils.randomCheck(1000)) {
|
||||||
|
makeSmoke(world, pos);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
slotZeroManager(world);
|
//slotZeroManager(world);
|
||||||
craftingManager();
|
craftingManager();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -165,7 +182,10 @@ public class TileForge extends TileBaseSlot implements ITickable, ToolNBT{
|
|||||||
ItemStack stack = this.getSlotStack(i);
|
ItemStack stack = this.getSlotStack(i);
|
||||||
ForgeCrafting recipe = ForgeCrafting.getRecipe(stack.getItem());
|
ForgeCrafting recipe = ForgeCrafting.getRecipe(stack.getItem());
|
||||||
if (recipe != null) {
|
if (recipe != null) {
|
||||||
|
NBTTagCompound stackCompound = null;
|
||||||
|
if(stack.hasTagCompound()){
|
||||||
|
stackCompound=stack.getTagCompound().copy();
|
||||||
|
}
|
||||||
if(i == 2){
|
if(i == 2){
|
||||||
if (this.getHeat() >= recipe.getHeatThreshold()) {
|
if (this.getHeat() >= recipe.getHeatThreshold()) {
|
||||||
cookCounter2++;
|
cookCounter2++;
|
||||||
@@ -174,11 +194,14 @@ public class TileForge extends TileBaseSlot implements ITickable, ToolNBT{
|
|||||||
cookCounter2--;
|
cookCounter2--;
|
||||||
}
|
}
|
||||||
if (cookCounter2 >= recipe.getIdealTime()) {
|
if (cookCounter2 >= recipe.getIdealTime()) {
|
||||||
|
ItemStack outputStack = recipe.getOutput();
|
||||||
|
outputStack.setItemDamage(stack.getItemDamage());
|
||||||
|
if(outputStack.getItem() instanceof ToolPart) {
|
||||||
|
outputStack.setTagCompound(stackCompound);
|
||||||
|
|
||||||
if (NBTHelper.hasTag(stack, "tags")) {
|
outputStack.getSubCompound("tags").setBoolean("hot", true);
|
||||||
NBTHelper.setBoolean(stack, "hot", true);
|
}
|
||||||
} else this.setSlotStack(i, recipe.getOutput());
|
this.setSlotStack(i, outputStack);
|
||||||
|
|
||||||
cookCounter2 = 0;
|
cookCounter2 = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user