#Custom block texture issue

1 messages · Page 1 of 1 (latest)

zenith merlin
#

I am declaring custom block data like

  {
    id: "vault183:sand_base",
    displayName: "Sabbia desertica",
    soundType: "sand",
    hardness: 1.5,
    resistance: 0.5,
    texture: {
      down: "vault183:block/sand_base",
      up: "vault183:block/sand_base",
      north: "vault183:block/sand_base",
      south: "vault183:block/sand_base",
      east: "vault183:block/sand_base",
      west: "vault183:block/sand_base"
    }
  },
  {
    id: "vault183:sand_base_variant",
    displayName: "Sabbia desertica",
    soundType: "sand",
    hardness: 1.5,
    resistance: 0.5,
    texture: {
      down: "vault183:block/sand_base",
      up: "vault183:block/sand_base_variant",
      north: "vault183:block/sand_base",
      south: "vault183:block/sand_base",
      east: "vault183:block/sand_base",
      west: "vault183:block/sand_base"
    }
  },

and registering the blocks like

StartupEvents.registry("block", (event) => {
  for (const block of global.BLOCKS) {
    event
      .create(block.id, "cardinal")
      .displayName(block.displayName)
      .soundType(block.soundType)
      .hardness(block.hardness)
      .resistance(block.resistance)
      .texture(Direction.DOWN, block.texture.down)
      .texture(Direction.UP, block.texture.up)
      .texture(Direction.NORTH, block.texture.north)
      .texture(Direction.SOUTH, block.texture.south)
      .texture(Direction.EAST, block.texture.east)
      .texture(Direction.WEST, block.texture.west);
  }
});

Textures are saved at

kubejs\assets\vault183\textures\block\sand_base.png
kubejs\assets\vault183\textures\block\sand_base_variant.png
[...]

yet I'm getting the classic purple-n-black missing texture thing. First time registering custom blocks, what's the problem here?

errant fractalBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

zenith merlin
#

I should say I'm very tired and if it's a stupid thing I'm messing up y'all are allowed to stone me to death

zenith merlin
#

bump hmmm