#Still black and purple texture

12 messages · Page 1 of 1 (latest)

patent ridge
#

Hi,
So I am desiging a new block for my mod. BUT It is a black and white texture.

This is my models/block/fire_grass_block.json

{
  "parent": "minecraft:block/cube",
  "textures": {
    "top": "elemental:block/fire_grass_block_top",
    "side": "elemental:block/fire_grass_block_side",
    "bottom": "elemental:block/fire_dirt_block"
  }
}

The files DO exist, and I really need the help, and I know that it probably is just some stupid mistake I made!

gusty pollen
#

where's your client item/item model definition?

#

oh wait block

#

check your logs, it generally says if there's an error

patent ridge
#

The only error in the logs was something with the narrator

gusty pollen
#

it will definitely print an error if a model or the texture is missing

patent ridge
#

Hmm, it doesnt do that though... (only if I rename the file!)

#

So I changed a line, and turned it into this one: "parent": "minecraft:block/block",

I think it did do something, since now this is what it looks like:

gusty pollen
#

your parent model is kinda wrong though. if you need something with bottom, side, top, you usually use minecraft:block/cube_bottom_top

patent ridge
#

What do you mean with that?

Cause right now I have:

{
  "parent": "minecraft:block/block",
  "textures": {
    "top": "elemental:block/fire_grass_block_top",
    "bottom": "elemental:block/fire_dirt_block",
    "north": "elemental:block/fire_grass_block_side",
    "east": "elemental:block/fire_grass_block_side",
    "south": "elemental:block/fire_grass_block_side",
    "west": "elemental:block/fire_grass_block_side"
  },
  "elements": [
    {
      "from": [0, 0, 0],
      "to": [16, 16, 16],
      "faces": {
        "down": { "uv": [0, 0, 16, 16], "texture": "#bottom", "cullface": "down" },
        "up": { "uv": [0, 0, 16, 16], "texture": "#top", "cullface": "up", "tintindex": 0 },
        "north": { "uv": [0, 0, 16, 16], "texture": "#side", "cullface": "north" },
        "south": { "uv": [0, 0, 16, 16], "texture": "#side", "cullface": "south" },
        "west": { "uv": [0, 0, 16, 16], "texture": "#side", "cullface": "west" },
        "east": { "uv": [0, 0, 16, 16], "texture": "#side", "cullface": "east" }
      }
    },
    {
      "from": [0, 0, 0],
      "to": [16, 16, 16],
      "faces": {
        "north": { "uv": [0, 0, 16, 16], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
        "south": { "uv": [0, 0, 16, 16], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
        "west": { "uv": [0, 0, 16, 16], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
        "east": { "uv": [0, 0, 16, 16], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
      }
    }
  ]
}

And only the top and bottom textures work!

#

{
  "parent": "minecraft:block/block",
  "textures": {
    "top": "elemental:block/fire_grass_block_top",
    "bottom": "elemental:block/fire_dirt_block",
    "side": "elemental:block/fire_grass_block_side"
  },
  "elements": [
    {
      "from": [0, 0, 0],
      "to": [16, 16, 16],
      "faces": {
        "down": { "uv": [0, 0, 16, 16], "texture": "#bottom", "cullface": "down" },
        "up": { "uv": [0, 0, 16, 16], "texture": "#top", "cullface": "up", "tintindex": 0 },
        "north": { "uv": [0, 0, 16, 16], "texture": "#side", "cullface": "north" },
        "south": { "uv": [0, 0, 16, 16], "texture": "#side", "cullface": "south" },
        "west": { "uv": [0, 0, 16, 16], "texture": "#side", "cullface": "west" },
        "east": { "uv": [0, 0, 16, 16], "texture": "#side", "cullface": "east" }
      }
    },
    {
      "from": [0, 0, 0],
      "to": [16, 16, 16],
      "faces": {
        "north": { "uv": [0, 0, 16, 16], "texture": "#side", "tintindex": 0, "cullface": "north" },
        "south": { "uv": [0, 0, 16, 16], "texture": "#side", "tintindex": 0, "cullface": "south" },
        "west": { "uv": [0, 0, 16, 16], "texture": "#side", "tintindex": 0, "cullface": "west" },
        "east": { "uv": [0, 0, 16, 16], "texture": "#side", "tintindex": 0, "cullface": "east" }
      }
    }
  ]
}

#

This seems to be working...