setblock ~1 ~ ~ ladder[facing=east]
setblock ~-1 ~ ~ ladder[facing=west]
setblock ~ ~ ~1 ladder[facing=south]
setblock ~ ~ ~-1 ladder[facing=north]
kill @e[type=item,distance=..2,nbt={Item:{id:"minecraft:ladder",count:1}}]