Code (cpp):
summon FallingSand ~ ~.6 ~ {Block:chain_command_block,TileEntityData:{Command:fill ~ ~ ~ ~ ~2 ~ air},Time:1,Passengers:[{id:FallingSand,Block:redstone_block,Time:1,Passengers:[{id:FallingSand,Block:activator_rail,Time:1,Passengers:[{id:MinecartCommandBlock,Command:setblock ~-1 ~-3 ~ repeating_command_block 1 replace {Command:/scoreboard objectives add CD stat.talkedToVillager,auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-1 ~-2 ~ chain_command_block 1 replace {Command:/scoreboard objectives add Obj dummy,auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-1 ~-1 ~ chain_command_block 1 replace {Command:/fill ~ ~ ~ ~ ~-2 ~ minecraft:air,auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-1 ~ ~ air},{id:MinecartCommandBlock,Command:setblock ~-2 ~-3 ~ repeating_command_block 1 replace {Command:/scoreboard players tag @a add SL {SelectedItem:{id:"minecraft:tripwire_hook",tag:{display:{Name:"Le crochet"}}}},auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-2 ~-2 ~ chain_command_block 1 replace {Command:/scoreboard players add @a Obj 1,auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-2 ~-1 ~ chain_command_block 1 replace {Command:/scoreboard players set @a[score_Obj_min=6] Obj 1,auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-2 ~ ~ chain_command_block 1 replace {Command:/execute @e[name=5C] ~ ~ ~ /scoreboard players tag @a[r=3] add Ry,auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-2 ~1 ~ chain_command_block 1 replace {Command:/execute @e[tag=SL] ~ ~ ~ /give @a[tag=SL,tag=Ry,score_CD_min=1,score_Obj_min=1,score_Obj=1] minecraft:diamond_sword,auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-2 ~2 ~ chain_command_block 1 replace {Command:/execute @e[tag=SL] ~ ~ ~ /give @a[tag=SL,tag=Ry,score_CD_min=1,score_Obj_min=2,score_Obj=2] minecraft:golden_sword,auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-2 ~3 ~ chain_command_block 1 replace {Command:/execute @e[tag=SL] ~ ~ ~ /give @a[tag=SL,tag=Ry,score_CD_min=1,score_Obj_min=3,score_Obj=3] minecraft:stone_sword,auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-2 ~4 ~ chain_command_block 1 replace {Command:/execute @e[tag=SL] ~ ~ ~ /give @a[tag=SL,tag=Ry,score_CD_min=1,score_Obj_min=4,score_Obj=4] minecraft:wooden_sword,auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-2 ~5 ~ chain_command_block 1 replace {Command:/execute @e[tag=SL] ~ ~ ~ /give @a[tag=SL,tag=Ry,score_CD_min=1,score_Obj_min=5,score_Obj=5] minecraft:iron_sword,auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-2 ~6 ~ chain_command_block 1 replace {Command:/clear @a[tag=SL,tag=Ry,score_CD_min=1] minecraft:tripwire_hook 0 1 {display:{Name:"Le crochet"}},auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-2 ~7 ~ chain_command_block 1 replace {Command:/scoreboard players set @a[score_CD_min=1] CD 0,auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-2 ~8 ~ air},{id:MinecartCommandBlock,Command:setblock ~-3 ~-3 ~ repeating_command_block 1 replace {Command:/testforblock ~1 ~ ~ minecraft:repeating_command_block 1 {SuccessCount:0},auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-3 ~-2 ~ chain_command_block 9 replace {Command:/scoreboard players tag @e[tag=SL] remove SL,auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-3 ~-1 ~ air},{id:MinecartCommandBlock,Command:setblock ~-4 ~-3 ~ repeating_command_block 1 replace {Command:/execute @e[name=PC] ~ ~ ~ /setblock ~ ~ ~ minecraft:end_portal_frame,auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-4 ~-2 ~ chain_command_block 1 replace {Command:/execute @e[name=PC] ~ ~ ~ /summon Villager ~ ~ ~ {Invulnerable:1,Silent:1,NoAI:1,Offers:{},ActiveEffects:[{Id:14,Amplifier:1,Duration:9999,ShowParticles:0b}],CustomName:5C},auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-4 ~-1 ~ chain_command_block 1 replace {Command:/kill @e[name=PC],auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-4 ~ ~ air},{id:MinecartCommandBlock,Command:setblock ~-5 ~-3 ~ command_block 1 replace {Command:/give @p spawn_egg 1 0 {EntityTag:{id:"Silverfish",CustomName:PC,CustomNameVisible:1,Silent:1,Invulnerable:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:2147483647}]}},auto:1,TrackOutput:0b}},{id:MinecartCommandBlock,Command:setblock ~-5 ~-2 ~ air},{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~ command_block 0 1 {auto:1,Command:kill @e[type=MinecartCommandBlock,r=1]}}]}]}]}
Grâce à elle, le système se créera automatiquement. Tu devras placer l’œuf où tu le souhaites, ce qui créera un portail de l'end avec un villageois dedans. Prends un crochet et renomme le "Le crochet" et fais un clic droit