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

Item DFU doesn't fix up banner data #499

Open
AzureAaron opened this issue Jan 17, 2024 · 3 comments
Open

Item DFU doesn't fix up banner data #499

AzureAaron opened this issue Jan 17, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@AzureAaron
Copy link
Collaborator

What happened?

The mod's DFU for items cannot fix up banner data resulting in items like the Totem of Corruption appearing as plain white banners without any patterns.

Screenshots

No response

Log output

No response

Minecraft Version

1.20.4

Skyblocker Version

skyblocker-1.16.0+1.20.4.jar

Additional context

No response

@AzureAaron AzureAaron added the bug Something isn't working label Jan 17, 2024
@Julienraptor01
Copy link
Contributor

Julienraptor01 commented Jan 17, 2024

DFU doesn't fix potions either
Basically anything related to additional metadata in newer version is currently not datafixed

Like we have a convertItemId, we should probably designe a convertItemNBT that handle doing all NBTs transformations

public static String convertItemId(String id, int damage) {

root.put("id", NbtString.of(ItemFixerUpper.convertItemId(id, damage)));

That's one of the improvements i had partially done on my 1.19.2 fork, so i can try to upstream theses changes
I'll try to do it in about a week when my exam session finishes

@AzureAaron
Copy link
Collaborator Author

DFU doesn't fix potions either Basically anything related to additional metadata in newer version is currently not datafixed

Like we have a convertItemId, we should probably designe a convertItemNBT that handle doing all NBTs transformations

public static String convertItemId(String id, int damage) {

root.put("id", NbtString.of(ItemFixerUpper.convertItemId(id, damage)));

That's one of the improvements i had partially done on my 1.19.2 fork, so i can try to upstream theses changes I'll try to do it in about a week when my exam session finishes

I also wonder to an extent if it'd be possible to use Mojang's DFU for some of this stuff.

@Julienraptor01
Copy link
Contributor

DFU doesn't fix potions either Basically anything related to additional metadata in newer version is currently not datafixed

Like we have a convertItemId, we should probably designe a convertItemNBT that handle doing all NBTs transformations

public static String convertItemId(String id, int damage) {

root.put("id", NbtString.of(ItemFixerUpper.convertItemId(id, damage)));

That's one of the improvements i had partially done on my 1.19.2 fork, so i can try to upstream theses changes I'll try to do it in about a week when my exam session finishes

I also wonder to an extent if it'd be possible to use Mojang's DFU for some of this stuff.

Maybe ? That could be an idea to investigate
Another thing we could investigate is setup up our own items repo with things already datafixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants