Jump to content

JSON Won't Affect my Ingame Item


NathanLeadill

Recommended Posts

{
    "forge_marker": 1,
    "defaults": {
        "textures": {
          "#texture": "zombiesurvival:items/m16"
        },
        "model": "zombiesurvival:m16.b3d"
     },
    "variants": {
        "inventory": [{
            "transform": {
              "gui": {
                "rotation": [
                  {
                    "y": 135
                  },
                  {
                    "x": 165
                  },
                  {
                    "z": -90
                  }
                ],
                "scale": 0.05
              },
              "firstperson": {
                "translation": [
                  0,
                  -0.25,
                  -0.25
                ],
                "rotation": [
                  {
                    "y": 225
                  },
                  {
                    "x": 0
                  },
                  {
                    "z": 90
                  }
                ],
                "scale": 0.25
              },
              "thirdperson": {
                "translation": [
                  0,
                  0,
                  0
                ],
                "rotation": [
                  {
                    "y": -90
                  },
                  {
                    "x": 180
                  },
                  {
                    "z": 180
                  }
                ],
                "scale": 0.05
              }
            }
        }]
    }
}

 

https://gyazo.com/ddfafbec9d1e7832c77dc8d4c0244790

It won't edit it all. Can anyone help?

Link to comment
Share on other sites

                "rotation": [

                  {

                    "y": 135

                  },

                  {

                    "x": 165

                  },

                  {

                    "z": -90

                  }

                ]

That part is so strange. It should be something like [ 165, 135, -90 ].

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Link to comment
Share on other sites

If his .JSON was wrong, it wouldn't render his model. @NathanLeadill how did you get that B3D to render as an item (I've been trying for days)? Maybe the way you load your B3D is causing your model to not accept its transforms.

No it should render because the syntax itself is not wrong.

The "x", "y", "z" properties would be treated like a comment.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

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.

Announcements



×
×
  • Create New...

Important Information

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