#how can i get block id?

8 messages · Page 1 of 1 (latest)

weary oriole
#

how can i get the block id below a block that i made and check if the block is a full block or not and check if its translucent or not?

tulip turtleBOT
#

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

vapid obsidian
weary oriole
#

thanks

#

and how can i get the stats if its a full block or translucent?

vapid obsidian
#
BlockEvents.rightClicked(event => {
    const { block, level } = event
    let blockBelow = block.down
    if (blockBelow.id != "minecraft:lava") return
    if (!blockBelow.blockState.isCollisionShapeFullBlock(level, blockBelow.pos) &&
        !blockBelow.blockState.isSolidRender(level, blockBelow.pos)) {
        // Do something if the block is not full and is not a solid render
    }
})```
#

if isSolidRender doesnt do the job then you can also try js blockBelow.blockState.renderShape == "invisible"

weary oriole
#

can i use this in

ClientEvents.init(event => {
    event.registerBlockEntityRenderer("kubejs:mob_reviver", (context) => RenderJSBlockEntityRenderer
        .create(context)
        .setCustomRender((renderer,context)=>{

some how?