Skip to content

Port to 1.21.7 #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 39 commits into from
Jul 20, 2025
Merged

Port to 1.21.7 #122

merged 39 commits into from
Jul 20, 2025

Conversation

Awakened-Redstone
Copy link

@Awakened-Redstone Awakened-Redstone commented Jul 6, 2025

I'll keep it in draft for now as I want to make sure to test things first

TODO(fixes):

  • Popup block title
  • item acceptor active is broken
  • Notes no longer seem to render in hand

Copy link
Member

@TheEpicBlock TheEpicBlock left a comment

Choose a reason for hiding this comment

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

Haven't been able to test it in-game yet but this all looks awesome. Seems like quite a lot had to be done for this port!

super.readData(view);

this.title = view.getString("title", "");
this.url = view.getString("url", "glowcase:mod/modmenu");
Copy link
Member

Choose a reason for hiding this comment

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

Is this a new default? If so, that's great! Having a default helps explain the syntax (I would've never guessed it)

Copy link
Author

@Awakened-Redstone Awakened-Redstone Jul 7, 2025

Choose a reason for hiding this comment

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

yeah, the new data system gives an optional of t or t if you pass a default (unless it's a codec/read, that is always an optional with no way to pass a default, but you can use .orElse)

Copy link
Member

Choose a reason for hiding this comment

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

If you're curious of why the weird syntax: it was intended to be extended later on to allow mods to register directly initializing a specific screen, and I didn't want to marry it to subpar weirdness of just modmenu being ambiguous.

Admittedly that should be a dedicated issue to discuss tho.


// Register image as texture
TextureManager textureManager = MinecraftClient.getInstance().getTextureManager();
this.texture = textureManager.registerDynamicTexture("glowcase/img", nativeTexture);
this.texture = Glowcase.id("glowcase/img", imageHash);
textureManager.registerTexture(this.texture, nativeTexture);
Copy link
Member

Choose a reason for hiding this comment

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

Does this change the behaviour? The first parameter used to be constant but is now different for each image

Copy link
Author

@Awakened-Redstone Awakened-Redstone Jul 7, 2025

Choose a reason for hiding this comment

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

I was unsure on how it worked, and imagined minecraft assigned you an id for each image, if it was all in a single texture I can change it back

I should give it a look when I get to fixing the other bugs

@Awakened-Redstone Awakened-Redstone marked this pull request as ready for review July 11, 2025 02:28
@sisby-folk sisby-folk changed the base branch from 1.21 to 1.21.7 July 11, 2025 03:27
Tomate0613 and others added 2 commits July 11, 2025 11:54
isPlaying was evidently not sufficient for checking if the sound was also queued.
@Ampflower
Copy link
Member

I'll mention; the datagen setup does not seem to be automated in any capacity yet, a clean build will be missing model definitions.

@Awakened-Redstone
Copy link
Author

I'll mention; the datagen setup does not seem to be automated in any capacity yet, a clean build will be missing model definitions.

oh yeah, it's not pushed to the repo, should I push it or should I set some sort of automation?

@HamaIndustries
Copy link
Member

You can push it, but if you know how to set up automation that would be a nice addition

@HamaIndustries
Copy link
Member

HamaIndustries commented Jul 20, 2025

Reposting from the thread. Everything else is fine as far as I can tell.

sound block: randomly selects one sound for multi-sound events and sticks to it rather than varying
hyperlink block: title doesn't seem to appear over the block when hovered
provider block: doesn't display countdown when in TIMED mode. would be nice to be able to interact with empty hand in creative. crouch click could give a stack in always mode.
tablet screen: n/a for fests. doesn't crash.
icon button: which block uses this?
text input widgets: (noticed this on particle block mainly): should auto highlight when clicked once. Also tabbing around would be great
resource location widget: can't tab/enter autocomplete or press up down arrows
vec3 fields: work but have floating point issues; 0.05 becomes 0.074505...

Since these are all minor issues, I think we're ready to ship.

@HamaIndustries HamaIndustries requested review from HamaIndustries and removed request for HamaIndustries July 20, 2025 02:59
@Awakened-Redstone Awakened-Redstone merged commit 30a5122 into ModFest:1.21.7 Jul 20, 2025
1 check passed
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.

5 participants