Skip to content
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

Aliases - add support for aliases by MC keys #7492

Open
wants to merge 8 commits into
base: dev/feature
Choose a base branch
from

Conversation

ShaneBeee
Copy link
Contributor

@ShaneBeee ShaneBeee commented Jan 20, 2025

Description

This PR aims to add support for using Minecraft keys to get ItemTypes.
I have attempted this before and always somehow created a bug. By gosh I think I finally got it.

Many MANY people have been asking for this over the years (myself included).
A lot of users are used to Minecraft keys due to commands, datapacks, etc, and this may help them in some cases.

With the addition of the RegistryClassInfo I added that supports Minecraft names, it seems fitting to allow it for item aliases as well.

I added a regression test to make sure this doesn't break anything, including normal and script based aliases.


Target Minecraft Versions: any
Requirements: none
Related Issues: #5166

@Efnilite Efnilite added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Jan 21, 2025
Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

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

looks good

@cheeezburga cheeezburga added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request, an issue about something that could be improved, or a PR improving something. feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants