Skip to content

Add Matter Cluster Decompressor#70

Open
RecursivePineapple wants to merge 6 commits intomasterfrom
matter-decompressor
Open

Add Matter Cluster Decompressor#70
RecursivePineapple wants to merge 6 commits intomasterfrom
matter-decompressor

Conversation

@RecursivePineapple
Copy link

The Matter Cluster Decompressor is a machine that converts matter clusters back into items. It's meant for breaking open huge clusters easily since those will be created by several GT machines. This is primarily compressed busses, but breaking other machines (i.e. item pipes) may also drop clusters instead of normal items to prevent thousands of entities from being created. There will be a threshold above which clusters will be dropped instead of normal items (probably around a thousand items).

Clusters can be inserted into the machine normally, but items can only be pulled with GT or AE because it relies on an item source instead of an inventory. Fluids can be pulled by anything, the machine acts as a tank. Decompressors will convert fluid drops inside of clusters back into fluids automatically.

should be merged after: #69 (this PR includes #69 though)

image image image
image

@Ranzuu
Copy link

Ranzuu commented Jan 11, 2026

The machine can be broken with bare hand (drops nothing)

@Dream-Master Dream-Master added the 🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta label Jan 11, 2026
@Dream-Master
Copy link
Member

@RecursivePineapple


@Override
public String getInventoryName() {
return getBlockType().getLocalizedName();

Choose a reason for hiding this comment

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

@Ranzuu will have your soul for this.

Copy link

Choose a reason for hiding this comment

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

😆 That's okay, I can change it with mui2 themes. But that also have some problems with default theme, so I don't mind it here 👽

Copy link
Author

Choose a reason for hiding this comment

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

Is this method actually used for anything? I always thought it was just a debug tool.


@Override
public boolean canExtractItem(int slotIndex, ItemStack stack, int side) {
return slotIndex == 0;

Choose a reason for hiding this comment

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

  1. Why allow automation to extract Matter Clusters from the machine?
  2. Why not allow automation to extract the output items from the machine? (Is there any significant limitation preventing it?)

Copy link
Author

Choose a reason for hiding this comment

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

  1. No reason in particular, but it's not like it breaks anything
  2. There isn't much point. Anything that uses the GTNHLib item moving system will be able to extract from the output slot of this machine. I could wire something up that allows EIO to extract from it but the intended use is to use an import bus or a GT conveyor.

Choose a reason for hiding this comment

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

There is a point for people who aren't in GTNH, or those who don't use AE2 for everything. (For instance, I'm not sure if Translocators will be able to interact with this block.)

(I am aware that Avaritia is currently a GTNH-only mod, but that's solely because nobody has separated the GTNH changes from the rest of the mod.)

Copy link
Author

Choose a reason for hiding this comment

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

Avaritia is actively supported, and this PR adds a hard dep on GTNHLib (which is fine since everyone likely has it already).

I've intentionally ignored people using this outside the pack because this is only meant to be used for supercritical clusters. You can still open small ones by right clicking them, which drops all of the items on the ground. You can only generate supercritical clusters by special machines - right now only compressed/quantum busses generate them when you eject the contents of a slot. Avaritia tools will never generate one, they'll only create clusters containing up to 16k items.

I was looking at adding item moving support for translocators and SFM but those mods were complex so I haven't started that yet. Porting translocators is more viable than porting SFM.

Choose a reason for hiding this comment

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

Avaritia is actively supported, and this PR adds a hard dep on GTNHLib (which is fine since everyone likely has it already).

I've intentionally ignored people using this outside the pack because this is only meant to be used for supercritical clusters. You can still open small ones by right clicking them, which drops all of the items on the ground. You can only generate supercritical clusters by special machines - right now only compressed/quantum busses generate them when you eject the contents of a slot. Avaritia tools will never generate one, they'll only create clusters containing up to 16k items.

I was looking at adding item moving support for translocators and SFM but those mods were complex so I haven't started that yet. Porting translocators is more viable than porting SFM.

There are good reasons for people to want an automatic way of opening non-supercritical clusters, no?

@RecursivePineapple
Copy link
Author

New recipe

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants