execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:barrel",Count:1b}}] at @s run scoreboard players set @e[type=#cartographer_core:hostile,distance=..6] effect_stunned 65
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:barrel",Count:1b}}] at @s run particle minecraft:block minecraft:oak_planks ~ ~0.5 ~ 0.7 0.2 0.7 1 80 normal
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:barrel",Count:1b}}] at @s run kill @s

execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:oak_door",Count:1b}}] at @s run scoreboard players set @e[type=#cartographer_core:hostile,distance=..6] effect_stunned 65
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:oak_door",Count:1b}}] at @s run particle minecraft:block minecraft:oak_planks ~ ~0.5 ~ 0.7 0.2 0.7 1 80 normal
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:oak_door",Count:1b}}] at @s run kill @s

execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:spruce_door",Count:1b}}] at @s run scoreboard players set @e[type=#cartographer_core:hostile,distance=..6] effect_stunned 65
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:spruce_door",Count:1b}}] at @s run particle minecraft:block minecraft:spruce_planks ~ ~0.5 ~ 0.7 0.2 0.7 1 80 normal
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:spruce_door",Count:1b}}] at @s run kill @s

execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:birch_door",Count:1b}}] at @s run scoreboard players set @e[type=#cartographer_core:hostile,distance=..6] effect_stunned 65
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:birch_door",Count:1b}}] at @s run particle minecraft:block minecraft:birch_planks ~ ~0.5 ~ 0.7 0.2 0.7 1 80 normal
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:birch_door",Count:1b}}] at @s run kill @s

execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:jungle_door",Count:1b}}] at @s run scoreboard players set @e[type=#cartographer_core:hostile,distance=..6] effect_stunned 65
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:jungle_door",Count:1b}}] at @s run particle minecraft:block minecraft:jungle_planks ~ ~0.5 ~ 0.7 0.2 0.7 1 80 normal
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:jungle_door",Count:1b}}] at @s run kill @s

execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:acacia_door",Count:1b}}] at @s run scoreboard players set @e[type=#cartographer_core:hostile,distance=..6] effect_stunned 65
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:acacia_door",Count:1b}}] at @s run particle minecraft:block minecraft:acacia_planks ~ ~0.5 ~ 0.7 0.2 0.7 1 80 normal
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:acacia_door",Count:1b}}] at @s run kill @s

execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:dark_oak_door",Count:1b}}] at @s run scoreboard players set @e[type=#cartographer_core:hostile,distance=..6] effect_stunned 65
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:dark_oak_door",Count:1b}}] at @s run particle minecraft:block minecraft:dark_oak_planks ~ ~0.5 ~ 0.7 0.2 0.7 1 80 normal
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:dark_oak_door",Count:1b}}] at @s run kill @s

execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:crimson_door",Count:1b}}] at @s run scoreboard players set @e[type=#cartographer_core:hostile,distance=..6] effect_stunned 65
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:crimson_door",Count:1b}}] at @s run particle minecraft:block minecraft:crimson_planks ~ ~0.5 ~ 0.7 0.2 0.7 1 80 normal
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:crimson_door",Count:1b}}] at @s run kill @s

execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:warped_door",Count:1b}}] at @s run scoreboard players set @e[type=#cartographer_core:hostile,distance=..6] effect_stunned 65
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:warped_door",Count:1b}}] at @s run particle minecraft:block minecraft:warped_planks ~ ~0.5 ~ 0.7 0.2 0.7 1 80 normal
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:warped_door",Count:1b}}] at @s run kill @s

execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:oak_trapdoor",Count:1b}}] at @s run scoreboard players set @e[type=#cartographer_core:hostile,distance=..6] effect_stunned 65
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:oak_trapdoor",Count:1b}}] at @s run particle minecraft:block minecraft:oak_planks ~ ~0.5 ~ 0.7 0.2 0.7 1 80 normal
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:oak_trapdoor",Count:1b}}] at @s run kill @s

execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:spruce_trapdoor",Count:1b}}] at @s run scoreboard players set @e[type=#cartographer_core:hostile,distance=..6] effect_stunned 65
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:spruce_trapdoor",Count:1b}}] at @s run particle minecraft:block minecraft:spruce_planks ~ ~0.5 ~ 0.7 0.2 0.7 1 80 normal
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:spruce_trapdoor",Count:1b}}] at @s run kill @s

execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:birch_trapdoor",Count:1b}}] at @s run scoreboard players set @e[type=#cartographer_core:hostile,distance=..6] effect_stunned 65
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:birch_trapdoor",Count:1b}}] at @s run particle minecraft:block minecraft:birch_planks ~ ~0.5 ~ 0.7 0.2 0.7 1 80 normal
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:birch_trapdoor",Count:1b}}] at @s run kill @s

execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:jungle_trapdoor",Count:1b}}] at @s run scoreboard players set @e[type=#cartographer_core:hostile,distance=..6] effect_stunned 65
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:jungle_trapdoor",Count:1b}}] at @s run particle minecraft:block minecraft:jungle_planks ~ ~0.5 ~ 0.7 0.2 0.7 1 80 normal
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:jungle_trapdoor",Count:1b}}] at @s run kill @s

execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:acacia_trapdoor",Count:1b}}] at @s run scoreboard players set @e[type=#cartographer_core:hostile,distance=..6] effect_stunned 65
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:acacia_trapdoor",Count:1b}}] at @s run particle minecraft:block minecraft:acacia_planks ~ ~0.5 ~ 0.7 0.2 0.7 1 80 normal
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:acacia_trapdoor",Count:1b}}] at @s run kill @s

execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:dark_oak_trapdoor",Count:1b}}] at @s run scoreboard players set @e[type=#cartographer_core:hostile,distance=..6] effect_stunned 65
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:dark_oak_trapdoor",Count:1b}}] at @s run particle minecraft:block minecraft:dark_oak_planks ~ ~0.5 ~ 0.7 0.2 0.7 1 80 normal
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:dark_oak_trapdoor",Count:1b}}] at @s run kill @s

execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:crimson_trapdoor",Count:1b}}] at @s run scoreboard players set @e[type=#cartographer_core:hostile,distance=..6] effect_stunned 65
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:crimson_trapdoor",Count:1b}}] at @s run particle minecraft:block minecraft:crimson_planks ~ ~0.5 ~ 0.7 0.2 0.7 1 80 normal
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:crimson_trapdoor",Count:1b}}] at @s run kill @s

execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:warped_trapdoor",Count:1b}}] at @s run scoreboard players set @e[type=#cartographer_core:hostile,distance=..6] effect_stunned 65
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:warped_trapdoor",Count:1b}}] at @s run particle minecraft:block minecraft:warped_planks ~ ~0.5 ~ 0.7 0.2 0.7 1 80 normal
execute as @e[type=item,limit=1,sort=nearest,nbt={Item:{id:"minecraft:warped_trapdoor",Count:1b}}] at @s run kill @s

playsound minecraft:entity.zombie.break_wooden_door block @a[distance=..12] ~ ~ ~ 1 1.2