merci...
Dsl si je te casse les pieds avec ça mais avec to one command block je pourrai étudier ton système
Encore merci!!!
Dsl si je te casse les pieds avec ça mais avec to one command block je pourrai étudier ton système
Encore merci!!!
summon FallingSand ~ ~1 ~ {Block:stone,Time:1,Passengers:[{id:FallingSand,Block:redstone_block,Time:1,Passengers:[{id:FallingSand,Block:activator_rail,Time:1,Passengers:[{id:MinecartCommandBlock,Command:gamerule commandBlockOutput false},{id:MinecartCommandBlock,Command:"fill ~2 ~-3 ~-1 ~8 ~-1 ~1 stained_hardened_clay 12 hollow"},{id:MinecartCommandBlock,Command:"fill ~2 ~-2 ~-1 ~8 ~-2 ~1 stained_glass 10 replace stained_hardened_clay"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add tp stat.useItem.minecraft.carrot_on_a_stick"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add name dummy"},{id:MinecartCommandBlock,Command:setblock ~1 ~-3 ~ wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"================\\\",\\\"color\\\":\\\"black\\\"}",Text2:"{\\\"text\\\":\\\"Clic ici pour\\\",\\\"color\\\":\\\"black\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/give @p minecraft:carrot_on_a_stick 1 0 {display:{Name:\\\\\\\"tp\\\\\\\"}}\\\"}}",Text3:"{\\\"text\\\":\\\"avoir l'objet\\\",\\\"color\\\":\\\"black\\\"}",Text4:"{\\\"text\\\":\\\"================\\\",\\\"color\\\":\\\"black\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~1 ~-2 ~ wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"================\\\",\\\"color\\\":\\\"black\\\"}",Text2:"{\\\"text\\\":\\\"Détruire la\\\",\\\"color\\\":\\\"black\\\"}",Text3:"{\\\"text\\\":\\\"structure\\\",\\\"color\\\":\\\"black\\\"}",Text4:"{\\\"text\\\":\\\"================\\\",\\\"color\\\":\\\"black\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~ ~-1 ~-1 ~7 ~1 ~1 air\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~ chain_command_block 11 replace {auto:1,Command:"/command block inutil, permet juste d'éviter un bug du générateur"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~ chain_command_block 13 replace {auto:1,Command:"/scoreboard players set @a[score_name_min=2] name 0"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~ repeating_command_block 5 replace {auto:1,Command:"/execute @a ~ ~ ~ scoreboard players add @a name 1 {SelectedItem:{id:minecraft:carrot_on_a_stick,tag:{display:{Name:tp}}}}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~ chain_command_block 13 replace {auto:1,Command:"/scoreboard players set @e[score_tp_min=1] tp 0"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ repeating_command_block 5 replace {auto:1,Command:"/tp @e[score_tp_min=1,score_name_min=1] ~ ~10 ~"}},{id:MinecartCommandBlock,Command:setblock ~ ~ ~1 command_block 0 replace {Command:fill ~ ~-3 ~-1 ~ ~ ~ air}},{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 redstone_block},{id:MinecartCommandBlock,Command:kill @e[type=MinecartCommandBlock,r=1]}]}]}]}
/scoreboard objectives add tp stat.useItem.minecraft.carrot_on_a_stick
/scoreboard objectives add name dummy
/execute @a ~ ~ ~ scoreboard players set @a name 1 {SelectedItem:{id:minecraft:carrot_on_a_stick,tag:{display:{Name:tp}}}}
/scoreboard players set @a[score_name_min=1] name 0
/tp @e[score_tp_min=1,score_name_min=1] ~ ~10 ~
/scoreboard players set @e[score_tp_min=1] tp 0