Jump to content

Recommended Posts

Posted

I am despairing.

As you can see in this thread ( = http://www.minecraftforge.net/forum/index.php/topic,40447.0.html [by the way: unsolved] ) I've got a annoying problem I cannot solve.

 

My first problem: I'm creating shields and of course I want some animation for blocking. And of course I made a model for this. Sadly this model won't work. The  model for just holding is working perfectly but the "blocking"-model isn't working at all! :-[

Unfortunately Minecraft takes the standart "blocking"-model.

 

[Holding Model]

{
    "textures": {
        "0": "betterlife:items/shield_iron"
    },
    "display": {
        "thirdperson_righthand": {
            "rotation": [ 90, -75, 90 ],
            "translation": [ 2, -2, 1 ],
            "scale": [ 1, 1, 1 ]
        },
        "thirdperson_lefthand": {
            "rotation": [ 90, -75, 90 ],
            "translation": [ 2, -2, 1 ],
            "scale": [ 1, 1, 1 ]
        },
        "firstperson_righthand": {
            "rotation": [ 10, -15, -3 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 0.9, 0.9, 0.9 ]
        },
        "firstperson_lefthand": {
            "rotation": [ 10, -15, -3 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 0.9, 0.9, 0.9 ]
        },
        "gui": {
            "rotation": [ 0, 180, 0 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 1, 1, 1 ]
        }
    },
    "overrides": [
        {
            "predicate": {
                "blocking": 1
            },
            "model": "betterlife:item/shield_iron_blocking"
        }
    ],
    "elements": [
        {
            "name": "Border",
            "from": [ 7.0, 1.0, 7.0 ], 
            "to": [ 9.0, 2.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 7.0, 14.0, 9.0, 15.0 ] },
                "east": { "texture": "#0", "uv": [ 7.0, 14.0, 8.0, 15.0 ] },
                "south": { "texture": "#0", "uv": [ 7.0, 14.0, 9.0, 15.0 ] },
                "west": { "texture": "#0", "uv": [ 8.0, 14.0, 9.0, 15.0 ] },
                "up": { "texture": "#0", "uv": [ 7.0, 14.0, 9.0, 15.0 ] },
                "down": { "texture": "#0", "uv": [ 7.0, 14.0, 9.0, 15.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 5.0, 2.0, 7.0 ], 
            "to": [ 7.0, 3.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 9.0, 13.0, 11.0, 14.0 ] },
                "east": { "texture": "#0", "uv": [ 9.0, 13.0, 10.0, 14.0 ] },
                "south": { "texture": "#0", "uv": [ 9.0, 13.0, 11.0, 14.0 ] },
                "west": { "texture": "#0", "uv": [ 10.0, 13.0, 11.0, 14.0 ] },
                "up": { "texture": "#0", "uv": [ 9.0, 13.0, 11.0, 14.0 ] },
                "down": { "texture": "#0", "uv": [ 9.0, 13.0, 11.0, 14.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 9.0, 2.0, 7.0 ], 
            "to": [ 11.0, 3.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 5.0, 13.0, 7.0, 14.0 ] },
                "east": { "texture": "#0", "uv": [ 5.0, 13.0, 6.0, 14.0 ] },
                "south": { "texture": "#0", "uv": [ 5.0, 13.0, 7.0, 14.0 ] },
                "west": { "texture": "#0", "uv": [ 6.0, 13.0, 7.0, 14.0 ] },
                "up": { "texture": "#0", "uv": [ 5.0, 13.0, 7.0, 14.0 ] },
                "down": { "texture": "#0", "uv": [ 5.0, 13.0, 7.0, 14.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 4.0, 3.0, 7.0 ], 
            "to": [ 5.0, 4.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 11.0, 12.0, 12.0, 13.0 ] },
                "east": { "texture": "#0", "uv": [ 11.0, 12.0, 12.0, 13.0 ] },
                "south": { "texture": "#0", "uv": [ 11.0, 12.0, 12.0, 13.0 ] },
                "west": { "texture": "#0", "uv": [ 11.0, 12.0, 12.0, 13.0 ] },
                "up": { "texture": "#0", "uv": [ 11.0, 12.0, 12.0, 13.0 ] },
                "down": { "texture": "#0", "uv": [ 11.0, 12.0, 12.0, 13.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 11.0, 3.0, 7.0 ], 
            "to": [ 12.0, 4.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 4.0, 12.0, 5.0, 13.0 ] },
                "east": { "texture": "#0", "uv": [ 4.0, 12.0, 5.0, 13.0 ] },
                "south": { "texture": "#0", "uv": [ 4.0, 12.0, 5.0, 13.0 ] },
                "west": { "texture": "#0", "uv": [ 4.0, 12.0, 5.0, 13.0 ] },
                "up": { "texture": "#0", "uv": [ 4.0, 12.0, 5.0, 13.0 ] },
                "down": { "texture": "#0", "uv": [ 4.0, 12.0, 5.0, 13.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 3.0, 4.0, 7.0 ], 
            "to": [ 4.0, 7.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 12.0, 9.0, 13.0, 12.0 ] },
                "east": { "texture": "#0", "uv": [ 12.0, 9.0, 13.0, 12.0 ] },
                "south": { "texture": "#0", "uv": [ 12.0, 9.0, 13.0, 12.0 ] },
                "west": { "texture": "#0", "uv": [ 12.0, 9.0, 13.0, 12.0 ] },
                "up": { "texture": "#0", "uv": [ 13.0, 9.0, 12.0, 10.0 ] },
                "down": { "texture": "#0", "uv": [ 12.0, 11.0, 13.0, 12.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 12.0, 4.0, 7.0 ], 
            "to": [ 13.0, 7.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 3.0, 9.0, 4.0, 12.0 ] },
                "east": { "texture": "#0", "uv": [ 3.0, 9.0, 4.0, 12.0 ] },
                "south": { "texture": "#0", "uv": [ 3.0, 9.0, 4.0, 12.0 ] },
                "west": { "texture": "#0", "uv": [ 3.0, 9.0, 4.0, 12.0 ] },
                "up": { "texture": "#0", "uv": [ 3.0, 9.0, 4.0, 10.0 ] },
                "down": { "texture": "#0", "uv": [ 3.0, 11.0, 4.0, 12.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 2.0, 7.0, 7.0 ], 
            "to": [ 3.0, 10.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 13.0, 6.0, 14.0, 9.0 ] },
                "east": { "texture": "#0", "uv": [ 13.0, 6.0, 14.0, 9.0 ] },
                "south": { "texture": "#0", "uv": [ 13.0, 6.0, 14.0, 9.0 ] },
                "west": { "texture": "#0", "uv": [ 13.0, 6.0, 14.0, 9.0 ] },
                "up": { "texture": "#0", "uv": [ 13.0, 6.0, 14.0, 7.0 ] },
                "down": { "texture": "#0", "uv": [ 13.0, 8.0, 14.0, 9.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 13.0, 7.0, 7.0 ], 
            "to": [ 14.0, 10.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 2.0, 6.0, 3.0, 9.0 ] },
                "east": { "texture": "#0", "uv": [ 2.0, 6.0, 3.0, 9.0 ] },
                "south": { "texture": "#0", "uv": [ 2.0, 6.0, 3.0, 9.0 ] },
                "west": { "texture": "#0", "uv": [ 2.0, 6.0, 3.0, 9.0 ] },
                "up": { "texture": "#0", "uv": [ 2.0, 6.0, 3.0, 7.0 ] },
                "down": { "texture": "#0", "uv": [ 2.0, 8.0, 3.0, 9.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 1.0, 10.0, 7.0 ], 
            "to": [ 2.0, 12.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 14.0, 4.0, 15.0, 6.0 ] },
                "east": { "texture": "#0", "uv": [ 14.0, 4.0, 15.0, 6.0 ] },
                "south": { "texture": "#0", "uv": [ 14.0, 4.0, 15.0, 6.0 ] },
                "west": { "texture": "#0", "uv": [ 14.0, 4.0, 15.0, 6.0 ] },
                "up": { "texture": "#0", "uv": [ 14.0, 4.0, 15.0, 5.0 ] },
                "down": { "texture": "#0", "uv": [ 14.0, 5.0, 15.0, 6.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 14.0, 10.0, 7.0 ], 
            "to": [ 15.0, 12.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 1.0, 4.0, 2.0, 6.0 ] },
                "east": { "texture": "#0", "uv": [ 1.0, 4.0, 2.0, 6.0 ] },
                "south": { "texture": "#0", "uv": [ 1.0, 4.0, 2.0, 6.0 ] },
                "west": { "texture": "#0", "uv": [ 1.0, 4.0, 2.0, 6.0 ] },
                "up": { "texture": "#0", "uv": [ 1.0, 4.0, 2.0, 5.0 ] },
                "down": { "texture": "#0", "uv": [ 1.0, 4.0, 2.0, 5.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 2.0, 12.0, 7.0 ], 
            "to": [ 4.0, 13.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 12.0, 3.0, 14.0, 4.0 ] },
                "east": { "texture": "#0", "uv": [ 12.0, 3.0, 13.0, 4.0 ] },
                "south": { "texture": "#0", "uv": [ 12.0, 3.0, 14.0, 4.0 ] },
                "west": { "texture": "#0", "uv": [ 13.0, 3.0, 14.0, 4.0 ] },
                "up": { "texture": "#0", "uv": [ 12.0, 3.0, 14.0, 4.0 ] },
                "down": { "texture": "#0", "uv": [ 12.0, 3.0, 14.0, 4.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 12.0, 12.0, 7.0 ], 
            "to": [ 14.0, 13.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 2.0, 3.0, 4.0, 4.0 ] },
                "east": { "texture": "#0", "uv": [ 2.0, 3.0, 3.0, 4.0 ] },
                "south": { "texture": "#0", "uv": [ 2.0, 3.0, 4.0, 4.0 ] },
                "west": { "texture": "#0", "uv": [ 3.0, 3.0, 4.0, 4.0 ] },
                "up": { "texture": "#0", "uv": [ 2.0, 3.0, 4.0, 4.0 ] },
                "down": { "texture": "#0", "uv": [ 2.0, 3.0, 4.0, 4.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 4.0, 13.0, 7.0 ], 
            "to": [ 7.0, 14.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 9.0, 2.0, 12.0, 3.0 ] },
                "east": { "texture": "#0", "uv": [ 9.0, 2.0, 10.0, 3.0 ] },
                "south": { "texture": "#0", "uv": [ 9.0, 2.0, 12.0, 3.0 ] },
                "west": { "texture": "#0", "uv": [ 11.0, 2.0, 12.0, 3.0 ] },
                "up": { "texture": "#0", "uv": [ 9.0, 2.0, 12.0, 3.0 ] },
                "down": { "texture": "#0", "uv": [ 9.0, 2.0, 12.0, 3.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 9.0, 13.0, 7.0 ], 
            "to": [ 12.0, 14.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 4.0, 2.0, 7.0, 3.0 ] },
                "east": { "texture": "#0", "uv": [ 4.0, 2.0, 5.0, 3.0 ] },
                "south": { "texture": "#0", "uv": [ 4.0, 2.0, 7.0, 3.0 ] },
                "west": { "texture": "#0", "uv": [ 6.0, 2.0, 7.0, 3.0 ] },
                "up": { "texture": "#0", "uv": [ 4.0, 2.0, 7.0, 3.0 ] },
                "down": { "texture": "#0", "uv": [ 4.0, 2.0, 7.0, 3.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 7.0, 14.0, 7.0 ], 
            "to": [ 9.0, 15.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 7.0, 1.0, 9.0, 2.0 ] },
                "east": { "texture": "#0", "uv": [ 7.0, 1.0, 8.0, 2.0 ] },
                "south": { "texture": "#0", "uv": [ 7.0, 1.0, 9.0, 2.0 ] },
                "west": { "texture": "#0", "uv": [ 8.0, 1.0, 9.0, 2.0 ] },
                "up": { "texture": "#0", "uv": [ 7.0, 1.0, 9.0, 2.0 ] },
                "down": { "texture": "#0", "uv": [ 7.0, 1.0, 9.0, 2.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 4.0, 4.0, 7.0 ], 
            "to": [ 12.0, 13.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 4.0, 3.0, 12.0, 12.0 ] },
                "east": { "texture": "#0", "uv": [ 4.0, 3.0, 5.0, 12.0 ] },
                "south": { "texture": "#0", "uv": [ 4.0, 3.0, 12.0, 12.0 ] },
                "west": { "texture": "#0", "uv": [ 11.0, 3.0, 12.0, 12.0 ] },
                "up": { "texture": "#0", "uv": [ 4.0, 3.0, 12.0, 4.0 ] },
                "down": { "texture": "#0", "uv": [ 4.0, 11.0, 12.0, 12.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 5.0, 3.0, 7.0 ], 
            "to": [ 11.0, 4.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 5.0, 12.0, 11.0, 13.0 ] },
                "east": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "south": { "texture": "#0", "uv": [ 5.0, 12.0, 11.0, 13.0 ] },
                "west": { "texture": "#0", "uv": [ 10.0, 12.0, 11.0, 13.0 ] },
                "up": { "texture": "#0", "uv": [ 5.0, 12.0, 11.0, 13.0 ] },
                "down": { "texture": "#0", "uv": [ 5.0, 12.0, 11.0, 13.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 7.0, 2.0, 7.0 ], 
            "to": [ 9.0, 3.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 7.0, 13.0, 9.0, 14.0 ] },
                "east": { "texture": "#0", "uv": [ 7.0, 13.0, 8.0, 14.0 ] },
                "south": { "texture": "#0", "uv": [ 7.0, 13.0, 9.0, 14.0 ] },
                "west": { "texture": "#0", "uv": [ 8.0, 13.0, 9.0, 14.0 ] },
                "up": { "texture": "#0", "uv": [ 7.0, 13.0, 9.0, 14.0 ] },
                "down": { "texture": "#0", "uv": [ 7.0, 13.0, 9.0, 14.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 7.0, 13.0, 7.0 ], 
            "to": [ 9.0, 14.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 7.0, 2.0, 9.0, 3.0 ] },
                "east": { "texture": "#0", "uv": [ 7.0, 2.0, 8.0, 3.0 ] },
                "south": { "texture": "#0", "uv": [ 7.0, 2.0, 9.0, 3.0 ] },
                "west": { "texture": "#0", "uv": [ 8.0, 2.0, 9.0, 3.0 ] },
                "up": { "texture": "#0", "uv": [ 7.0, 2.0, 9.0, 3.0 ] },
                "down": { "texture": "#0", "uv": [ 7.0, 2.0, 9.0, 3.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 3.0, 7.0, 7.0 ], 
            "to": [ 4.0, 12.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 12.0, 4.0, 13.0, 9.0 ] },
                "east": { "texture": "#0", "uv": [ 12.0, 4.0, 13.0, 9.0 ] },
                "south": { "texture": "#0", "uv": [ 12.0, 4.0, 13.0, 9.0 ] },
                "west": { "texture": "#0", "uv": [ 12.0, 4.0, 13.0, 9.0 ] },
                "up": { "texture": "#0", "uv": [ 12.0, 4.0, 13.0, 5.0 ] },
                "down": { "texture": "#0", "uv": [ 12.0, 8.0, 13.0, 9.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 2.0, 10.0, 7.0 ], 
            "to": [ 3.0, 12.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 13.0, 4.0, 14.0, 6.0 ] },
                "east": { "texture": "#0", "uv": [ 13.0, 4.0, 14.0, 6.0 ] },
                "south": { "texture": "#0", "uv": [ 13.0, 4.0, 14.0, 6.0 ] },
                "west": { "texture": "#0", "uv": [ 13.0, 4.0, 14.0, 6.0 ] },
                "up": { "texture": "#0", "uv": [ 13.0, 4.0, 14.0, 5.0 ] },
                "down": { "texture": "#0", "uv": [ 13.0, 5.0, 14.0, 6.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 12.0, 7.0, 7.0 ], 
            "to": [ 13.0, 12.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 3.0, 4.0, 4.0, 9.0 ] },
                "east": { "texture": "#0", "uv": [ 3.0, 4.0, 4.0, 9.0 ] },
                "south": { "texture": "#0", "uv": [ 3.0, 4.0, 4.0, 9.0 ] },
                "west": { "texture": "#0", "uv": [ 3.0, 4.0, 4.0, 9.0 ] },
                "up": { "texture": "#0", "uv": [ 3.0, 4.0, 4.0, 5.0 ] },
                "down": { "texture": "#0", "uv": [ 3.0, 8.0, 4.0, 9.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 13.0, 10.0, 7.0 ], 
            "to": [ 14.0, 12.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 2.0, 4.0, 3.0, 6.0 ] },
                "east": { "texture": "#0", "uv": [ 2.0, 4.0, 3.0, 6.0 ] },
                "south": { "texture": "#0", "uv": [ 2.0, 4.0, 3.0, 6.0 ] },
                "west": { "texture": "#0", "uv": [ 2.0, 4.0, 3.0, 6.0 ] },
                "up": { "texture": "#0", "uv": [ 2.0, 4.0, 3.0, 5.0 ] },
                "down": { "texture": "#0", "uv": [ 2.0, 5.0, 3.0, 6.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 9.0, 8.0, 8.0 ], 
            "to": [ 10.0, 9.0, 9.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "east": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "south": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "west": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "up": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "down": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 6.0, 8.0, 8.0 ], 
            "to": [ 7.0, 9.0, 9.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "east": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "south": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "west": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "up": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "down": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 6.0, 8.0, 9.0 ], 
            "to": [ 10.0, 9.0, 10.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "east": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "south": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "west": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "up": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "down": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] }
            }
        }
    ]
}

 

