I found a person who posted how to change code with .json files in resource packs to make items look bigger in your hand, but I would like to know how to do the same thing with the appearance of the item when it's on the ground (for map making purposes). Can someone show me how to do this? The code I found to change hand display is down below, if there is a way to go off of that.
{
"parent": "item/generated",
"display": {
"thirdperson_righthand": {
"rotation": [ 0, -90, 55 ],
"translation": [ 0, 4.0, 0.5 ],
"scale": [ 2, 2, 2 ]
},
"thirdperson_lefthand": {
"rotation": [ 0, 90, -55 ],
"translation": [ 0, 4.0, 0.5 ],
"scale": [ 2, 2, 2 ]
},
"firstperson_righthand": {
"rotation": [ 0, -90, 25 ],
"translation": [ 1.13, 3.2, 1.13 ],
"scale": [ 2, 2, 2 ]
},
"firstperson_lefthand": {
"rotation": [ 0, 90, -25 ],
"translation": [ 1.13, 3.2, 1.13 ],
"scale": [ 2, 2, 2 ]
}
},
"textures": {
"layer0": "items/diamond_sword"
}
}
Best Answer
This is the parent class of blocks (
../models/block/block.json
), which has more options for displaying them. You could use these settings for specific items or add them to their parent class.You can add parent properties (block/item class for example) to child elements (a specific block/item) in order to overrule them. Even if they are not in the child's json file you can put them there in order to make your changes. You could even add more settings to the block/item class, if the base interface of them supports them.
An example chain of command (from child to parent) would be:
item/crafting_table
<-block/crafting_table
<-block/cube
<-block/block
Changes to
block/block
would apply to (inherited by) the whole chain, while changes toitem/crafting_table
will only apply to this item type.How to use the info provided above
Beginners guide: resizing items
To get started you need the following tools (they're all free):
If you don't have any JSON files...
%appdata%/.minecraft
)../versions/1.x.x/1.x.x.jar
) with 7-Zip.assets\minecraft\models
, which should be two folders (block
&item
). They contain all the JSON files you need.Ok, you're good to go. As described above, you'll need some extra properties from the parent class. I'm using a crafting table, since I already used it as example.
block/block.json
and copy thedisplay
block into your clipboard.block/crafting_table.json
in my example)Paste the code you copied into this file and make your changes. Your file should end up like this:
Code blocks of the same hierarchy are separated with a comma, so make sure you have one in this part:
Save the file(s) when you're done.
(Yes, I forgot the comma)
Now where to put the newly created item enhancements?
We'll need 7-Zip again.
assets
on your desktop or any other desired location.assets
, create the same folder structure you find in the extracted one:- minecraft -- models --- block --- item (if applicable)
Create a file named
pack.mcmeta
with the following code:Create a ZIP archive with 7-Zip with
assets
as its base and thepack.mcmeta
file right next to it. If you open the ZIP file you should see the assets folder and the pack file right there..minecraft/resourcepacks
folder and start minecraftOnce you have done all this, the next steps will be easier. You can just drag and drop newly edited files into your existing archive in your resourcepacks folder. There is no need to (un-)zip everything all over again.