compressor QMAW

This commit is contained in:
Boblet 2025-10-24 11:13:49 +02:00
parent 75adc232f7
commit dfd1aafb89
5 changed files with 27 additions and 5 deletions

View File

@ -3,4 +3,8 @@
* Meteors will now punch through weak blocks like leaves instead of getting stuck on trees
* Meteor impacts now have new visuals
* Falling meteors will produce a sound instead of stealthily blowing people up
* Fallen meteors will now be placed deeper into the actual crater instead of hovering awkwardly over the hole
* Fallen meteors will now be placed deeper into the actual crater instead of hovering awkwardly over the hole
* Addd QMAW pages for the particle accelerator parts along with a PA overview page and a simple step by step construction tutorial
## Fixed
* Fixed arc furnace only allowing electrodes to be inserted when the lid is down instead of up

View File

@ -23,6 +23,7 @@ import net.minecraft.util.ResourceLocation;
public class GuiQMAW extends GuiScreen {
protected static final ResourceLocation texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/gui_wiki.png");
protected static final ResourceLocation the_man = new ResourceLocation(RefStrings.MODID + ":textures/gui/gui_wiki_flix.png");
public String title;
public String qmawID;
@ -300,7 +301,13 @@ public class GuiQMAW extends GuiScreen {
int y = guiTop + 30;
int lineNum = 0;
for(List<ManualElement> line : lines) {
if(lines.size() > 1 && scrollProgress == lines.size() - 1) {
Minecraft.getMinecraft().getTextureManager().bindTexture(the_man);
drawTexturedModalRect(guiLeft + 60, guiTop + this.ySize - 84, 0, 0, 80, 80);
drawTexturedModalRect(guiLeft + 140, guiTop + this.ySize - 60, 0, 80, 77, 39);
} else for(List<ManualElement> line : lines) {
lineNum++;
if(lineNum <= this.scrollProgress) continue;

View File

@ -147,7 +147,7 @@ public class TileEntityMachineArcFurnaceLarge extends TileEntityMachineBase impl
} else {
if(this.delay > 0) delay--;
this.progress = 0;
if(lid < 1 && this.electrodes[0] != 0 && this.electrodes[1] != 0 && this.electrodes[2] != 0) {
if(lid < 1) {
lid += 1F / (60F / (upgrade * 0.5 + 1));
if(lid > 1) lid = 1;
}
@ -393,7 +393,7 @@ public class TileEntityMachineArcFurnaceLarge extends TileEntityMachineBase impl
@Override
public boolean canInsertItem(int slot, ItemStack stack, int side) {
if(slot < 3) return lid <= 0 && stack.getItem() == ModItems.arc_electrode;
if(slot < 3) return lid >= 1 && stack.getItem() == ModItems.arc_electrode;
if(slot >= 25) {
ArcFurnaceRecipe recipe = ArcFurnaceRecipes.getOutput(stack, this.liquidMode);
if(recipe == null) return false;
@ -404,7 +404,7 @@ public class TileEntityMachineArcFurnaceLarge extends TileEntityMachineBase impl
@Override
public boolean isItemValidForSlot(int slot, ItemStack stack) {
if(slot < 3) return stack.getItem() == ModItems.arc_electrode;
if(slot < 3) return lid >= 1 && stack.getItem() == ModItems.arc_electrode;
if(slot > 4) {
ArcFurnaceRecipe recipe = ArcFurnaceRecipes.getOutput(stack, this.liquidMode);
if(recipe == null) return false;

View File

@ -0,0 +1,11 @@
{
"name": "Compressor",
"icon": ["hbm:tile.machine_compressor", 1, 0],
"trigger": [["hbm:tile.machine_compressor"], ["hbm:tile.machine_compressor_compact"]],
"title": {
"en_US": "Compressor"
},
"content": {
"en_US": "Compresses fluids, i.e. increases the \"PU\" number of a fluid. Certain fluids change when compressed, for example [[perfluoromethyl|Perfluoromethyl]] turns into cold PFM when compressed to 2 PU. Each compressor can only do a single PU increase. Compressed fluids can use the same pipes as uncompressed fluids (and in fact share the exact same network, as there is no pressure identification), but they cannot be stored in tanks."
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB