Skip to content

Align fluid regulator tier and speed in transposer names - #224

Merged
Dream-Master merged 6 commits into
GTNewHorizons:masterfrom
shironakoushi:feat/transposer-tier-names
Oct 31, 2026
Merged

Dream-Master merged 6 commits into
GTNewHorizons:masterfrom
shironakoushi:feat/transposer-tier-names

Conversation

@shironakoushi

@shironakoushi shironakoushi commented Sep 26, 2026 •

Copy link
Copy Markdown

Summary

Transposers upgraded with a GregTech fluid regulator now show the regulator tier in their name, e.g. Transposer (UHV).

  • oc:fluidTransferRate is stored as a single long; existing int tags are read unchanged.
  • The tier is derived from the transfer rate; rates without a matching tier keep the plain name.

The companion NewHorizonsCoreMod change:

738e9234ad644003e125b125bb3ae59e 09a29e7942f3a89706bca0fd67db813f c6f55084c4934fd68dcd5c3f3359e199

Testing

Tested in a GTNH 2.9.0-RC-1 instance:

  • Transposers created with the previous version (int oc:fluidTransferRate) were carried over into this build; their rates are preserved and they continue to work. (even if losing their name)
eaf35a147d97a1e31baddec239c6909b

Checklist

@shironakoushi shironakoushi added Enhancement Improve an existing mechanic. Please explain the change with a before/after comparison. Affects Balance Change affecting balance. Requires admin approval before merging. ✔️ Tested in full GTNH instance This Pull Request has been tested in a full GTNH install. labels Sep 26, 2026
@shironakoushi shironakoushi added the Bug Fix Fixes a bug. Please link it in the PR if an issue exists for it. label Oct 28, 2026
@shironakoushi shironakoushi changed the title Show fluid regulator tier in transposer names Align fluid regulator tier and speed in transposer names Oct 28, 2026

@Vlamonster Vlamonster left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PRs! I looked them over and have a few suggestions:

  • Instead of indexing with 0–10, use the constants from VoltageIndex.
  • In the coremod, create the base transposer once as a local variable (not a static field) instead of recreating it for every recipe.
  • Move the tier names to the coremod and have it write the tier name into the item's NBT. OpenComputers can then stay generic and only use the new name format when a tier is present in the NBT, so the name mapping in OpenComputers can be removed.
  • The base transposer is missing the MV tier name.
  • Add .nbtSensitive() to the recipes.

@Vlamonster

Copy link
Copy Markdown
Member

I added one more comment about nbtSensitive. This was something I forgot when I worked on this previously.

@shironakoushi

Copy link
Copy Markdown
Author

I added one more comment about nbtSensitive. This was something I forgot when I worked on this previously.

done

@Vlamonster

Copy link
Copy Markdown
Member

It looks good, so I'll test it in-game again and come back with some final comments :)!

@shironakoushi

Copy link
Copy Markdown
Author

Boundless Cosmic Solder seems too late for UMV, so it remains mutated living solder for UMV transposers

@Vlamonster

Copy link
Copy Markdown
Member

The generic transposer still shows up in NEI next to the tiered variants. This should be removed.
image

I think you can fix this by using setItemListEntries instead of addItemVariant.

@Vlamonster

Vlamonster commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

baseTransposer shouldn't be passed as an argument to getTransposer. Right now the caller needs to know how to construct it, which isn't straightforward.

@Vlamonster

Copy link
Copy Markdown
Member

Finally, I think as future work we should add uncrafting recipes for the transposers. This would be a separate PR.

@shironakoushi

Copy link
Copy Markdown
Author

The generic transposer still shows up in NEI next to the tiered variants. This should be removed. image

I think you can fix this by using setItemListEntries instead of addItemVariant.

image

@Vlamonster

Vlamonster commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Thanks for the PRs!

@Dream-Master
Dream-Master merged commit 5e438d2 into GTNewHorizons:master Oct 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Affects Balance Change affecting balance. Requires admin approval before merging. Bug Fix Fixes a bug. Please link it in the PR if an issue exists for it. Enhancement Improve an existing mechanic. Please explain the change with a before/after comparison. ✔️ Tested in full GTNH instance This Pull Request has been tested in a full GTNH install.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants