Jump to content

Flipping item texture in offhand[1.19.3]


LaconianLoaf

Recommended Posts

Hey, I'm new to modding, and I'm trying to get an item to flip and always face the center of the screen depending on which hand it's in.

 

Eg.

If you hold an apple the stem will always face towards the right of the screen regardless of which hand it is in (this is what my item does)

If you hold an axe the blade will flip in your off-hand so that it always faces the center of the screen(this is what I want my item to do)

I tried looking through the axe code, and google searching but I can't find how to get the described behavior to happen.

-Thanks

 

I don't know if this helps but my in-game model is a JSON item model using

"parent":  "minecraft:item/generated"

to convert a png to the item model

Edited by LaconianLoaf
Link to comment
Share on other sites

Never mind I figured out how to solve my problem by looking at the axe.json file model(I didn't know how to do that with my IDE when writing the question)

for future reference, a lot of useful modeling information was in here: https://minecraft.fandom.com/wiki/Tutorials/Models#Example:_Wall_Torch 

the solution was to set the JSON  line in the question to "parent": "minecraft:item/handheld"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.