SigmundGranaas / forgero

Tool creation and customization mod for Minecraft
MIT License
48 stars 15 forks source link

[Patch]: Added support for applying overrides in model variants #1103

Closed SigmundGranaas closed 2 months ago

SigmundGranaas commented 2 months ago

Closes #1102

Example variant:

{
          "predicate": [
            {
              "type": "forgero:bow_pull",
              "pull": 0.9
            }
          ],
          "display_overrides": {
            "thirdperson_righthand": {
              "rotation": [ -90, 0, -60 ],
              "translation": [ 2, 0.1, -3 ],
              "scale": [ 0.9, 0.9, 0.9 ]
            },
            "thirdperson_lefthand": {
              "rotation": [ -90, 0, 30 ],
              "translation": [ 2, 0.1, -3 ],
              "scale": [ 0.9, 0.9, 0.9 ]
            },
            "firstperson_righthand": {
              "rotation": [ -90, 0, -55 ],
              "translation": [ 1.13, 3.2, 1.13],
              "scale": [ 0.68, 0.68, 0.68 ]
            },
            "firstperson_lefthand": {
              "rotation": [ -90, 0, 35 ],
              "translation": [ 1.13, 3.2, 1.13],
              "scale": [ 0.68, 0.68, 0.68 ]
            }
          },
          "template": "bow_pull_2.png"
        },

Result:

https://github.com/user-attachments/assets/a962948c-7242-46bf-ba14-61c2f5373949