getBlockInfo - FireDragon91245/CCT-Resource-API GitHub Wiki

getBlockInfo

signature:

-- block = str representing a block for example "minecraft:stone"
getBlockInfo(
    blockid: block,
    flags: str
)

return: table: blockinfo
flags:

  • "t" = load tag information
  • "m" = load model & texture information

performance impact: medium, high (if flag "m" enabled)

examples

-- get block tags
getBlockInfo("minecraft:stone", "t")

-- get textures tags and model
getBlockInfo("minecraft:grass_block", "mt")