[Bug]: FE and Kinesis extraction pipes render flow starting at the centre and scroll the source arm backwards

Open Beginner friendly
#85 0 comments 0 reactions 0 assignees View on GitHub

@chonkzillaofficial is already working on this.

Since Dec 5, 2026.

  • #88 by @chonkzillaofficial — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
79/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
game-dev

Research direction

Read tryExtractPower in PipeFlowForgeEnergy and PipeFlowPower, then compare its accounting and flow direction with the routing loop in onTick. Remove the duplicate power average update and pulling arm flow assignment described in the issue. Verify FE and Kinesis extraction arms stay connected and flow toward the centre, and that the centre scrolls during transfer.

Written by the indexing model from the issue text.

Description

Minecraft version

26.3

Mod loader

NeoForge

BuildCraft Community Edition version

8.0.31 (also confirmed still present on current main at c8dff44713fd9f6917d6b1eeda3bf1164db99426)

Bug description

On a wooden (or diamond-wood) FE or Kinesis pipe that is extracting from an adjacent energy source, the visible flow is wrong in two ways:

  1. The arm next to the source shrinks and detaches from the centre cube, so the flow looks like it starts in the middle of the pipe rather than at the source face.
  2. That same source arm scrolls toward the source. On a straight pipe the two arms then cancel, so the centre cube does not scroll at all.

Expected: the same as classic BuildCraft 1.12. The extraction arm stays connected to the centre, flow on an input arm moves toward the centre, and the centre cube scrolls with the transfer.

Actual: the source arm is drawn short and detached, scrolls backwards, and the centre cube stays still.

Root cause (both symptoms live in tryExtractPower):

  1. tryExtractPower does section.powerAverage.push(accepted) on the pulling side. The routing loop in onTick later does input.powerAverage.push(used) for the same energy (that input is the pulling section). The pulling section therefore averages 2× the real throughput. displayPower = sqrt(avg / maxPower) reaches √2 ≈ 1.41 at full flow. PipeFlowRendererFE.renderSidePower assumes 0..1 and computes centreRadius = 0.252 - 0.248 * centrePower, so the arm is drawn short and detached from the centre cube. BuildCraft 1.12 has no push in tryExtractPower (extraction was a TODO there); the routing loop is the only accounting.

  2. tryExtractPower also sets section.displayFlow = EnumFlow.IN on the pulling arm. In the routing loop the input arm is labelled OUT and the output arm IN (same as 1.12; with the UV offset convention, OUT on an input arm means content moves toward the centre). tryExtractPower runs after the routing loop in the same tick, so the pulling arm ends the tick as IN and content moves toward the source. The two arms of a straight wood pipe then cancel in clientDisplayFlowCentre, and the centre stays at (0.5, 0.5, 0.5). Classic 1.12 never touched displayFlow in extraction.

Steps to reproduce
  1. Place a wooden FE pipe (or wooden Kinesis pipe) next to a source that it can extract from (for example an FE engine / energy storage, or a Kinesis engine).
  2. Connect the other side to a consumer with a gold or stone pipe so energy actually flows.
  3. Look at the wooden pipe at full flow:
    • The arm against the source is short and does not meet the centre cube (flow appears to start mid-pipe).
    • That arm's texture scrolls toward the source, and the centre cube does not scroll.
Additional context

Reproduced in a private 26.3 NeoForge pack with BCCE 8.0.31.

After removing the powerAverage.push and the displayFlow = IN assignment from tryExtractPower (both classes), measurements on T and 4-way junctions of gold FE pipes, and on a line fed from both ends, were correct: every input arm is OUT, every output arm is IN, and the centre scroll sums correctly. No per-arm direction bug was found in the junction routing itself.

This is not issue #54 (FE connecting to a non-MJ sender) or #82 (MJ drop-off over distance).

A follow-up PR removes those two assignments from tryExtractPower in PipeFlowForgeEnergy and PipeFlowPower. Actual energy transfer is unchanged.

Found and fixed with AI assistance; tested on the versions listed.

Dominant language
Java
Stars
20
Forks
12
Avg merge
21m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BCCE-team/BuildCraft

All issues in BCCE-team/BuildCraft

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.