execute store result score #VB vb.dummy1 run random value 1..4

execute if score #VB vb.dummy1 matches 1 run summon item_display ~ ~0.5 ~ {Rotation:[0f,0f],Tags:["vb.custom_block.fish_trap","vb.custom_block"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.001f,1.001f,1.001f]},item:{id:"minecraft:paper",count:1,components:{"minecraft:item_model":"vb:custom_block/fish_trap","minecraft:custom_model_data":{floats:[0]}}},view_range:4.0f}
execute if score #VB vb.dummy1 matches 2 run summon item_display ~ ~0.5 ~ {Rotation:[90f,0f],Tags:["vb.custom_block.fish_trap","vb.custom_block"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.001f,1.001f,1.001f]},item:{id:"minecraft:paper",count:1,components:{"minecraft:item_model":"vb:custom_block/fish_trap","minecraft:custom_model_data":{floats:[0]}}},view_range:4.0f}
execute if score #VB vb.dummy1 matches 3 run summon item_display ~ ~0.5 ~ {Rotation:[180f,0f],Tags:["vb.custom_block.fish_trap","vb.custom_block"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.001f,1.001f,1.001f]},item:{id:"minecraft:paper",count:1,components:{"minecraft:item_model":"vb:custom_block/fish_trap","minecraft:custom_model_data":{floats:[0]}}},view_range:4.0f}
execute if score #VB vb.dummy1 matches 4 run summon item_display ~ ~0.5 ~ {Rotation:[-90f,0f],Tags:["vb.custom_block.fish_trap","vb.custom_block"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.001f,1.001f,1.001f]},item:{id:"minecraft:paper",count:1,components:{"minecraft:item_model":"vb:custom_block/fish_trap","minecraft:custom_model_data":{floats:[0]}}},view_range:4.0f}

summon minecraft:interaction ~ ~0.5 ~ {Tags:["vb.custom_block_interaction","vb.custom_block_interaction.fish_trap"],width:0.75,height:0.55}

setblock ~ ~ ~ minecraft:spruce_planks strict

stopsound @a[distance=..17] block minecraft:block.stone.place