[blocking Model]

{    
    "textures": {
        "0": "betterlife:items/shield_iron"
    },
    "display": {
        "thirdperson_righthand": {
            "rotation": [ 45, 0, -10 ],
            "translation": [ 0, 4.0, 2.5 ],
            "scale": [ 0.85, 0.85, 0.85 ]
        },
        "thirdperson_lefthand": {
            "rotation": [ 45, 0, -10 ],
            "translation": [ 0, 4.0, 2.5 ],
            "scale": [ 0.85, 0.85, 0.85 ]
        },
        "firstperson_righthand": {
            "rotation": [ 45, 90, -10 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 0.68, 0.68, 0.68 ]
        },
        "firstperson_lefthand": {
            "rotation": [ 45, 90, -10 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 0.68, 0.68, 0.68 ]
        }
    }
}

 

[shieldIron.class]

package shield;

import java.util.List;

import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

public class ShieldIron extends ShieldBase {

public ShieldIron () {

	super( "shield_iron" , 340 , 13 , 2 * 60 * 20 , false );

} 

    public int getItemEnchantability () {
    	
    	return 0;
    	
    }

} 

 

Second problem: I made four textures for my golden bow and the models. When I pull the bow, only the standy-model and the first pulling-model get loaded.

 

[Models]

bow_gold.json
{
    "parent": "item/generated",
    "textures": {
        "layer0": "betterlife:items/bow_gold_standby"
    },
    "display": {
        "thirdperson_righthand": {
            "rotation": [ -80, 260, -40 ],
            "translation": [ -1, -2, 2.5 ],
            "scale": [ 0.9, 0.9, 0.9 ]
        },
        "thirdperson_lefthand": {
            "rotation": [ -80, -280, 40 ],
            "translation": [ -1, -2, 2.5 ],
            "scale": [ 0.9, 0.9, 0.9 ]
        },
        "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 ]
        }
    },
    "overrides": [
        {
            "predicate": {
                "pulling": 1
            },
            "model": "betterlife:item/bow_gold_pulling_0"
        },
        {
            "predicate": {
                "pulling": 1,
                "pull": 0.65
            },
            "model": "betterlife:item/bow_gold_pulling_1"
        },
        {
            "predicate": {
                "pulling": 1,
                "pull": 0.9
            },
            "model": "betterlife:item/bow_gold_pulling_2"
        }
    ]
}

