Request, change item size without needing to lock code

Started by Catnip on

Topic category: Feature requests and ideas for MCreator

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Request, change item size without needing to lock code

One thing that I feel like would really benefit MCreator would be a way to change the scale of an item's default model in the interface for item creation. I am aware that there are ways to use blockbench, but that doesn't really work with the default Minecraft models. I am also aware that it is possible to add some code to one of the two .json files for the item to change the size. However, it is a little tedious to go through items after creating them, locate which .json file is the right one to edit (the order of the files in the code editor is inconsistent between items), and manually paste in the code. Also, the code needs to be locked, which means that the item can't be easily edited, and the repair item tag for it aren't always auto-generated. Lastly, when switching between Minecraft versions 1.21.1 and 1.21.4 the code breaks and all items need to be unlocked, have the code added to them, then relocked. Again, this is all a bit annoying, but still perfectly useable, so this isn't a huge priority.

I also want to thank the MCreator team for providing this incredibly useful free program, and for keeping it updated.

Also, for those interested, here is the code to change an item's size:

  },
"display": {
"ground": {
"rotation": [ 0, 0, 0 ],
"translation": [ 0, 7, 0],
"scale":[ 1.4, 1.4, 1.4 ]
},
"fixed": {
"rotation": [ 0, 0, 0 ],
"translation": [ 0, 7, 0],
"scale":[ 1.4, 1.4, 1.4 ]
},
"thirdperson_righthand": {
"rotation": [ 90, -90, 130 ],
"translation": [ 0, 7, 0],
"scale":[ 1.4, 1.4, 1.4 ]
},
"thirdperson_lefthand": {
"rotation": [ 90, 90, -130 ],
"translation": [ 0, 7, 0],
"scale":[ 1.4, 1.4, 1.4 ]
},
"firstperson_righthand": {
"rotation": [ 90, -90, 130 ],
"translation": [ 0, 7, 0],
"scale":[ 1.4, 1.4, 1.4 ]
},
"firstperson_lefthand": {
"rotation": [ 90, 90, -130 ],
"translation": [ 0, 7, 0],
"scale":[ 1.4, 1.4, 1.4 ]
}
}
}

you just paste it in after the line that is something like '"layer0": "mod_id:item/texture_name"' and you replace the parenthesis that are already there.