Jump to content

Sword json file help [1.10.2]


nedas60

Recommended Posts

I was trying to make a sword but I couldn't figure it out. I tried to copy the iron sword json but that just looks odd. It looks like I am holding any other regular item.

Current code I have:

{
    "parent": "builtin/generated",
    "textures": {
        "layer0": "ntm:items/InfusedSword"
    },
    "display": {
        "thirdperson": {
            "rotation": [ 0, 90, -35 ],
            "translation": [ 0, 1.25, -3.5 ],
            "scale": [ 0.85, 0.85, 0.85 ]
        },
        "firstperson": {
            "rotation": [ 0, -135, 25 ],
            "translation": [ 0, 4, 2 ],
            "scale": [ 1.7, 1.7, 1.7 ]
        }
    }
}

 

Can someone help me make an actual sword json file? The sword is basically like the vanilla ones just red. No difference in textures. Thanks!  :)

Link to comment
Share on other sites

Where did you copy that from?

{
    "parent": "item/handheld",
    "textures": {
        "layer0": "items/iron_sword"
    }
}

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

I was trying to make a sword but I couldn't figure it out. I tried to copy the iron sword json but that just looks odd. It looks like I am holding any other regular item.

Current code I have:

{
    "parent": "builtin/generated",
    "textures": {
        "layer0": "ntm:items/InfusedSword"
    },
    "display": {
        "thirdperson": {
            "rotation": [ 0, 90, -35 ],
            "translation": [ 0, 1.25, -3.5 ],
            "scale": [ 0.85, 0.85, 0.85 ]
        },
        "firstperson": {
            "rotation": [ 0, -135, 25 ],
            "translation": [ 0, 4, 2 ],
            "scale": [ 1.7, 1.7, 1.7 ]
        }
    }
}

 

Can someone help me make an actual sword json file? The sword is basically like the vanilla ones just red. No difference in textures. Thanks!  :)

 

That model is from 1.8.x, 1.9 split the

firstperson

and

thirdperson

display transformations into left-/right-hand versions and added several models like

item/generated

and

item/handheld

that define the standard display transformations for you.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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