Jump to content

Recommended Posts

Posted

Hey, I need help making the item icon for my custom modeled block, but it's not coming out as I wanted. It comes out as this

First Person

width=800 height=425http://i1319.photobucket.com/albums/t661/Nova_Leary/Nile%20CraftingTable%20Item%20View%201st%20Person_zpsb1ku68wh.png[/img]

 

Third Person

width=800 height=420http://i1319.photobucket.com/albums/t661/Nova_Leary/Nile%20CraftingTable%20Item%20View%203rd%20Person_zpskqma5rw7.png[/img]

 

Inventory View

width=800 height=427http://i1319.photobucket.com/albums/t661/Nova_Leary/Nile%20CraftingTable%20Item%20View_zpsmbjnjpiu.png[/img]

 

Here is my textures on Github: https://github.com/NovaViper/ZeroQuest/tree/master/src/main/resources/assets/zero_quest/textures/blocks/nileTable

 

Block model json

{
    "textures": {
        "TablePart": "zero_quest:blocks/nileTable/part",
        "TableTop": "zero_quest:blocks/nileTable/top",
        "particle": "zero_quest:blocks/nileTable/particle"
    },
    "elements": [
        {
            "from": [ 0, 0, 0 ],
            "to": [ 16, 3, 16 ],
            "__comment": "Base",
            "faces": {
                "north": { "uv": [ 0, 0, 16, 16 ], "texture": "#TablePart"},
                "south": { "uv": [ 0, 0, 16, 16 ], "texture": "#TablePart"},
                "east": { "uv": [ 0, 0, 16, 16 ], "texture": "#TablePart"},
                "west": { "uv": [ 0, 0, 16, 16 ], "texture": "#TablePart"},
                "up": { "uv": [ 0, 0, 16, 16 ], "texture": "#TablePart"},
                "down": { "uv": [ 0, 0, 16, 16 ], "texture": "#TablePart"}
            }
        },
        {
            "from": [ 2, 3, 2 ],
            "to": [ 14, 10, 14 ],
            "__comment": "Pole",
            "faces": {
                "north": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},
                "south": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},
                "east": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},
                "west": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},
                "up": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},
                "down": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"}
            }
        },
        {
            "from": [ 0, 9, 0 ],
            "to": [ 16, 15, 16 ],
            "__comment": "Top",
            "faces": {
                "north": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},
                "south": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},
                "east": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},
                "west": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},
                "up": { "uv": [ 0, 0, 0, 0 ], "texture": "#TableTop"},
                "down": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"}
            }
        }
    ]
}

 

Item model json

{
    "parent": "zero_quest:block/crafting_table_nile",
    "display": {
        "thirdperson": {
            "rotation": [ -90, 0, 0 ],
            "translation": [ 0, 1, -3 ],
            "scale": [ 0.55, 0.55, 0.55 ]
        },
        "firstperson": {
            "rotation": [ 0, -135, 25 ],
            "translation": [ 0, 4, 2 ],
            "scale": [ 1.7, 1.7, 1.7 ]
        }
    }
}

Main Developer and Owner of Zero Quest

Visit the Wiki for more information

If I helped anyone, please give me a applaud and a thank you!

Posted

It would help if we knew what you wanted it to come out as. I'm assuming you want it to be smaller in first person, in which case you need to turn down the firstperson scale in your item .json.  If that still isn't to your liking, fiddle around with the item .json until you like it. You'll learn how it works as you go.

Posted

Main Developer and Owner of Zero Quest

Visit the Wiki for more information

If I helped anyone, please give me a applaud and a thank you!

Posted

I see; rotation and texture problems. For the rotation, you'll have to edit the firstperson rotation of your item .json util you like it. In your model json you specified a one-pixel section of your texture to render on each side of the voxel. So instead of

 

{

            "from": [ 0, 9, 0 ],

            "to": [ 16, 15, 16 ],

            "__comment": "Top",

            "faces": {

                "north": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},

                "south": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},

                "east": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},

                "west": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},

                "up": { "uv": [ 0, 0, 0, 0 ], "texture": "#TableTop"},

                "down": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"}

            }

        }

 

try

 

