summon falling_block ~ ~1 ~ {BlockState:{Name:activator_rail},Time:1,Passengers:[{id:command_block_minecart,Command:"setblock ~-2 ~-1 ~-3 minecraft:oak_sign[rotation=0,waterlogged=false]{Color:\"black\",Text4:'{\"text\":\"\"}',Text3:'{\"text\":\"\"}',Text2:'{\"text\":\"\"}',Text1:'{\"bold\":true,\"color\":\"#FFFFFF\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"tellraw @a [\\\\\"\\\\\",{\\\\\"text\\\\\":\\\\\"This Command Block creation was made by \\\\\",\\\\\"color\\\\\":\\\\\"yellow\\\\\"},{\\\\\"text\\\\\":\\\\\"Octagon\\\\\",\\\\\"bold\\\\\":true,\\\\\"color\\\\\":\\\\\"yellow\\\\\"},{\\\\\"text\\\\\":\\\\\".\\\\\",\\\\\"color\\\\\":\\\\\"yellow\\\\\"},{\\\\\"text\\\\\":\\\\\"\\\\\\\\n\\\\\"},{\\\\\"text\\\\\":\\\\\"Click here to go to my YouTube channel to see more commands like this!\\\\\",\\\\\"italic\\\\\":true,\\\\\"underlined\\\\\":true,\\\\\"color\\\\\":\\\\\"aqua\\\\\",\\\\\"clickEvent\\\\\":{\\\\\"action\\\\\":\\\\\"open_url\\\\\",\\\\\"value\\\\\":\\\\\"https://youtube.com/c/octagongaming/\\\\\"}}]\"},\"text\":\"Made by Octagon\"}'}"},{id:command_block_minecart,Command:"setblock ~-1 ~-1 ~-3 minecraft:repeating_command_block[conditional=false,facing=up]{auto:1b,powered:0b,LastExecution:107241L,SuccessCount:0,UpdateLastExecution:1b,conditionMet:1b,CustomName:'{\"text\":\"@\"}',Command:'execute at @e[type=item,name=\"Netherite Scrap\"] run execute if block ~ ~-1 ~ minecraft:netherite_block run execute at @e[type=item,name=\"Iron Horse Armor\"] run execute if block ~ ~-1 ~ minecraft:netherite_block run say The Headless Horseman has been summoned!',TrackOutput:0b}"},{id:command_block_minecart,Command:"setblock ~-1 ~0 ~-3 minecraft:chain_command_block[conditional=true,facing=up]{auto:1b,powered:0b,LastExecution:87882L,SuccessCount:0,UpdateLastExecution:1b,conditionMet:0b,CustomName:'{\"text\":\"@\"}',Command:'execute at @e[type=item,name=\"Netherite Scrap\",limit=1] run summon wither_skeleton ~ ~ ~ {CustomNameVisible:0b,CustomName:\\'{\"text\":\"dullahan.main_entity\"}\\'}',TrackOutput:0b}"},{id:command_block_minecart,Command:"setblock ~-1 ~1 ~-3 minecraft:chain_command_block[conditional=true,facing=up]{auto:1b,powered:0b,LastExecution:87882L,SuccessCount:0,UpdateLastExecution:1b,conditionMet:0b,CustomName:'{\"text\":\"@\"}',Command:'kill @e[type=minecraft:item,name=\"Netherite Scrap\"]',TrackOutput:0b}"},{id:command_block_minecart,Command:"setblock ~-1 ~2 ~-3 minecraft:chain_command_block[conditional=true,facing=up]{auto:1b,powered:0b,LastExecution:87882L,SuccessCount:0,UpdateLastExecution:1b,conditionMet:0b,CustomName:'{\"text\":\"@\"}',Command:\"execute at @e[type=minecraft:wither_skeleton,name=dullahan.main_entity] run setblock ~ ~-1 ~ air\",TrackOutput:0b}"},{id:command_block_minecart,Command:"setblock ~-1 ~3 ~-3 minecraft:chain_command_block[conditional=true,facing=up]{auto:1b,powered:0b,LastExecution:87882L,SuccessCount:0,UpdateLastExecution:1b,conditionMet:0b,CustomName:'{\"text\":\"@\"}',Command:'kill @e[type=minecraft:item,name=\"Iron Horse Armor\"]',TrackOutput:0b}"},{id:command_block_minecart,Command:"setblock ~-1 ~4 ~-3 minecraft:chain_command_block[conditional=true,facing=up]{auto:1b,powered:0b,LastExecution:87882L,SuccessCount:0,UpdateLastExecution:1b,conditionMet:0b,CustomName:'{\"text\":\"@\"}',Command:\"/playsound minecraft:entity.wither.spawn hostile @a\",TrackOutput:0b}"},{id:command_block_minecart,Command:"setblock ~-1 ~5 ~-3 minecraft:chain_command_block[conditional=true,facing=up]{auto:1b,powered:0b,LastExecution:87882L,SuccessCount:0,UpdateLastExecution:1b,conditionMet:0b,CustomName:'{\"text\":\"@\"}',Command:'execute at @e[name=dullahan.main_entity] run summon minecraft:horse ~ ~ ~ {Invulnerable: 1b, ArmorItem: {id: \"minecraft:iron_horse_armor\", Count: 1b}, NoAI: 1b, Variant: 5, CustomName: \\'{\"text\":\"dullahan.horse\"}\\', Passengers: [{Invulnerable: 1b, id: \"minecraft:armor_stand\", Invisible: 1b, HandItems: [{id: \"minecraft:netherite_sword\", Count: 1b, tag: {Damage: 0}}, {}], CustomName: \\'{\"text\":\"dullahan.man\"}\\', Pos: [5.2453803995408474d, 65.30000001937151d, -309.60039013251765d], ArmorItems: [{id: \"minecraft:netherite_boots\", Count: 1b, tag: {Damage: 0}}, {id: \"minecraft:netherite_leggings\", Count: 1b, tag: {Damage: 0}}, {id: \"minecraft:netherite_chestplate\", Count: 1b, tag: {Damage: 0}}, {}],}], ArmorItems: [{}, {}, {id: \"minecraft:iron_horse_armor\", Count: 1b}, {}]}',TrackOutput:0b}"},{id:command_block_minecart,Command:"setblock ~0 ~-1 ~-3 minecraft:repeating_command_block[conditional=false,facing=up]{auto:1b,powered:0b,LastExecution:111042L,SuccessCount:0,UpdateLastExecution:1b,conditionMet:1b,CustomName:'{\"text\":\"@\"}',Command:\"execute unless entity @e[type=minecraft:wither_skeleton,name=dullahan.main_entity] run kill @e[type=minecraft:horse,name=dullahan.horse]\",TrackOutput:0b}"},{id:command_block_minecart,Command:"setblock ~0 ~0 ~-3 minecraft:repeating_command_block[conditional=false,facing=up]{auto:1b,powered:0b,LastExecution:111063L,SuccessCount:0,UpdateLastExecution:1b,conditionMet:1b,CustomName:'{\"text\":\"@\"}',Command:\"execute unless entity @e[type=minecraft:wither_skeleton,name=dullahan.main_entity] run kill @e[type=minecraft:armor_stand,name=dullahan.man]\",TrackOutput:0b}"},{id:command_block_minecart,Command:"setblock ~0 ~1 ~-3 minecraft:repeating_command_block[conditional=false,facing=up]{auto:1b,powered:0b,LastExecution:111085L,SuccessCount:0,UpdateLastExecution:1b,conditionMet:1b,CustomName:'{\"text\":\"@\"}',Command:\"/effect give @e[type=minecraft:wither_skeleton,name=dullahan.main_entity] minecraft:invisibility 999 255 true\",TrackOutput:0b}"},{id:command_block_minecart,Command:"setblock ~0 ~2 ~-3 minecraft:repeating_command_block[conditional=false,facing=up]{auto:1b,powered:0b,LastExecution:111106L,SuccessCount:0,UpdateLastExecution:1b,conditionMet:1b,CustomName:'{\"text\":\"@\"}',Command:\"tp @e[type=horse,name=dullahan.horse] @e[type=minecraft:wither_skeleton,name=dullahan.main_entity,limit=1]\",TrackOutput:0b}"},{id:command_block_minecart,Command:"setblock ~0 ~3 ~-3 minecraft:repeating_command_block[conditional=false,facing=up]{auto:1b,powered:0b,LastExecution:111133L,SuccessCount:0,UpdateLastExecution:1b,conditionMet:1b,CustomName:'{\"text\":\"@\"}',Command:\"execute at @e[name=dullahan.main_entity] run particle minecraft:dragon_breath ~ ~1 ~ .2 0 .2 .1 2 normal\",TrackOutput:0b}"},{id:command_block_minecart,Command:"setblock ~1 ~-1 ~-3 minecraft:oak_sign[rotation=0,waterlogged=false]{Color:\"black\",Text4:'{\"text\":\"\"}',Text3:'{\"color\":\"#FFFFFF\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"playsound minecraft:item.shield.break master @a\"},\"text\":\"The Machine\"}',Text2:'{\"color\":\"#FFFFFF\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"say The Machine Has Been Removed\"},\"text\":\"To Remove\"}',Text1:'{\"color\":\"#FFFFFF\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"fill ~ ~ ~ ~-3 ~7 ~ minecraft:air replace\"},\"text\":\"Click Me\"}'}"},{id:command_block_minecart,Command:"tellraw @a [\"\",{\"text\":\"'The Headless Horseman' Machine has been installed.\\n\",\"color\":\"yellow\"},{\"text\":\"Made by Octagon\",\"bold\":true,\"color\":\"yellow\"},{\"text\":\"\\n\"},{\"text\":\"Click here to get more commands like this one!\",\"italic\":true,\"underlined\":true,\"color\":\"aqua\",\"clickEvent\":{\"action\":\"open_url\",\"value\":\"https://youtube.com/c/octagongaming\"}}]"},{id:command_block_minecart,Command:"gamerule commandBlockOutput false"},{id:command_block_minecart,Command:"setblock ~ ~ ~1 command_block{Command:\"fill ~ ~-1 ~-1 ~ ~ ~ air\"} replace"},{id:command_block_minecart,Command:"setblock ~ ~-1 ~1 redstone_block"},{id:command_block_minecart,Command:"kill @e[type=command_block_minecart,distance=0..2]"}]}