Started by
Iman974
on
Topic category: Help with MCreator software
Hello, i'm using Mcreator 1.7.5 for Minecraft 1.11.2, and i can't get to what i want..
I made a block, loaded a .json file, selected 3 textures Mcreator asked me to, and clicked ok. But in game, only the first texture selected when i loaded the json file is rendered on ALL the faces, even if i put in the json file to render a texture at a peculiar face. In the build file models, i can see 2 files for my block : the one i loaded in, and another one which has as "parent" my model loaded. I join to this topic some screenshot. Please anyone can help me ?
What i see: In game
2 files in testenvironmentmod block model folder (to the left a file that mcreator added, and to the right my .json file) : files
Edited by Iman974 on Mon, 03/20/2017 - 07:50
Hello Iman, Save the .json file to a folder, and open it with "notepad" or anything else you want to open it with, and change inside it to (redberyl is what im using):
{
"parent": "block/cube_all",
"textures": {
"all": "blocks/redberyl"
}
}
After you add this, you change inside your MCreator to "Block render type: Custom", than "Custom 3D model type: JSON model definition" and the third one to "Click to Select: JSON: redberyl.json".
After you have done this change your Texture type to Single texture and only put it on the red field.
After this you can finish your block. And load up minecraft and it will look like a 3D block in Third person and as a 3D block inside the inventory / Creative tab.
@#1 Well, do i have to put in my .json file only what you wrote ? or the "elements" part can stay ? Because i tested what you told me to do, but i still only have one texture on all the faces. What i want is "hifiside" texture for down, up, west and east faces, "hifi_front" texture for north face and "hifi_back" texture for south face. Thank you for your quick reply anyway!
@#1.1 Oh i know what you mean, to get diffrent side like a log or souch do this:
{
"parent": "block/cube_column",
"textures": {
"end": "blocks/paleoakwood2",
"side": "blocks/paleoakwood"
}
}
The "end" part is Top/Bottom texture and "side" is the blocks for all the 4 sides.
Oh i see, i have to use already existing models (like cube_all or cube_column) but how can i have 3 different textures ? imagine a log but with one texture for the top and another for the bottom. Also, i have another question, how can i add culling to faces ? because in the .json i can only use the "parent" and "texture" tags (i think so ? adding the "face" tag won't work right ?). I'm getting closer to my answer !
I managed to make it work ! But "cullface" doesn't work and i have no idea why. This is what i did :
.json file to load in Mcreator: JSON_CUSTOM ("parent" : "block/block" is to put the right scale of the block in the inventory, if you remove it, the block will be huge in hand)
Then i exported my mod and changed manually the .json file that Mcreator created (not the custom one): JSON_MCREATOR
However, there still remain one problem, "cullface" doesn't work, even if you can see i put it in my .json.
To resume all that i made my own "cube.json" file then linked it to the Mcreator .json file.
Well, i'm going to put this topic to solved, because i found an even easier way :
{
"parent": "block/cube",
"textures": {
"particle": "#side",
"down": "#side",
"up": "#side",
"north": "#side",
"east": "#back",
"south": "#side",
"west": "#front"
}
}
Then, in the not custom .json file, define what you put as texture:
{
"parent": "aperturemod:block/hifispeaker_custom",
"textures": {
"particle": "blocks/hifiside","side": "blocks/hifiside","front":"blocks/hifi_front","back":"blocks/hifi_back"
}
}
For the cullface, it is located in the blocks/cube file, so all the face are cullfaced. However, for example if you put a custom block on your custom block (the same one), the cullface won't work, and the face will be rendered... But if you put a stone block on the cutsom block, it will work. I can't explain that... Looks like minecraft doesn't recognize custom blocks as a real block, so the cullface doesn't work with these custom blocks.