Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
eb7600e
Create build.yml
Apostrcfo2 Apr 26, 2026
230ae3b
Update build.yml
Apostrcfo2 Apr 26, 2026
fb6a88c
Update build.yml
Apostrcfo2 Apr 26, 2026
22755c1
Update build.yml
Apostrcfo2 Apr 26, 2026
82575bd
Update build.yml
Apostrcfo2 Apr 26, 2026
976caa3
Update repositories.gradle
Apostrcfo2 Apr 26, 2026
38c2273
Update repositories.gradle
Apostrcfo2 Apr 26, 2026
b2c4f89
Update repositories.gradle
Apostrcfo2 Apr 26, 2026
390dd84
Update build.yml
Apostrcfo2 Apr 26, 2026
de1e0d8
trigger build
Apostrcfo2 Apr 26, 2026
6a61706
Update gradle.properties
Apostrcfo2 Apr 26, 2026
6a51e32
logo.png
Apostrcfo2 Apr 26, 2026
b4810b9
Rename 1777168627074.png to logo.png
Apostrcfo2 Apr 26, 2026
0c69d0e
Update README.md
Apostrcfo2 Apr 26, 2026
8c8040e
Update README.md
Apostrcfo2 Apr 26, 2026
dea4b50
Atualizar o README.md
Apostrcfo2 Apr 26, 2026
62e368c
Atualizar o README.md
Apostrcfo2 Apr 26, 2026
7703618
Add files via upload
Apostrcfo2 Apr 26, 2026
e58a20b
Delete logo.png
Apostrcfo2 Apr 26, 2026
fc5dc34
update README.md
Apostrcfo2 Apr 26, 2026
cfdab14
Revert "Update gradle.properties"
Gordon-Frohman Apr 28, 2026
85d82cf
Cleaned up pixelated logo
Gordon-Frohman Apr 28, 2026
36b7cdb
Update README.md
Gordon-Frohman Apr 28, 2026
9aaf218
Merge branch 'main' into main
Gordon-Frohman Apr 29, 2026
4b6b557
Update build.yml
Gordon-Frohman Apr 29, 2026
08936fc
Merge branch 'Gordon-Frohman:main' into main
Apostrcfo2 May 12, 2026
23366fe
Merge branch 'Gordon-Frohman:main' into main
Apostrcfo2 May 17, 2026
9673d66
Fix large cogwheel interlocking bug and shaft rotation offset
Apostrcfo2 May 17, 2026
4b6baf0
Fix checkstyle formating
Apostrcfo2 May 17, 2026
622d441
fix(renderer): inline setBreakTexture arguments for Spotless compliance
Apostrcfo2 May 17, 2026
103b9f6
ci: automate spotless formatting before build execution
Apostrcfo2 May 17, 2026
812dd76
Update download file format in README.md
Apostrcfo2 May 17, 2026
6d7b58d
Refactor cogwheel and shaft rendering logic(fix 2nd)
Apostrcfo2 May 17, 2026
a087561
Refactor CogWheelTileEntityRenderer
Apostrcfo2 May 17, 2026
c5222d3
Fix rendering order for cogwheel and shaft
Apostrcfo2 May 17, 2026
d781545
Ahhhhhhh
Apostrcfo2 May 17, 2026
0f991ad
Update the link to the Workflow
Apostrcfo2 May 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
distribution: 'temurin'
- name: Grant execute permission
run: chmod +x gradlew
- name: Apply Spotless Formating
run: ./gradlew spotlessApply
- name: Build
run: ./gradlew build
- name: Upload artifact
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ The following machines and systems are currently present and functional:

**Option 1 — Pre-release (recommended)**

Download the latest pre-release directly from the [Releases page](https://github.com/Apostrcfo2/ReCreate/releases). Look for the latest `v0.0.1` pre-release and download the `.zip` file.
Download the latest pre-release directly from the [Releases page](https://github.com/Apostrcfo2/ReCreate/releases). Look for the latest pre-release and download the `.jar` file.

**Option 2 — Latest build**

Go to the **[Actions tab](https://github.com/Apostrcfo2/ReCreate/actions)** → click the latest successful run → scroll to **Artifacts** → download `mod-jar`.
Go to the **[Actions tab](https://github.com/Gordon-Frohman/ReCreate/actions)** → click the latest successful run → scroll to **Artifacts** → download `mod-jar`.

> The Actions build is always more up-to-date but may be less stable than the pre-release.
> Pre release builds are published by a different author. Please submit all the issues you have to the [original repo 'issues' page](https://github.com/Gordon-Frohman/ReCreate/issues)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,29 @@ public class CogWheelTileEntityRenderer extends KineticTileEntityRenderer {
public void renderSafe(KineticTileEntity tileEntity, double x, double y, double z, float partialTicks) {
CogWheelBlock block = (CogWheelBlock) tileEntity.getBlockType();
Axis axis = block.getAxis(tileEntity.getBlockMetadata());

// 1. take the base angle
float angle = getAngleForTe(tileEntity, tileEntity.xCoord, tileEntity.yCoord, tileEntity.zCoord, axis);

// 2. If it's a large gear, we apply the angle adjustment BEFORE configuring the models.
if (block.isLarge) {
if (!shouldOffset(tileEntity.xCoord, tileEntity.yCoord, tileEntity.zCoord, axis)) {
angle -= Math.PI / 16F; // The 11.25 degree adjustment
}
}

// 3. We now configure the shaft and cogwheel with the SAME final angle.
shaft.setAxis(axis);
shaft.setRotation(angle);
shaft.setRotation(angle); // The shaft now follows the adjusted angle.

if (!block.isLarge) {
cogwheel.setAxis(axis);
cogwheel.setRotation(angle);
} else {
largeCogwheel.setAxis(axis);
if (!shouldOffset(tileEntity.xCoord, tileEntity.yCoord, tileEntity.zCoord, axis)) angle -= Math.PI / 16F;
largeCogwheel.setRotation(angle);
}

Color color = getColor(tileEntity);

GL11.glPushMatrix();
Expand All @@ -40,7 +52,9 @@ public void renderSafe(KineticTileEntity tileEntity, double x, double y, double
boolean damageTexture = ReCreate.isTileEntityBreakerLoaded
&& TileEntityBreakerIntegration.shouldRenderDamageTexture(this);

// We rendered the shaft (which is now at the correct angle).
shaft.render(this);

if (!block.isLarge) {
if (damageTexture) TileEntityBreakerIntegration.setBreakTexture(
this,
Expand All @@ -57,5 +71,4 @@ public void renderSafe(KineticTileEntity tileEntity, double x, double y, double

GL11.glPopMatrix();
}

}
}