Skip to content

Using custom nbt for a model predicate provider. #2366

Answered by warjort
Desynq asked this question in Mod Dev Support
Discussion options

You must be logged in to vote

I have never used this feature myself, but a quick search on github shows this small mod using it.
https://github.com/AmyMialeeMods/icy-incitement/blob/main/src/main/java/amymialee/icyincitement/IcyIncitementClient.java

Here's what the model looks like which seems to be similar to what you want?
https://github.com/AmyMialeeMods/icy-incitement/blob/main/src/main/resources/assets/icyincitement/models/item/snowball_sprinkler.json

BTW I think your 2 if statements are not relevant for your use case? In the code you copied, they represent forcing the uncharged bow to be drawn if there is no entity actively holding it.

If you are interested, it also shows how to draw a filled bar next to the ite…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Desynq
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants