Skip to content

Lazy flap linking#250

Open
blockninja124 wants to merge 3 commits into1.20.1/mainfrom
1.20.1/lazy_flap_linking
Open

Lazy flap linking#250
blockninja124 wants to merge 3 commits into1.20.1/mainfrom
1.20.1/lazy_flap_linking

Conversation

@blockninja124
Copy link
Collaborator

Adds the ability to click a side of a smart flap bearing with a linked controller to do the auto-link, same as redstone link blocks.

This PR is still WIP, mainly because fabric seems to have gotten broken because of... CC somehow? at some point? I don't even know if this pr did that or if it was already broken 😭

Also this PR uses pretty much every ungodly trick in the book, we've got: mixins, reflection, sussy constructors, sussy casts, sussy non-mixin classes, horrible operation wraps, etc. As far as I can tell, most of this is the only way + best way to do this stuff, since create redstone link auto-linking is horribly hardcoded.

However, if anyone has slight suggestions on particular ways to improve the mixins/sussiness, do suggest them. (But please, please, test them in-dev yourself before suggesting them. I've already spent countless hours trying different mixin configurations, I don't really want to test more without knowing they might work.)

somehow fabric is broken because of CC?? When the hell did that happen
@blockninja124
Copy link
Collaborator Author

What I mean by auto-linking:

2026-01-20.23-23-11.mp4

modCompileOnly("dev.engine-room.flywheel:flywheel-forge-api-${minecraft_version}:${flywheel_forge_version}")
modRuntimeOnly("dev.engine-room.flywheel:flywheel-forge-${minecraft_version}:${flywheel_forge_version}")

modCompileOnly("maven.modrinth:valkyrien-warium:0.3.1")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oops how did that sneak in

modCompileOnly("cc.tweaked:cc-tweaked-${minecraft_version}-fabric-api:${cc_version}")
//modRuntimeOnly("cc.tweaked:cc-tweaked-${minecraft_version}-fabric:${cc_version}")

modCompileOnly("cc.tweaked:cc-tweaked-$minecraft_version-fabric-api:$cc_version")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

my attempts at fixing CC, not what caused it to break

Copy link
Collaborator Author

@blockninja124 blockninja124 left a comment

Choose a reason for hiding this comment

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

need to remove warium

@blockninja124 blockninja124 marked this pull request as ready for review February 22, 2026 17:32
@blockninja124
Copy link
Collaborator Author

fabric dev broken ain't my fault so this is ready for review

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant