completely random improvements

This commit is contained in:
DrMangoTea
2023-11-16 18:00:16 +01:00
parent d4c971e4c3
commit 8452d3e167
16 changed files with 168 additions and 97 deletions

View File

@@ -83,9 +83,9 @@ public class CastingBasinBlockEntity extends TFMGMachineBlockEntity implements I
setMold();
if(tank1.isEmpty()){
//if(tank1.isEmpty()){
setCapacity();
}
//}
if(type==MoldType.NONE)
return;

View File

@@ -128,7 +128,7 @@ public class CokeOvenBlockEntity extends TFMGMachineBlockEntity implements IWren
/////
RecipeWrapper inventoryIn = new RecipeWrapper(inputInventory);
if ((lastRecipe == null || !lastRecipe.matches(inventoryIn, level))&&timer==-1) {
if (lastRecipe == null || !lastRecipe.matches(inventoryIn, level)&&timer==-1) {
Optional<CokingRecipe> recipe = TFMGRecipeTypes.COKING.find(inventoryIn, level);
if (!recipe.isPresent()) {
timer = -1;
@@ -187,14 +187,14 @@ public class CokeOvenBlockEntity extends TFMGMachineBlockEntity implements IWren
if(lastRecipe!=null
&&isController
&&timer==-1
&&inputInventory.getItem(0).getCount()>=5&&
&&inputInventory.getItem(0).getCount()>=1&&
(tank2.getPrimaryHandler().getFluidAmount()+CARBON_DIOXIDE_PRODUCTION)<=tank2.getPrimaryHandler().getCapacity()&&
(tank1.getPrimaryHandler().getFluidAmount()+lastRecipe.getFluidResults().get(0).getAmount())<=tank1.getPrimaryHandler().getCapacity(
)){
timer = lastRecipe.getProcessingDuration();
inputInventory.setItem(0,new ItemStack(inputInventory.getItem(0).getItem(),inputInventory.getItem(0).getCount()-5));
inputInventory.setItem(0,new ItemStack(inputInventory.getItem(0).getItem(),inputInventory.getItem(0).getCount()-1));
}
// if(lastRecipe != null)

View File

@@ -36,10 +36,18 @@ public class CastingCategory extends CreateRecipeCategory<CastingRecipe> {
int y = 77;
for(int i = 0;i<CastingRecipe.getOutputCount(recipe);i++) {
builder
ItemStack stack;
if (i == 1) {
stack = recipe.getBlockResult();
} else
stack = recipe.getIngotResult();
builder
.addSlot(RecipeIngredientRole.OUTPUT, 130, y)
.setBackground(getRenderedSlot(), -1, -1)
.addItemStack(recipe.getResultItem());
.addItemStack(stack);
ItemStack mold= TFMGItems.INGOT_MOLD.asStack();
@@ -63,7 +71,7 @@ public class CastingCategory extends CreateRecipeCategory<CastingRecipe> {
.addSlot(RecipeIngredientRole.INPUT, 2, 33)
.setBackground(getRenderedSlot(), -1, -1)
.addIngredients(ForgeTypes.FLUID_STACK, withImprovedVisibility(recipe.getInputFluid().getMatchingFluidStacks()))
.addTooltipCallback(addFluidTooltip(recipe.getInputFluid().getRequiredAmount()));
.addTooltipCallback(addFluidTooltip(111));
}

View File

@@ -2,20 +2,20 @@
"type": "createindustry:coking",
"ingredients": [
{
"count": 5,
"count": 1,
"item": "minecraft:coal"
}
],
"processingTime": 1000,
"results": [
{
"count": 5,
"count": 1,
"item": "createindustry:coal_coke"
}
,
{
"fluid": "createindustry:creosote",
"amount": 4
"amount": 1
}
]

View File

@@ -8,10 +8,6 @@
"results": [
{
"item": "minecraft:coal"
},
{
"item": "minecraft:coal",
"chance": 0.5
}
],
"processingTime": 250

View File

@@ -11,7 +11,7 @@
},
{
"item": "createindustry:sulfur_dust",
"chance": 0.7
"chance": 0.1
}
],
"processingTime": 250

View File

@@ -1,19 +0,0 @@
{
"type": "create:filling",
"ingredients": [
{
"item": "minecraft:bucket"
},
{
"fluid": "createindustry:liquid_asphalt",
"nbt": {},
"amount": 200
}
],
"results": [
{
"item": "createindustry:liquid_asphalt_bucket"
}
]
}

View File

@@ -1,19 +0,0 @@
{
"type": "create:filling",
"ingredients": [
{
"item": "minecraft:bucket"
},
{
"fluid": "createindustry:liquid_concrete",
"nbt": {},
"amount": 200
}
],
"results": [
{
"item": "createindustry:liquid_concrete_bucket"
}
]
}

View File

@@ -2,7 +2,6 @@
"type": "create:mechanical_crafting",
"pattern": [
" S ",
" I ",
" A ",
" P "
],
@@ -15,9 +14,6 @@
"A": {
"tag": "forge:ingots/aluminum"
},
"I": {
"tag": "forge:ingots/steel"
},
"P": {
"item": "createindustry:steel_mechanism"
}

View File

@@ -96,5 +96,5 @@
"item": "createindustry:industrial_pipe"
}
],
"loops": 2
"loops": 1
}

View File

@@ -0,0 +1,9 @@
{
"type": "minecraft:stonecutting",
"ingredient": {
"tag": "forge:ingots/aluminum"
},
"result": "createindustry:factory_floor",
"count": 4
}

View File

@@ -5,5 +5,5 @@
"tag": "forge:ingots/steel"
},
"result": "createindustry:industrial_pipe",
"count": 4
"count": 8
}