bow_gold_pulling_0.json
{
    "parent": "betterlife:item/bow_gold",
    "textures": {
        "layer0": "betterlife:items/bow_gold_pulling_0"
    }
}

bow_gold_pulling_1.json
{
    "parent": "betterlife:item/bow_gold",
    "textures": {
        "layer0": "betterlife:items/bow_gold_pulling_1"
    }
}

bow_gold_pulling_2.json
{
    "parent": "betterlife:item/bow_gold",
    "textures": {
        "layer0": "betterlife:items/bow_gold_pulling_2"
    }
}

*Hug*

Posted

I'm not entirely sure what the issue with your shield is, but I can tell you that the

pull

property getter created by

ItemBow

only works for

Items.BOW

. You need to create your own property getter, like this one.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

After a while I got time to go through my code and my items/weapons etc.

 

I noticed that the blocking model isn't working and I want to get it to work!

 

[normal shield]

{
    "textures": {
        "0": "betterlife:items/shield_iron"
    },
    "display": {
        "thirdperson_righthand": {
            "rotation": [ 90, -75, 90 ],
            "translation": [ 2, -2, 1 ],
            "scale": [ 1, 1, 1 ]
        },
        "thirdperson_lefthand": {
            "rotation": [ 90, -75, 90 ],
            "translation": [ 2, -2, 1 ],
            "scale": [ 1, 1, 1 ]
        },
        "firstperson_righthand": {
            "rotation": [ 10, -15, -3 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 0.9, 0.9, 0.9 ]
        },
        "firstperson_lefthand": {
            "rotation": [ 10, -15, -3 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 0.9, 0.9, 0.9 ]
        },
        "gui": {
            "rotation": [ 0, 180, 0 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 1, 1, 1 ]
        }
    },
    "overrides": [
        {
            "predicate": {
                "betterlife:blocking": 1
            },
            "model": "betterlife:item/shield_iron_blocking"
        }
    ],
    "elements": [
        {
            "name": "Border",
            "from": [ 7.0, 1.0, 7.0 ], 
            "to": [ 9.0, 2.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 7.0, 14.0, 9.0, 15.0 ] },
                "east": { "texture": "#0", "uv": [ 7.0, 14.0, 8.0, 15.0 ] },
                "south": { "texture": "#0", "uv": [ 7.0, 14.0, 9.0, 15.0 ] },
                "west": { "texture": "#0", "uv": [ 8.0, 14.0, 9.0, 15.0 ] },
                "up": { "texture": "#0", "uv": [ 7.0, 14.0, 9.0, 15.0 ] },
                "down": { "texture": "#0", "uv": [ 7.0, 14.0, 9.0, 15.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 5.0, 2.0, 7.0 ], 
            "to": [ 7.0, 3.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 9.0, 13.0, 11.0, 14.0 ] },
                "east": { "texture": "#0", "uv": [ 9.0, 13.0, 10.0, 14.0 ] },
                "south": { "texture": "#0", "uv": [ 9.0, 13.0, 11.0, 14.0 ] },
                "west": { "texture": "#0", "uv": [ 10.0, 13.0, 11.0, 14.0 ] },
                "up": { "texture": "#0", "uv": [ 9.0, 13.0, 11.0, 14.0 ] },
                "down": { "texture": "#0", "uv": [ 9.0, 13.0, 11.0, 14.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 9.0, 2.0, 7.0 ], 
            "to": [ 11.0, 3.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 5.0, 13.0, 7.0, 14.0 ] },
                "east": { "texture": "#0", "uv": [ 5.0, 13.0, 6.0, 14.0 ] },
                "south": { "texture": "#0", "uv": [ 5.0, 13.0, 7.0, 14.0 ] },
                "west": { "texture": "#0", "uv": [ 6.0, 13.0, 7.0, 14.0 ] },
                "up": { "texture": "#0", "uv": [ 5.0, 13.0, 7.0, 14.0 ] },
                "down": { "texture": "#0", "uv": [ 5.0, 13.0, 7.0, 14.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 4.0, 3.0, 7.0 ], 
            "to": [ 5.0, 4.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 11.0, 12.0, 12.0, 13.0 ] },
                "east": { "texture": "#0", "uv": [ 11.0, 12.0, 12.0, 13.0 ] },
                "south": { "texture": "#0", "uv": [ 11.0, 12.0, 12.0, 13.0 ] },
                "west": { "texture": "#0", "uv": [ 11.0, 12.0, 12.0, 13.0 ] },
                "up": { "texture": "#0", "uv": [ 11.0, 12.0, 12.0, 13.0 ] },
                "down": { "texture": "#0", "uv": [ 11.0, 12.0, 12.0, 13.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 11.0, 3.0, 7.0 ], 
            "to": [ 12.0, 4.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 4.0, 12.0, 5.0, 13.0 ] },
                "east": { "texture": "#0", "uv": [ 4.0, 12.0, 5.0, 13.0 ] },
                "south": { "texture": "#0", "uv": [ 4.0, 12.0, 5.0, 13.0 ] },
                "west": { "texture": "#0", "uv": [ 4.0, 12.0, 5.0, 13.0 ] },
                "up": { "texture": "#0", "uv": [ 4.0, 12.0, 5.0, 13.0 ] },
                "down": { "texture": "#0", "uv": [ 4.0, 12.0, 5.0, 13.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 3.0, 4.0, 7.0 ], 
            "to": [ 4.0, 7.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 12.0, 9.0, 13.0, 12.0 ] },
                "east": { "texture": "#0", "uv": [ 12.0, 9.0, 13.0, 12.0 ] },
                "south": { "texture": "#0", "uv": [ 12.0, 9.0, 13.0, 12.0 ] },
                "west": { "texture": "#0", "uv": [ 12.0, 9.0, 13.0, 12.0 ] },
                "up": { "texture": "#0", "uv": [ 13.0, 9.0, 12.0, 10.0 ] },
                "down": { "texture": "#0", "uv": [ 12.0, 11.0, 13.0, 12.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 12.0, 4.0, 7.0 ], 
            "to": [ 13.0, 7.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 3.0, 9.0, 4.0, 12.0 ] },
                "east": { "texture": "#0", "uv": [ 3.0, 9.0, 4.0, 12.0 ] },
                "south": { "texture": "#0", "uv": [ 3.0, 9.0, 4.0, 12.0 ] },
                "west": { "texture": "#0", "uv": [ 3.0, 9.0, 4.0, 12.0 ] },
                "up": { "texture": "#0", "uv": [ 3.0, 9.0, 4.0, 10.0 ] },
                "down": { "texture": "#0", "uv": [ 3.0, 11.0, 4.0, 12.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 2.0, 7.0, 7.0 ], 
            "to": [ 3.0, 10.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 13.0, 6.0, 14.0, 9.0 ] },
                "east": { "texture": "#0", "uv": [ 13.0, 6.0, 14.0, 9.0 ] },
                "south": { "texture": "#0", "uv": [ 13.0, 6.0, 14.0, 9.0 ] },
                "west": { "texture": "#0", "uv": [ 13.0, 6.0, 14.0, 9.0 ] },
                "up": { "texture": "#0", "uv": [ 13.0, 6.0, 14.0, 7.0 ] },
                "down": { "texture": "#0", "uv": [ 13.0, 8.0, 14.0, 9.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 13.0, 7.0, 7.0 ], 
            "to": [ 14.0, 10.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 2.0, 6.0, 3.0, 9.0 ] },
                "east": { "texture": "#0", "uv": [ 2.0, 6.0, 3.0, 9.0 ] },
                "south": { "texture": "#0", "uv": [ 2.0, 6.0, 3.0, 9.0 ] },
                "west": { "texture": "#0", "uv": [ 2.0, 6.0, 3.0, 9.0 ] },
                "up": { "texture": "#0", "uv": [ 2.0, 6.0, 3.0, 7.0 ] },
                "down": { "texture": "#0", "uv": [ 2.0, 8.0, 3.0, 9.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 1.0, 10.0, 7.0 ], 
            "to": [ 2.0, 12.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 14.0, 4.0, 15.0, 6.0 ] },
                "east": { "texture": "#0", "uv": [ 14.0, 4.0, 15.0, 6.0 ] },
                "south": { "texture": "#0", "uv": [ 14.0, 4.0, 15.0, 6.0 ] },
                "west": { "texture": "#0", "uv": [ 14.0, 4.0, 15.0, 6.0 ] },
                "up": { "texture": "#0", "uv": [ 14.0, 4.0, 15.0, 5.0 ] },
                "down": { "texture": "#0", "uv": [ 14.0, 5.0, 15.0, 6.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 14.0, 10.0, 7.0 ], 
            "to": [ 15.0, 12.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 1.0, 4.0, 2.0, 6.0 ] },
                "east": { "texture": "#0", "uv": [ 1.0, 4.0, 2.0, 6.0 ] },
                "south": { "texture": "#0", "uv": [ 1.0, 4.0, 2.0, 6.0 ] },
                "west": { "texture": "#0", "uv": [ 1.0, 4.0, 2.0, 6.0 ] },
                "up": { "texture": "#0", "uv": [ 1.0, 4.0, 2.0, 5.0 ] },
                "down": { "texture": "#0", "uv": [ 1.0, 4.0, 2.0, 5.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 2.0, 12.0, 7.0 ], 
            "to": [ 4.0, 13.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 12.0, 3.0, 14.0, 4.0 ] },
                "east": { "texture": "#0", "uv": [ 12.0, 3.0, 13.0, 4.0 ] },
                "south": { "texture": "#0", "uv": [ 12.0, 3.0, 14.0, 4.0 ] },
                "west": { "texture": "#0", "uv": [ 13.0, 3.0, 14.0, 4.0 ] },
                "up": { "texture": "#0", "uv": [ 12.0, 3.0, 14.0, 4.0 ] },
                "down": { "texture": "#0", "uv": [ 12.0, 3.0, 14.0, 4.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 12.0, 12.0, 7.0 ], 
            "to": [ 14.0, 13.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 2.0, 3.0, 4.0, 4.0 ] },
                "east": { "texture": "#0", "uv": [ 2.0, 3.0, 3.0, 4.0 ] },
                "south": { "texture": "#0", "uv": [ 2.0, 3.0, 4.0, 4.0 ] },
                "west": { "texture": "#0", "uv": [ 3.0, 3.0, 4.0, 4.0 ] },
                "up": { "texture": "#0", "uv": [ 2.0, 3.0, 4.0, 4.0 ] },
                "down": { "texture": "#0", "uv": [ 2.0, 3.0, 4.0, 4.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 4.0, 13.0, 7.0 ], 
            "to": [ 7.0, 14.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 9.0, 2.0, 12.0, 3.0 ] },
                "east": { "texture": "#0", "uv": [ 9.0, 2.0, 10.0, 3.0 ] },
                "south": { "texture": "#0", "uv": [ 9.0, 2.0, 12.0, 3.0 ] },
                "west": { "texture": "#0", "uv": [ 11.0, 2.0, 12.0, 3.0 ] },
                "up": { "texture": "#0", "uv": [ 9.0, 2.0, 12.0, 3.0 ] },
                "down": { "texture": "#0", "uv": [ 9.0, 2.0, 12.0, 3.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 9.0, 13.0, 7.0 ], 
            "to": [ 12.0, 14.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 4.0, 2.0, 7.0, 3.0 ] },
                "east": { "texture": "#0", "uv": [ 4.0, 2.0, 5.0, 3.0 ] },
                "south": { "texture": "#0", "uv": [ 4.0, 2.0, 7.0, 3.0 ] },
                "west": { "texture": "#0", "uv": [ 6.0, 2.0, 7.0, 3.0 ] },
                "up": { "texture": "#0", "uv": [ 4.0, 2.0, 7.0, 3.0 ] },
                "down": { "texture": "#0", "uv": [ 4.0, 2.0, 7.0, 3.0 ] }
            }
        },
        {
            "name": "Border",
            "from": [ 7.0, 14.0, 7.0 ], 
            "to": [ 9.0, 15.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 7.0, 1.0, 9.0, 2.0 ] },
                "east": { "texture": "#0", "uv": [ 7.0, 1.0, 8.0, 2.0 ] },
                "south": { "texture": "#0", "uv": [ 7.0, 1.0, 9.0, 2.0 ] },
                "west": { "texture": "#0", "uv": [ 8.0, 1.0, 9.0, 2.0 ] },
                "up": { "texture": "#0", "uv": [ 7.0, 1.0, 9.0, 2.0 ] },
                "down": { "texture": "#0", "uv": [ 7.0, 1.0, 9.0, 2.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 4.0, 4.0, 7.0 ], 
            "to": [ 12.0, 13.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 4.0, 3.0, 12.0, 12.0 ] },
                "east": { "texture": "#0", "uv": [ 4.0, 3.0, 5.0, 12.0 ] },
                "south": { "texture": "#0", "uv": [ 4.0, 3.0, 12.0, 12.0 ] },
                "west": { "texture": "#0", "uv": [ 11.0, 3.0, 12.0, 12.0 ] },
                "up": { "texture": "#0", "uv": [ 4.0, 3.0, 12.0, 4.0 ] },
                "down": { "texture": "#0", "uv": [ 4.0, 11.0, 12.0, 12.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 5.0, 3.0, 7.0 ], 
            "to": [ 11.0, 4.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 5.0, 12.0, 11.0, 13.0 ] },
                "east": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "south": { "texture": "#0", "uv": [ 5.0, 12.0, 11.0, 13.0 ] },
                "west": { "texture": "#0", "uv": [ 10.0, 12.0, 11.0, 13.0 ] },
                "up": { "texture": "#0", "uv": [ 5.0, 12.0, 11.0, 13.0 ] },
                "down": { "texture": "#0", "uv": [ 5.0, 12.0, 11.0, 13.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 7.0, 2.0, 7.0 ], 
            "to": [ 9.0, 3.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 7.0, 13.0, 9.0, 14.0 ] },
                "east": { "texture": "#0", "uv": [ 7.0, 13.0, 8.0, 14.0 ] },
                "south": { "texture": "#0", "uv": [ 7.0, 13.0, 9.0, 14.0 ] },
                "west": { "texture": "#0", "uv": [ 8.0, 13.0, 9.0, 14.0 ] },
                "up": { "texture": "#0", "uv": [ 7.0, 13.0, 9.0, 14.0 ] },
                "down": { "texture": "#0", "uv": [ 7.0, 13.0, 9.0, 14.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 7.0, 13.0, 7.0 ], 
            "to": [ 9.0, 14.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 7.0, 2.0, 9.0, 3.0 ] },
                "east": { "texture": "#0", "uv": [ 7.0, 2.0, 8.0, 3.0 ] },
                "south": { "texture": "#0", "uv": [ 7.0, 2.0, 9.0, 3.0 ] },
                "west": { "texture": "#0", "uv": [ 8.0, 2.0, 9.0, 3.0 ] },
                "up": { "texture": "#0", "uv": [ 7.0, 2.0, 9.0, 3.0 ] },
                "down": { "texture": "#0", "uv": [ 7.0, 2.0, 9.0, 3.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 3.0, 7.0, 7.0 ], 
            "to": [ 4.0, 12.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 12.0, 4.0, 13.0, 9.0 ] },
                "east": { "texture": "#0", "uv": [ 12.0, 4.0, 13.0, 9.0 ] },
                "south": { "texture": "#0", "uv": [ 12.0, 4.0, 13.0, 9.0 ] },
                "west": { "texture": "#0", "uv": [ 12.0, 4.0, 13.0, 9.0 ] },
                "up": { "texture": "#0", "uv": [ 12.0, 4.0, 13.0, 5.0 ] },
                "down": { "texture": "#0", "uv": [ 12.0, 8.0, 13.0, 9.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 2.0, 10.0, 7.0 ], 
            "to": [ 3.0, 12.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 13.0, 4.0, 14.0, 6.0 ] },
                "east": { "texture": "#0", "uv": [ 13.0, 4.0, 14.0, 6.0 ] },
                "south": { "texture": "#0", "uv": [ 13.0, 4.0, 14.0, 6.0 ] },
                "west": { "texture": "#0", "uv": [ 13.0, 4.0, 14.0, 6.0 ] },
                "up": { "texture": "#0", "uv": [ 13.0, 4.0, 14.0, 5.0 ] },
                "down": { "texture": "#0", "uv": [ 13.0, 5.0, 14.0, 6.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 12.0, 7.0, 7.0 ], 
            "to": [ 13.0, 12.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 3.0, 4.0, 4.0, 9.0 ] },
                "east": { "texture": "#0", "uv": [ 3.0, 4.0, 4.0, 9.0 ] },
                "south": { "texture": "#0", "uv": [ 3.0, 4.0, 4.0, 9.0 ] },
                "west": { "texture": "#0", "uv": [ 3.0, 4.0, 4.0, 9.0 ] },
                "up": { "texture": "#0", "uv": [ 3.0, 4.0, 4.0, 5.0 ] },
                "down": { "texture": "#0", "uv": [ 3.0, 8.0, 4.0, 9.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 13.0, 10.0, 7.0 ], 
            "to": [ 14.0, 12.0, 8.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 2.0, 4.0, 3.0, 6.0 ] },
                "east": { "texture": "#0", "uv": [ 2.0, 4.0, 3.0, 6.0 ] },
                "south": { "texture": "#0", "uv": [ 2.0, 4.0, 3.0, 6.0 ] },
                "west": { "texture": "#0", "uv": [ 2.0, 4.0, 3.0, 6.0 ] },
                "up": { "texture": "#0", "uv": [ 2.0, 4.0, 3.0, 5.0 ] },
                "down": { "texture": "#0", "uv": [ 2.0, 5.0, 3.0, 6.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 9.0, 8.0, 8.0 ], 
            "to": [ 10.0, 9.0, 9.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "east": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "south": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "west": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "up": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "down": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 6.0, 8.0, 8.0 ], 
            "to": [ 7.0, 9.0, 9.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "east": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "south": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "west": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "up": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "down": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] }
            }
        },
        {
            "name": "Inside",
            "from": [ 6.0, 8.0, 9.0 ], 
            "to": [ 10.0, 9.0, 10.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "east": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "south": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "west": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "up": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] },
                "down": { "texture": "#0", "uv": [ 5.0, 12.0, 6.0, 13.0 ] }
            }
        }
    ]
}

 

