BrazilPirate Posted March 11, 2025 Report Posted March 11, 2025 I'm creating a mod to add a crop into the game. I ctrl+c ctrl+v the carrot.json from blocktypes, to use as a guide. Seed ok, item ok, i can put in farmland, properties are working, stages are working, but the damn textures dont load. crop.json this is the crop file from blocktypes (duh) stage1.json the file for the stage1, in my VS ModelCreator is working fine, the textures are in the correct folder Somebody can enlighten me? What i did wrong?
Brady_The Posted March 11, 2025 Report Posted March 11, 2025 (edited) 4 hours ago, BrazilPirate said: crop.json this is the crop file from blocktypes (duh) stage1.json the file for the stage1, in my VS ModelCreator is working fine, the textures are in the correct folder Somebody can enlighten me? What i did wrong? On the first look crop.json looks fine. That depends, though, on where your files are located. Are you directly working in the game directory or your own mod directory? If it is the latter, you have to adjust the texture definitions to point towards the game folder. textures: { "e": { base: "game:block/plant/crop/potato/e{stage}" }, "w": { base: "game:block/plant/crop/potato/w{stage}" }, } (Unless of course you copied the textures into your mod folders, but that wouldn't be necessary, as can be seen above.) You should have errors in the logs (particularly client-main) pointing you towards the solution. This looks more like a shape than a texture error. Also, the UV mapping of all your n and s faces seems to be messed up in your stage1.json file. Edited March 11, 2025 by Brady_The
BrazilPirate Posted March 11, 2025 Author Report Posted March 11, 2025 Now the textures are correct in the stage1 json. Nothing changed in game. It is located in my own mod directory, i have a copy of the textures (and yes, i tested it with "game:" too). The warnings in my client-main are this:
Brady_The Posted March 11, 2025 Report Posted March 11, 2025 Would you mind attaching a copy of your mod to your comment? Currently I can't see the problem, running the mod myself might change that.
Brady_The Posted March 11, 2025 Report Posted March 11, 2025 (edited) 39 minutes ago, BrazilPirate said: brazilPirate-foods.zip 230.7 kB · 1 download It's a bit odd that no error messages are printed, but apparently it doesn't like your shape definition. (Thinking about it, I don't think I have ever seen a variantgroup reference in the type key. That's on me, my bad.) You have two options: shapeByType: { "*-2": { base: "block/plant/crop/potato/stage2" }, "*-3": { base: "block/plant/crop/potato/stage3" }, "*-4": { base: "block/plant/crop/potato/stage4" }, "*-5": { base: "block/plant/crop/potato/stage5" }, "*-6": { base: "block/plant/crop/potato/stage6" }, "*-7": { base: "block/plant/crop/potato/stage7" }, "*": { base: "block/plant/crop/potato/stage1" } } or shape: { base: "block/plant/crop/potato/stage{stage}" } There's also the small problem that you are linking to the shape as followed: "block/plant/crop/potato/", but the "crop" folder is missing in your mod structure. The shapes 2 to 7 also need some updates, mainly because you are defining only textures "e" and "w" in your blocktype, but shapes 2 to 7 also use texture "s" and "bulb". Edited March 11, 2025 by Brady_The 1
BrazilPirate Posted March 11, 2025 Author Report Posted March 11, 2025 20 minutes ago, Brady_The said: It's a bit odd that no error messages are printed, but apparently it doesn't like your shape definition. You have two options: shapeByType: { "*-2": { base: "block/plant/crop/potato/stage2" }, "*-3": { base: "block/plant/crop/potato/stage3" }, "*-4": { base: "block/plant/crop/potato/stage4" }, "*-5": { base: "block/plant/crop/potato/stage5" }, "*-6": { base: "block/plant/crop/potato/stage6" }, "*-7": { base: "block/plant/crop/potato/stage7" }, "*": { base: "block/plant/crop/potato/stage1" } } or shape: { base: "block/plant/crop/potato/stage{stage}" } There's also the small problem that you are linking to the shape as followed: "block/plant/crop/potato/", but the "crop" folder is missing in your mod structure. The shapes 2 to 7 also need some updates, mainly because you are defining only textures "e" and "w" in your blocktype, but shapes 2 to 7 also use texture "s" and "bulb". The stage1 is the one that i adjusted correctly. But this: ("block/plant/crop/potato/" without crop) shape: { base: "block/plant/potato/stage{stage}" }, Resolved my problem. I was blind, and you sir gave me the sight. Thank you so much! 1
Recommended Posts