Skip to content
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: gtlcore-test

on:
push:
branches: [ gtl-1431-skyblock-test ]
pull_request:
branches: [ gtl-1431-skyblock-test ]
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1

- name: Build with Gradle
run: ./gradlew build

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: Mod JARs
path: build/libs/*.jar
retention-days: 7

- name: Upload to Release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v1
with:
files: build/libs/*.jar
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,17 @@ public static void init() {
electric_blast_furnace.setTooltipBuilder(electric_blast_furnace.getTooltipBuilder().andThen(GTLMachines.GTL_MODIFY));

MachineDefinition steamExportBus = GTMachines.STEAM_EXPORT_BUS;
steamExportBus.setTooltipBuilder(steamExportBus.getTooltipBuilder().andThen((itemStack, components) -> {
components.add(1, Component.translatable("gtceu.machine.item_bus.export.tooltip"));
components.add(2, Component.translatable("gtceu.universal.tooltip.item_storage_capacity", 16));
}));
steamExportBus.setTooltipBuilder(steamExportBus.getTooltipBuilder().andThen(GTLMachines.GTL_MODIFY));

MachineDefinition steamImportBus = GTMachines.STEAM_IMPORT_BUS;
steamImportBus.setTooltipBuilder(steamImportBus.getTooltipBuilder().andThen((itemStack, components) -> {
components.add(1, Component.translatable("gtceu.machine.item_bus.import.tooltip"));
components.add(2, Component.translatable("gtceu.universal.tooltip.item_storage_capacity", 16));
}));
steamImportBus.setTooltipBuilder(steamImportBus.getTooltipBuilder().andThen(GTLMachines.GTL_MODIFY));

MachineDefinition steamOven = GTMachines.STEAM_OVEN;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private static void registerTieredMachines(String name, BiFunction<IMachineBlock
.abilities(PartAbility.IMPORT_ITEMS)
.overlayTieredHullRenderer("dual_hatch.import")
.tooltips(
Component.translatable("gtceu.machine.buffer.import.tooltip"),
Component.translatable("gtceu.machine.dual_hatch.import.tooltip"),
Component.translatable(
"gtceu.universal.tooltip.item_storage_capacity",
(1 + tier) * (1 + tier)),
Expand All @@ -212,7 +212,7 @@ private static void registerTieredMachines(String name, BiFunction<IMachineBlock
.abilities(PartAbility.EXPORT_ITEMS)
.overlayTieredHullRenderer("dual_hatch.export")
.tooltips(
Component.translatable("gtceu.machine.buffer.export.tooltip"),
Component.translatable("gtceu.machine.dual_hatch.export.tooltip"),
Component.translatable(
"gtceu.universal.tooltip.item_storage_capacity",
(1 + tier) * (1 + tier)),
Expand Down