[blocking]

{    
    "parent": "betterlife:item/shield_iron",
    "textures": {
        "layer0": "betterlife:items/shield_iron"
    },
    "display": {
        "thirdperson_righthand": {
            "rotation": [ 90, -75, 90 ],
            "translation": [ 2, -2, 1 ],
            "scale": [ 1, 1, 1 ]
        },
        "thirdperson_lefthand": {
            "rotation": [ 90, -75, 90 ],
            "translation": [ 2, -2, 1 ],
            "scale": [ 1, 1, 1 ]
        },
        "firstperson_righthand": {
            "rotation": [ 20, 15, 60 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 0.9, 0.9, 0.9 ]
        },
        "firstperson_lefthand": {
            "rotation": [ 10, -15, -3 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 0.9, 0.9, 0.9 ]
        }
    }
}

 

What am I doing wrong?

 

Thanks in advance

*Hug*

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • *** buffer overflow detected ***: terminated /usr/bin/forge-1.12.2d: line 162: 15787 Aborted                 (core dumped) ${SUDO_CMD} screen -S "${SESSION_NAME}" -Q select . > /dev/null Starting server...There are several suitable screens on:     14630.forge-1.12.2    (Detached)     15796.forge-1.12.2    (Detached) Use -S to specify a session How do i fix this issue?
    • Oh I forgot to update the title. I figured out the issue and I'm rather embarrassed to say that it was a file path issue. The game already knew I was accessing the achievements so I wasn't suppose to include advancements in the file path. Minecraft file paths have always confused me a little bit... ResourceLocation advancementId = new ResourceLocation( TheDeadRise.MODID,"adventure/spawntrigger");
    • Can someone help my with this? My forge server won't open and I'm not that good with this stuff. It gave me this error message:   C:\Users\apbeu\Desktop\Forge server>java -Xmx4G -Xms1G -jar server.jar nogui 2024-12-11 18:21:01,054 main WARN Advanced terminal features are not available in this environment [18:21:01] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.2.34, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, nogui] [18:21:01] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 8.1.3+8.1.3+main-8.1.x.c94d18ec starting: java version 21.0.4 by Oracle Corporation Exception in thread "main" java.lang.IllegalAccessError: class cpw.mods.modlauncher.SecureJarHandler (in unnamed module @0x402e37bc) cannot access class sun.security.util.ManifestEntryVerifier (in module java.base) because module java.base does not export sun.security.util to unnamed module @0x402e37bc         at cpw.mods.modlauncher.SecureJarHandler.lambda$static$1(SecureJarHandler.java:45)         at cpw.mods.modlauncher.api.LamdbaExceptionUtils.uncheck(LamdbaExceptionUtils.java:95)         at cpw.mods.modlauncher.SecureJarHandler.<clinit>(SecureJarHandler.java:45)         at cpw.mods.modlauncher.Launcher.lambda$new$6(Launcher.java:55)         at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)         at cpw.mods.modlauncher.api.TypesafeMap.computeIfAbsent(TypesafeMap.java:52)         at cpw.mods.modlauncher.api.TypesafeMap.computeIfAbsent(TypesafeMap.java:47)         at cpw.mods.modlauncher.Environment.computePropertyIfAbsent(Environment.java:62)         at cpw.mods.modlauncher.Launcher.<init>(Launcher.java:55)         at cpw.mods.modlauncher.Launcher.main(Launcher.java:66)         at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63)         at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60)         at net.minecraftforge.server.ServerMain.main(ServerMain.java:57) C:\Users\apbeu\Desktop\Forge server>pause
    • Here is the url for the crash report if anyone can help me, please. https://mclo.gs/KGn5LWy  
    • Every single time I try and open my modpack it crashes before the game fully opens and I don't know what is wrong. I open the crash logs but I don't understand what any of it means. What do I do?
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.