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

I'm having trouble figuring out how to specify custom NBT paths that include a list. #421

Closed
DeathTr00per opened this issue Jun 30, 2024 · 2 comments

Comments

@DeathTr00per
Copy link

DeathTr00per commented Jun 30, 2024

I'm working on a pack that adds different tipped arrow variants to the item model of crossbows when they are loaded, but I'm having trouble figuring out how the whole CIT system works. I have copied a file over from another working resource pack so I can reference it, but the problem I'm running into is specifying an NBT field that contains a list, specifically ChargedProjectiles. I know that all of the item models are functional, since I previously made them for a pack that utilized the Chime mod to display custom models based on NBT data instead. The code block for the arrow_spectral.properties file that I'm having difficulty with is below:

type=item
matchItems=minecraft:crossbow
model=minecraft:item/crossbow/arrow_spectral
nbt.ChargedProjectiles.id=minecraft:spectral_arrow

The minecraft NBT path for ChargedProjectiles is tag:{ChargedProjectiles:[{id:}]}

@HiWord9
Copy link

HiWord9 commented Jul 1, 2024

im sure cit resewn wiki should describe everything needed:
https://citresewn.shcm.io/cit/cit_base/#nbt-path

@DeathTr00per
Copy link
Author

DeathTr00per commented Jul 1, 2024

im sure cit resewn wiki should describe everything needed: https://citresewn.shcm.io/cit/cit_base/#nbt-path

I looked at that but still wasn't able to figure it out.
I changed the final line to this but it still doesn't work.
nbt.ChargedProjectiles=[{id:"minecraft:spectral_arrow"}]

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

No branches or pull requests

2 participants