Date: 2025/09/17 06:30:20 UTC-07:00
Type: Denizen Script
tidbits_ladders:
type: world
debug: false
events:
on player right clicks ladder with:ladder:
- define amt <element[255].sub[<context.location.y>]>
# Should this be nerfed? Only placable down by 8 from the Y?
- repeat <[amt]> as:idx:
- define lower <context.location.below[<[idx]>]>
- repeat next if:<[lower].material.equals[<context.location.material>]>
- define support <[lower].sub[<context.location.block_facing>]>
- if <[lower].material.name> NOT in AIR|VOID_AIR|CAVE_AIR OR NOT <[support].material.is_solid> or <[support].y> < -64:
- repeat stop
- modifyblock <[lower]> ladder[direction=<context.location.material.direction>] source:<player>
- animate <player> animation:ARM_SWING
- playsound <[lower].center> sound:BLOCK_LADDER_PLACE
- take iteminhand quantity:1 if:<player.proc[player_is_survival]>
- repeat stop