-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Is your feature request related to a problem? Please describe.
I tried to edit the code in the Detailed Animations resource pack's player.jem file with the help of AI, because I have no one to ask for advice/help on how to change the code (and I don't know where to ask for help or if anyone is even remotely interested in helping me with this).
I wanted to make the resource pack better compatible with the First Person mod and the Not Enough Animations mod. My goal was it to suppress the animation of the arm, that is holding a torch, for beginnings.
Gemini suggested to add this as a variable to test for it:
"var.is_holding_light_right": "if(main_hand_item == 'minecraft:torch', 1, 0)",
"var.is_holding_light_left": "if(off_hand_item == 'minecraft:torch', 1, 0)"
Or, now at the end...:
"var.is_holding_light_right": "if(main_hand_item_id == 'torch', 1, 0)",
"var.is_holding_light_left": "if(off_hand_item_id == 'torch', 1, 0)"
Since both versions of "main_hand_item" inside the if-statement don't exist in EMF or ETF, it went into fail-save and was permanently TRUE, which ChatGPT only now on the 5th day of me trying to figure out the code felt important enough to mention, after going through every possible permutation of "maybe this works"... and Gemini, not any better, persists now that Bedrock related syntax is 100% going to help while also repeatedly trying to gaslighting me that MC 1.21.11 doesn't exist...
Because it isn't possible as of right now, to ask for specific items held in hand, it all goes down the drain.
Describe the solution you'd like
Since it is already possible to ask if any item is held in main- or off-hand at all...
"var.is_holding_item_right": "if(is_holding_item_right, 1, 0)",
"var.is_holding_item_left": "if(is_holding_item_left, 1, 0)",
I'm imagining that it is maybe not that far of a leap to get to differentiating for a specific item held in hand.
At least I'm hoping it. It would open up a whole bunch of possibilities for animation packs!
Additional context
Minecraft 1.21.11 (Java) / Fabric 0.18.4
entity_model_features_1.21.11-fabric-3.0.10.jar
entity_texture_features_1.21.11-fabric-7.0.8.jar