Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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!  :)

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.

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.

  • Author

I did not know there was item handheld. Anyway, Thanks a lot!

Guest
This topic is now closed to further replies.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.