on player right clicks block with:job_hammer_5|job_hammer_10: - if matches yes: - determine passively cancelled - animate animation:SWING_MAIN_HAND - debugblock clear - define mode - define direction #Define the building mode with shift right clicks - if : - determine passively cancelled - if : #Display in actionBar the mode - if <[mode]> == ligne: - playsound sound:entity_experience_orb_pickup - inventory flag slot:HAND mode:colonne - actionbar "<&gradient[from=0,255,239;to=22,124,186;style=rgb]>Marteau mode: <&r><&b><&l>colonne" - if <[mode]> == colonne: - playsound sound:entity_experience_orb_pickup - inventory flag slot:HAND mode:sol - actionbar "<&gradient[from=0,255,239;to=22,124,186;style=rgb]>Marteau mode: <&r><&b><&l>sol" - if <[mode]> == sol: - playsound sound:entity_experience_orb_pickup - inventory flag slot:HAND mode:mur - actionbar "<&gradient[from=0,255,239;to=22,124,186;style=rgb]>Marteau mode: <&r><&b><&l>mur" - if <[mode]> == mur: - playsound sound:entity_experience_orb_pickup - inventory flag slot:HAND mode:ligne - actionbar "<&gradient[from=0,255,239;to=22,124,186;style=rgb]>Marteau mode: <&r><&b><&l>ligne" - else: - playsound sound:entity_experience_orb_pickup - inventory flag slot:HAND mode:ligne - actionbar "<&gradient[from=0,255,239;to=22,124,186;style=rgb]>Marteau mode: <&r><&b><&l>Ligne" - else: #Blocking some type of blocks - if : - determine cancelled - else: #Check the builder wand mode - if <[mode]> == ligne: #Check the direction - if <[direction]> == east: #Check if is the display shape clicks or the confirm clicks (case display here) - if : - foreach ]> as:old_holobuild: - flag server holobuild:<-:<[old_holobuild]> - playsound sound:ui_cartography_table_take_result - flag holobuild_originn expire:3s - flag holobuild_origin: expire:3s #Show the shappe with debugblock - foreach ].blocks> as:holobuild: - debugblock <[holobuild]> d:2s color:lime color:lime color:lime - flag server holobuild:->:<[holobuild]> expire:3s #Check if is the display shape clicks or the confirm clicks (case confirm here) - else: - if <[mode]> == ligne: - if <[direction]> == east: #Define the block for build material - define block - if ].quantity[7]>: - flag holobuild_originn:! - flag holobuild_origin:! #Build the shape - foreach ].filter[advanced_matches[air|water|lava]]> as:holobuild_build: #Check if the build location is inside the island cuboid - if ]>: - playeffect effect:white_ash quantity:10 at:<[holobuild_build]> offset:1 visibility:10 - wait 10t - modifyblock <[holobuild_build]> <[block]> delayed - playsound sound:block_wood_place - take item:<[block]> from: - else: - actionbar "<&8>[<&c><&l>!<&8>] <&c>Vous n'avez pas suffisament de ressources !" #Repeat foreach builder wand mode + location :/