Hello, I'm trying to make a dimension mod for myself, and I'm having problems getting the portal block to render properly. It should look just like a normal minecraft nether portal block, but green instead of purple. Now I'm having some trouble with the assets folder, as it doesn't work when it's in the java or resources folder, but has to be in both. I'm sure I'm making some stupid mistake, but for now I'll just keep it in both. Here's some screenshots of what the looks like now:
This is it in the inventory.
This is it when it's placed. Notice that the block bounds are correct, but the texture isn't. Plus that it's the "no texture found" texture.
The error is this:
[17:00:33] [Client thread/ERROR] [FML]: Model definition for location treeland:treePortal#axis=x not found
[17:00:33] [Client thread/ERROR] [FML]: Model definition for location treeland:treePortal#axis=z not found
Here's some code, and JSON files:
Edit: Removed BlockTreePortal, doesn't look like it's allowed here by forum rules.
"Altering existing content and distribution of it is not allowed unless permission is given by the original content creator. This includes Mojang assets, mods, and resource packs." And anyway, I don't think the problem has anything to do with the code. As you can see in the error, it says "Model definition for location not found", and does not reference any line in the code. The problem is in the JSON files.
"Altering existing content and distribution of it is not allowed unless permission is given by the original content creator. This includes Mojang assets, mods, and resource packs." And anyway, I don't think the problem has anything to do with the code. As you can see in the error, it says "Model definition for location not found", and does not reference any line in the code. The problem is in the JSON files.
Hello, I'm trying to make a dimension mod for myself, and I'm having problems getting the portal block to render properly. It should look just like a normal minecraft nether portal block, but green instead of purple. Now I'm having some trouble with the assets folder, as it doesn't work when it's in the java or resources folder, but has to be in both. I'm sure I'm making some stupid mistake, but for now I'll just keep it in both. Here's some screenshots of what the looks like now:
This is it in the inventory.
This is it when it's placed. Notice that the block bounds are correct, but the texture isn't. Plus that it's the "no texture found" texture.
The error is this:
[17:00:33] [Client thread/ERROR] [FML]: Model definition for location treeland:treePortal#axis=x not found
[17:00:33] [Client thread/ERROR] [FML]: Model definition for location treeland:treePortal#axis=z not found
Here's some code, and JSON files:
Edit: Removed BlockTreePortal, doesn't look like it's allowed here by forum rules.
assets\treeland\blockstates\treePortal.json
{
"variants": {
"axis=z": { "model": "treeland:treePortal_ew" },
"axis=x": { "model": "treeland:treePortal_ns" }
}
}
assets\treeland\models\item\treePortal.json
{
"parent": "treeland:block/treePortal",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}
assets\treeland\models\block (all the 3 treePortal files. not sure if all of them are neccesary)
treePortal.json:
{
"parent": "block/cube_all",
"textures": {
"all": "treeland:block/treeportal"
}
}
treePortal_ew.json:
{
"parent": "block/cube_all",
"textures": {
"portal": "treeland:block/treeportal"
},
"elements": [
{ "from": [ 6, 0, 0 ],
"to": [ 10, 16, 16 ],
"faces": {
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#portal" },
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#portal" }
}
}
]
}
treePortal_ns.json:
{
"parent": "block/cube_all",
"textures": {
"portal": "treeland:block/treeportal"
},
"elements": [
{ "from": [ 0, 0, 6 ],
"to": [ 16, 16, 10 ],
"faces": {
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#portal" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#portal" }
}
}
]
}
The png and the mcmeta file are located in assets/treeland/textures/block.
Like I said, I probably did a bunch of things wrong.
Thanks for the help
-Clust
I thought posting code is allowed in this forum. Without code, we can't do anything to help.
"Altering existing content and distribution of it is not allowed unless permission is given by the original content creator. This includes Mojang assets, mods, and resource packs." And anyway, I don't think the problem has anything to do with the code. As you can see in the error, it says "Model definition for location not found", and does not reference any line in the code. The problem is in the JSON files.
oops, I didn't see the error log