#Need help with Blockstates

3 messages · Page 1 of 1 (latest)

quick dock
#
    event.create('glance_pillar')
    .resistance(6.0)
    .hardness(1.5)
    .requiresTool(true)
    .tagBlock('minecraft:mineable/pickaxe')
    .tagBoth('oreganized:stone_types/glance')
    // .mapColor('') // How do I do this // Missing for Glance in base Oreganized anyway
    // .stoneSoundType() // Missing for Glance in base Oreganized anyway
    .setBlockstateJson = {
        "variants": {
            "axis=y":  { "model": "kubejs:block/glance_pillar" },
            "axis=z":   { "model": "kubejs:block/glance_pillar", "x": 90 },
            "axis=x":   { "model": "kubejs:block/glance_pillar", "x": 90, "y": 90 }
        }
    }

Gone through a bunch of different little tweaks and I can't get this to work, the wiki isn't very helpful

  • is my syntax right?
  • do i need to write the JSON here or link to the filepath of a different file, or is it all automatic and I don't even need to do that?
  • do I use .setBlockstateJson or .blockstateJson?
void flareBOT
#

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

quick dock
#
    event.create('glance_pillar')
    .resistance(6.0)
    .hardness(1.5)
    .requiresTool(true)
    .tagBlock('minecraft:mineable/pickaxe')
    .tagBoth('oreganized:stone_types/glance')
    // .mapColor('') // How do I do this // Missing for Glance in base Oreganized anyway
    // .stoneSoundType() // Missing for Glance in base Oreganized anyway
    .blockstateJson = {
        "variants": {
            "axis=y": { "model": "kubejs:block/glance_pillar" },
            "axis=z": { "model": "kubejs:block/glance_pillar", "x": 90 },
            "axis=x": { "model": "kubejs:block/glance_pillar", "x": 90, "y": 90 }
        }
    }

got this and my game loads up, but for some reason the blocks aren't textured ingame (is on Jade and in inventory though) and i can't do anything to them with a debug stick