{

            "from": [ 0, 9, 0 ],

            "to": [ 16, 15, 16 ],

            "__comment": "Top",

            "faces": {

                "north": { "uv": [ 0, 0, 16, 6 ], "texture": "#TablePart"},

                "south": { "uv": [ 0, 0, 16, 6 ], "texture": "#TablePart"},

                "east": { "uv": [ 0, 0, 16, 6 ], "texture": "#TablePart"},

                "west": { "uv": [ 0, 0, 16, 6 ], "texture": "#TablePart"},

                "up": { "uv": [ 0, 0, 16, 16 ], "texture": "#TableTop"},

                "down": { "uv": [ 0, 0, 16, 16 ], "texture": "#TablePart"}

            }

        }

 

(I may have gotten the north/south/east/west Y parts wrong, you'll have to play with it and see what works)

Posted

Also, I suggest you learn how to use this program. It's helped me a ton with making models for my own mod.

 

http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-tools/1265906-tool-mc-model-maker-design-custom-block-models

 

I've used that tool to get the model, but for some reason I cannot get the 3D viewer to come up, Im using Java 8 and my computer is Windows 7 64 bit

Main Developer and Owner of Zero Quest

Visit the Wiki for more information

If I helped anyone, please give me a applaud and a thank you!

Posted

I had to get off of my computer, so I won't be able to test it for a few hours I think. I'll let you know when it works

Main Developer and Owner of Zero Quest

Visit the Wiki for more information

If I helped anyone, please give me a applaud and a thank you!

Posted

That works, but the bottom parts don't render the parts like the top

 

width=800 height=413http://i1319.photobucket.com/albums/t661/Nova_Leary/2015-05-23_19.22.04_zpsqnrztycu.png[/img]

 

json file

{
    "textures": {
        "TablePart": "zero_quest:blocks/nileTable/part",
        "TableTop": "zero_quest:blocks/nileTable/top",
        "TableSide": "zero_quest:blocks/nileTable/side",
        "particle": "zero_quest:blocks/nileTable/particle"
    },
    "elements": [
        {
            "from": [ 0, 0, 0 ],
            "to": [ 16, 3, 16 ],
            "__comment": "Base",
            "faces": {
                "north": { "uv": [ 0, 0, 16, 16 ], "texture": "#TablePart"},
                "south": { "uv": [ 0, 0, 16, 16 ], "texture": "#TablePart"},
                "east": { "uv": [ 0, 0, 16, 16 ], "texture": "#TablePart"},
                "west": { "uv": [ 0, 0, 16, 16 ], "texture": "#TablePart"},
                "up": { "uv": [ 0, 0, 16, 16 ], "texture": "#TablePart"},
                "down": { "uv": [ 0, 0, 16, 16 ], "texture": "#TablePart"}
            }
        },
        {
            "from": [ 2, 3, 2 ],
            "to": [ 14, 10, 14 ],
            "__comment": "Pole",
            "faces": {
                "north": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},
                "south": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},
                "east": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},
                "west": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},
                "up": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"},
                "down": { "uv": [ 0, 0, 0, 0 ], "texture": "#TablePart"}
            }
        },
        {
            "from": [ 0, 9, 0 ],
            "to": [ 16, 15, 16 ],
            "__comment": "Top",
            "faces": {
                "north": { "uv": [ 0, 0, 16, 6 ], "texture": "#TableSide"},
                "south": { "uv": [ 0, 0, 16, 6 ], "texture": "#TableSide"},
                "east": { "uv": [ 0, 0, 16, 6 ], "texture": "#TableSide"},
                "west": { "uv": [ 0, 0, 16, 6 ], "texture": "#TableSide"},
                "up": { "uv": [ 0, 0, 16, 16 ], "texture": "#TableTop"},
                "down": { "uv": [ 0, 0, 16, 16 ], "texture": "#TablePart"}
            }
        }
    ]
}

Main Developer and Owner of Zero Quest

Visit the Wiki for more information

If I helped anyone, please give me a applaud and a thank you!

Posted

Nvm! I fixed it and also, I want it to sit upward instead of on the side, like on the pictures posted already

Main Developer and Owner of Zero Quest

Visit the Wiki for more information

If I helped anyone, please give me a applaud and a thank you!

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.