Jump to content

Recommended Posts

Posted

I created obj (Model), mtl (Material), png (Texture) files in Blender.
In blockstate I wrote it like this:

{
  "forge_marker": 1,
  "defaults": {
    "custom": { "flip-v": true },
    "model": "lg:lofectr_block.obj"
  },
  "variants": {
    "normal": [{}],
    "inventory": [{}]
  }
}

lofectr_block.mtl:

# Blender MTL File: 'lofectr_block.blend'
# Material Count: 1

newmtl Material
Ns 323.999994
Ka 1.000000 1.000000 1.000000
Kd 0.269303 0.800000 0.181362
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd lg:blocks/lofectr_block

lofectr_block.obj:

# Blender v2.82 (sub 7) OBJ File: 'lofectr_block.blend'
# www.blender.org
mtllib lofectr_block.mtl
o Cube
v 0.500000 0.287963 -0.290945
v 0.500000 -0.500000 -0.500000
v 0.181114 0.500000 0.500000
v 0.500000 -0.500000 0.500000
v -0.500000 0.770715 -0.500000
v -0.500000 -0.500000 -0.500000
v -0.500000 -0.082512 0.500000
v -0.500000 -0.500000 0.500000
vt 0.000000 0.635745
vt 0.320984 0.508432
vt 0.320984 1.000000
vt 0.081898 0.913466
vt 0.665274 0.913219
vt 0.770706 0.511047
vt 0.995901 0.745317
vt 0.995901 0.913219
vt 0.338745 0.511047
vt 0.338745 0.343145
vt 0.669373 0.000000
vt 0.669373 0.511047
vt 1.000000 0.402172
vt 0.669373 0.402172
vt 0.669373 0.000000
vt 1.000000 0.000000
vt 0.338745 0.937867
vt 0.394583 0.623254
vt 0.665274 0.511047
vt 0.665274 0.928530
vt 0.005405 0.508432
vt 0.000000 0.000000
vt 0.338745 0.184662
vt 0.333341 0.508432
vn -0.0958 0.9424 0.3204
vn 0.0000 0.0000 1.0000
vn -1.0000 0.0000 0.0000
vn 0.0000 -1.0000 0.0000
vn 0.9755 0.1558 0.1552
vn 0.1273 0.1002 -0.9868
usemtl Material
s off
f 1/1/1 5/2/1 7/3/1 3/4/1
f 4/5/2 3/6/2 7/7/2 8/8/2
f 8/9/3 7/10/3 5/11/3 6/12/3
f 6/13/4 2/14/4 4/15/4 8/16/4
f 2/17/5 1/18/5 3/19/5 4/20/5
f 6/21/6 5/22/6 1/23/6 2/24/6

lofectr_block.png:

image.png.31769f29aaef2f615feb56151f52ee9f.png

 

The problem is that the gray on the texture in the game turns to green!

image.png.e2c08ed585615c2273004a65ea97e90a.png

 

Help, what could be the problem? And how to fix it?

Posted

1.12 is no longer supported on this forum.

Please update to a modern version of Minecraft to receive support.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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