1

Help changing size and position of custom model

NashRadical 11/29/19 10:45 pm
166
12/6/2019 3:27 pm
I've been working on a custom data pack that adds a scythe. It is pretty simple, but it is the first one I have ever done. I've finished all the functions, and am now adding a texture. I used this tutorial to add custom textures via an NBT tag, and whenever I try to add code to change the sizing and position, it turns into the pink and black invalid texture block.

This is my code right now.
{
"parent": "item/handheld",
"textures": {
"layer0": "item/carrot_on_a_stick/1"
}
"display": {
"thirdperson_righthand": {
"rotation": [ 0, 60, 0 ],
"translation": [ 11, 17, -2 ],
"scale": [ 1, 1, 1 ]
},
"thirdperson_lefthand": {
"rotation": [ 0, 60, 0 ],
"translation": [ 3, 17, 12 ],
"scale": [ 1, 1, 1 ]
},
"firstperson_righthand": {
"rotation": [ 0, -90, 25 ],
"translation": [ -3, 17, 1],
"scale": [ 1, 1, 1 ]
},
"firstperson_lefthand": {
"rotation": [ 0, 90, -25 ],
"translation": [ 13, 17, 1],
"scale": [ 1, 1, 1 ]
},
"gui": {
"rotation": [ 15, -25, -5 ],
"translation": [ 2, 3, 0 ],
"scale": [ 0.65, 0.65, 0.65 ]
},
"fixed": {
"rotation": [ 0, 180, 0 ],
"translation": [ -2, 4, -5],
"scale":[ 0.5, 0.5, 0.5]
},
"ground": {
"rotation": [ 0, 0, 0 ],
"translation": [ 4, 4, 2],
"scale":[ 0.25, 0.25, 0.25]
}
},
"overrides": [
{ "predicate": { "custom_model_data": 1}, "model": "item/carrot_on_a_stick/1"}
}


It works fine until I add the display section. (I've gotten overrides to work)
Posted by
NashRadical
Level 1 : New Miner
0

  Have something to say?

JoinSign in

1

unnamedDE
12/06/2019 3:27 pm
Level 50 : Grandmaster Technomancer
You missed a comma after "textures". It should be:

"textures": {
  ...
},
1

Welcome