#Trying to make a custom ladder

9 messages · Page 1 of 1 (latest)

twilit island
#
  event.create('custom_ladder', "basic").material('wood')
        .hardness(0.4)
        .soundType("ladder")
        .textureAll('minecraft:block/oak_planks') 
        .renderType('cutout') 
        .property(BlockProperties.FACING)
        .box(0, 0, 0, 0, 16, 16)//This makes it 2d like a ladder
        .placementState(c =>{
          c.set(BlockProperties.FACING, c.nearestLookingDirection.opposite)}
        )

I'm trying to create a 'decayed' version of a ladder in Minecraft using KubeJS. So far, I've managed to create a 2D block similar to a ladder, but it's not facing the direction I expect and doesn't change direction when placed. Additionally, I want to restrict where it can be placed, just like a regular ladder. How can I achieve these features? I figure its just a matter of getting the box correct. As if i change it to be 1 pixel, it does seem to change direction. Oh oi also cant seem to break it heh

hybrid carbonBOT
#

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

twilit island
#

Ive managed to get it breakable but its still npt facinbg the right direction and it seems to be hiding whatever is behind it heh

#
  event.create('custom_ladder', "basic").material('wood')
        .hardness(0.4)
        .soundType("ladder")
        .textureAll('minecraft:block/ladder') 
        .renderType("cutout")
        .notSolid()
        .property(BlockProperties.FACING)
        .box(0, 0, 0, 1, 16, 16)//This makes it 2d like a ladder
        .placementState(c =>{
          c.set(BlockProperties.FACING, c.nearestLookingDirection.opposite)}
        )
#

Ive fixed the hiding stuff behind it by calling "notsolid" still not facing right way on walls etc

twilit island
#

Its looking like this will work js event.create('custom_ladder', "cardinal").material('wood') .hardness(0.4) .soundType("ladder") .textureAll('minecraft:block/ladder') .defaultCutout() .tagBlock("minecraft:climbable") .model("minecraft:block/ladder") .box(0, 0, 14, 16, 16, 16)

#

Yep that worked,