Change block's or item's texture in hotbar

Started by Mex67_TomPlasek on Tue, 07/24/2018 - 18:39

Topic category: Help with MCreator software

Last seen on 21:01, 18. May 2019
Joined Jul 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Change block's or item's texture in hotbar
Tue, 07/24/2018 - 18:39

Hello

I would want to know if there's a way to change the texture of block/item in hotbar. MCreator automatically creates the texture with side view of the block, but I would want to change it to "Vannila like", by that I mean 3D perspective. (Like wool)

 

Thanks for help and sorry if I have bad English (D:)

 

Last seen on 00:36, 3. Mar 2020
Joined Sep 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
It is actually 3d in…
Tue, 07/24/2018 - 18:59

It is actually 3d in minecraft

Last seen on 19:10, 28. Oct 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
In mcreator you see only the…
Thu, 07/26/2018 - 06:41

In mcreator you see only the bottom texture of the block when editing mod elements, but the block is rendered differently in minecraft:

If the block is cubic it's rendered like all normal blocks

If the block has cross model it renders the only texture of that block

If the block has custom model it renders it weirdly

 

You can change the rendering of a block by its json file, however it seems that it can't be done with the recent versions of mcreator

Last seen on 23:57, 20. Aug 2020
Joined Apr 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
add this to the .json (find…
Thu, 07/26/2018 - 09:20

add this to the .json (find it in C:\Pylo\MCreator178\user\json\models\item\(item name).json

        },
        "gui": {
            "rotation": [ 30, 225, 0 ],
            "translation": [ 0, 0, 0],
            "scale":[ 0.625, 0.625, 0.625 ]
 

Hewover, in hand it still looks huge, I don't know how to fix it

Last seen on 19:10, 28. Oct 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can also make it have…
Thu, 07/26/2018 - 13:52

You can also make it have the model of an item when in hand (like cauldrons and hoppers) by copying the code of item json models and changing the id for the texture to render

Last seen on 23:57, 20. Aug 2020
Joined Apr 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I know that I can make…
Thu, 07/26/2018 - 14:27

I know that I can make blocks look like items, but I want them to look like blocks, but not so huge like They are by default

Last seen on 22:46, 18. Sep 2020
Joined Mar 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Add this Code to your .json…
Thu, 07/26/2018 - 16:06

Add this Code to your .json File, before you use it in MCreator.

 

{
    "display": {
        "gui": {
            "rotation": [ 30, 225, 0 ],
            "translation": [ 0, 0, 0],
            "scale":[ 0.625, 0.625, 0.625 ]
        },
        "ground": {
            "rotation": [ 0, 0, 0 ],
            "translation": [ 0, 3, 0],
            "scale":[ 0.25, 0.25, 0.25 ]
        },
        "fixed": {
            "rotation": [ 0, 0, 0 ],
            "translation": [ 0, 0, 0],
            "scale":[ 0.5, 0.5, 0.5 ]
        },
        "thirdperson_righthand": {
            "rotation": [ 75, 45, 0 ],
            "translation": [ 0, 2.5, 0],
            "scale": [ 0.375, 0.375, 0.375 ]
        },
        "firstperson_righthand": {
            "rotation": [ 0, 45, 0 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 0.40, 0.40, 0.40 ]
        },
        "firstperson_lefthand": {
            "rotation": [ 0, 225, 0 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 0.40, 0.40, 0.40 ]
        }
    }
}

 

You can change some Parameters if you want:

gui = how the Block should appear in the Inventory

ground = how the Block should appear on ground

fixed = how the Block should appear in an Itemframe

thirdperson_righthand, firstperson_righthand, firstperson_lefthand = how the Block should appear in all the held positions

 

Your final .json File should look like this (apart from the "elements"):

(This is a random Model I created a while ago)

 

{
    "__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)",
    "display": {

        "gui": {

            "rotation": [ 0, 180, 0 ],

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

            "scale":[ 0.9, 0.9, 0.9 ]

    	},
        
    	"ground": {

            "rotation": [ 0, 180, 0 ],

            "translation": [ 0, 2, 3.5],

            "scale":[ 0.5, 0.5, 0.5 ]

    	},

    	"fixed": {

            "rotation": [ 0, 0, 0 ],
            "translation": [ 0, 0, -6],

            "scale":[ 0.9, 0.9, 0.9 ]

    	},
        
        "thirdperson_righthand": {

            "rotation": [ 0, 0, 0 ],

            "translation": [ 0, 3, 1],

            "scale": [ 0.55, 0.55, 0.55 ]

 	    },
        
        "firstperson_righthand": {

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

            "translation": [ -1.13, 3.2, -1.13 ],
 
           "scale": [ 0.68, 0.68, 0.68 ]
   
    	},
        
    	"firstperson_lefthand": {

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

            "translation": [ -1.13, 3.2, -1.13 ],

            "scale": [ 0.68, 0.68, 0.68 ]

    	}

    },
    "textures": {
        "0": "blocks/ladder",
	"particle": "blocks/ladder"
    },
    "elements": [
        {
            "name": "Strebe1",
            "from": [ 1.0, 13.0, 14.0 ], 
            "to": [ 15.0, 15.0, 15.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 1.0, 1.0, 15.0, 3.0 ] },
                "east": { "texture": "#0", "uv": [ 14.0, 1.0, 15.0, 3.0 ] },
                "south": { "texture": "#0", "uv": [ 1.0, 1.0, 15.0, 3.0 ] },
                "west": { "texture": "#0", "uv": [ 1.0, 1.0, 2.0, 3.0 ] },
                "up": { "texture": "#0", "uv": [ 1.0, 5.0, 15.0, 6.0 ] },
                "down": { "texture": "#0", "uv": [ 1.0, 6.0, 15.0, 7.0 ] }
            }
        },
        {
            "name": "Strebe2",
            "from": [ 1.0, 9.0, 14.0 ], 
            "to": [ 15.0, 11.0, 15.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 1.0, 5.0, 15.0, 7.0 ] },
                "east": { "texture": "#0", "uv": [ 14.0, 5.0, 15.0, 7.0 ] },
                "south": { "texture": "#0", "uv": [ 1.0, 5.0, 15.0, 7.0 ] },
                "west": { "texture": "#0", "uv": [ 1.0, 5.0, 2.0, 7.0 ] },
                "up": { "texture": "#0", "uv": [ 1.0, 9.0, 15.0, 10.0 ] },
                "down": { "texture": "#0", "uv": [ 1.0, 10.0, 15.0, 11.0 ] }
            }
        },
        {
            "name": "Strebe3",
            "from": [ 1.0, 5.0, 14.0 ], 
            "to": [ 15.0, 7.0, 15.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 1.0, 9.0, 15.0, 11.0 ] },
                "east": { "texture": "#0", "uv": [ 14.0, 9.0, 15.0, 11.0 ] },
                "south": { "texture": "#0", "uv": [ 1.0, 9.0, 15.0, 11.0 ] },
                "west": { "texture": "#0", "uv": [ 1.0, 9.0, 2.0, 11.0 ] },
                "up": { "texture": "#0", "uv": [ 1.0, 13.0, 15.0, 14.0 ] },
                "down": { "texture": "#0", "uv": [ 1.0, 14.0, 15.0, 15.0 ] }
            }
        },
        {
            "name": "Srebe4",
            "from": [ 1.0, 1.0, 14.0 ], 
            "to": [ 15.0, 3.0, 15.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 1.0, 13.0, 15.0, 15.0 ] },
                "east": { "texture": "#0", "uv": [ 14.0, 13.0, 15.0, 15.0 ] },
                "south": { "texture": "#0", "uv": [ 1.0, 13.0, 15.0, 15.0 ] },
                "west": { "texture": "#0", "uv": [ 1.0, 13.0, 2.0, 15.0 ] },
                "up": { "texture": "#0", "uv": [ 1.0, 1.0, 15.0, 2.0 ] },
                "down": { "texture": "#0", "uv": [ 1.0, 2.0, 15.0, 3.0 ] }
            }
        },
        {
            "name": "HalteStrebe1",
            "from": [ 2.0, 0.0, 15.0 ], 
            "to": [ 4.0, 16.0, 16.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 2.0, 0.0, 4.0, 16.0 ] },
                "east": { "texture": "#0", "uv": [ 2.0, 0.0, 3.0, 16.0 ] },
                "south": { "texture": "#0", "uv": [ 2.0, 0.0, 4.0, 16.0 ] },
                "west": { "texture": "#0", "uv": [ 3.0, 0.0, 4.0, 16.0 ] },
                "up": { "texture": "#0", "uv": [ 2.0, 0.0, 4.0, 1.0 ] },
                "down": { "texture": "#0", "uv": [ 2.0, 15.0, 4.0, 16.0 ] }
            }
        },
        {
            "name": "HalteStrebe2",
            "from": [ 12.0, 0.0, 15.0 ], 
            "to": [ 14.0, 16.0, 16.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 12.0, 0.0, 14.0, 16.0 ] },
                "east": { "texture": "#0", "uv": [ 12.0, 0.0, 13.0, 16.0 ] },
                "south": { "texture": "#0", "uv": [ 12.0, 0.0, 14.0, 16.0 ] },
                "west": { "texture": "#0", "uv": [ 13.0, 0.0, 14.0, 16.0 ] },
                "up": { "texture": "#0", "uv": [ 12.0, 0.0, 14.0, 1.0 ] },
                "down": { "texture": "#0", "uv": [ 12.0, 15.0, 14.0, 16.0 ], "rotation": 180 }
            }
        }
    ]
}

 

I suggest you to download notepad++ or else this will be realy difficult to edit.  

 

Last seen on 23:57, 20. Aug 2020
Joined Apr 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks so much dude! :)
Fri, 07/27/2018 - 13:45

Thanks so much dude! :)

Last seen on 22:46, 18. Sep 2020
Joined Mar 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I'm glad I could help!
Sat, 07/28/2018 - 11:34

I'm glad I could help!