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

Good days

 

i speend all the afternoon resolving issues whith json files from mi mod and stuck whith this feature

 

normaly I used in mi json files for mi items this kind of code


    "display": {

        "thirdperson": {
            "rotation": [ 0, 0, 45 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 0.5, 0.5, 0.5 ]
        },
        "firstperson": {
            "rotation": [ 0, 0, 45 ],
            "translation": [ 0, 16, 0 ],
            "scale": [ 0.125, 0.125, 0.125 ]
        },
        "gui": {
            "rotation": [ 45, 22.5, 0 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 1.0, 1.0, 1.0 ]
        }
   }

 

to adjust the position and rotation of the item in the diferents modes, thirdperson, firstperson, and the way the item looks in the Inventory

 

but in this case the changes i made has no efect on position scale|translation|rotation for thirdperson and firstperson

 

only the gui values seems to work  to adjust the inventory icon rotation and position

 

 

#############################

they change this behaveour there is no other explanation, but now

¿ how do you adjust the scale|translation|rotation  of an item in this new schemme?

 

 

full json

{
    
    "textures": {

        "particle": "blocks/blocks/blocks/blocks/modmercenario:items/materiales/acero",
        "0": "modmercenario:items/materiales/aceroi",
        "1": "modmercenario:items/materiales/transparencia",
        "2": "modmercenario:items/materiales/acerob"

    },
   
    "elements": [
        {
            "name": "Element",
            "from": [ 2.0, 6.0, 6.0 ], 
            "to": [ 14.0, 10.0, 10.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "east": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "west": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "up": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "down": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }
            }
        },
    
        {
            "name": "Element",
            "from": [ 4.0, 6.0, 6.0 ], 
            "to": [ 12.0, 10.0, 10.0 ], 
            "faces": {
                "north": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "east": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "south": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "west": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "up": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "down": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }
            }
        },
    
        {
            "name": "Element",
            "from": [ 2.0, 6.0, 6.0 ], 
            "to": [ 14.0, 8.0, 10.0 ], 
            "faces": {
                "north": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "east": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "south": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "west": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "up": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "down": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }
            }
        },
    
        {
            "name": "Element",
            "from": [ 2.0, 6.0, 6.01 ], 
            "to": [ 4.82, 8.0, 9.99 ], 
            "rotation": { "origin": [ 2.0, 8.0, 8.0 ], "axis": "z", "angle": 45.0 },
            "faces": {
                "north": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "east": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "south": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "west": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "up": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "down": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }
            }
        },
    
        {
            "name": "Element",
            "from": [ 11.18, 6.0, 6.01 ], 
            "to": [ 14.0, 8.0, 9.99 ], 
            "rotation": { "origin": [ 14.0, 8.0, 8.0 ], "axis": "z", "angle": -45.0 },
            "faces": {
                "north": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "east": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "south": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "west": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "up": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "down": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }
            }
        }
    ],

    
    "display": {

        "thirdperson": {
            "rotation": [ 0, 0, 45 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 0.5, 0.5, 0.5 ]
        },
        "firstperson": {
            "rotation": [ 0, 0, 45 ],
            "translation": [ 0, 16, 0 ],
            "scale": [ 0.125, 0.125, 0.125 ]
        },
        "gui": {
            "rotation": [ 45, 22.5, 0 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 1.0, 1.0, 1.0 ]
        }
   }



   
}

 

thanks for readng

 

 

 

 

 

  • Author

sorry a found an example in vainilla bow json

 

 

    "display": {

        "thirdperson_righthand": {

            "rotation": [ -80, 260, -40 ],

            "translation": [ -1, -2, 2.5 ],

            "scale": [ 0.9, 0.9, 0.9 ]

        },

        "thirdperson_lefthand": {

            "rotation": [ -80, -280, 40 ],

            "translation": [ -1, -2, 2.5 ],

            "scale": [ 0.9, 0.9, 0.9 ]

        },

        "firstperson_righthand": {

            "rotation": [ 0, -90, 25 ],

            "translation": [ 1.13, 5.2, 1.13],

            "scale": [ 0.5, 0.5, 0.5 ]

        },

        "firstperson_lefthand": {

            "rotation": [ 0, 90, -25 ],

            "translation": [ 1.13, 5.2, 1.13],

            "scale": [ 0.5, 0.5, 0.5 ]

        },

 

        "gui": {

            "rotation": [ 45, 22.5, 0 ],

            "translation": [ 0, 0, 0 ],

            "scale": [ 1.0, 1.0, 1.0 ]

        }

  }

  • Author

ya  i wass thinking in made thath but first i have to fix the parental model

this is an ingot and i wanted to make a 3d model of an ingot at hand but its harder than it looks

 

 

 

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...

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.