Je voudrais rajouter un could down à se laser et j'ai un problème de son ils ne marche pas :
on rightclick with redstone repeater item:
cancel event
set {_density} to 100
set {_loc} to location of player
if player's horizontal facing is north:
set {_loc}'s x-coord to {_loc}'s x-coord+0.2
else if player's horizontal facing is east:
set {_loc}'s z-coord to {_loc}'s z-coord+0.2
else if player's horizontal facing is south:
set {_loc}'s x-coord to {_loc}'s x-coord-0.2
else if player's horizontal facing is west:
set {_loc}'s z-coord to {_loc}'s z-coord-0.2
set {_loc}'s y-coord to {_loc}'s y-coord+1.6
set {_t} to true
set {_int} to 0
loop blocks forward {_loc}:
add 1 to {_int}
if {_t} is true:
if loop-block is not air:
set {_location.2} to location of loop-block
set {_t} to false
if {_int} > 50:
set {_t} to false
set {_location.2} to location of loop-block
if {_location.2} is set:
set {_location.1} to {_loc}
set {_x.1} to x-coordinate of {_location.1}
set {_x.2} to x-coordinate of {_location.2}
set {_y.1} to y-coordinate of {_location.1}
set {_y.2} to y-coordinate of {_location.2}
set {_z.1} to z-coordinate of {_location.1}
set {_z.2} to z-coordinate of {_location.2}
set {_x.difference} to ({_x.2} - {_x.1}) / {_density}
set {_y.difference} to ({_y.2} - {_y.1}) / {_density}
set {_z.difference} to ({_z.2} - {_z.1}) / {_density}
execute console command "/playsound EXPLODE High %name of player%"
loop {_density} times:
increase x-coordinate of {_location.1} by {_x.difference}
increase y-coordinate of {_location.1} by {_y.difference}
increase z-coordinate of {_location.1} by {_z.difference}
execute console command "particle flame %x-coordinate of {_location.1}% %y-coordinate of {_location.1}% %z-coordinate of {_location.1}% 0 0 0 0 1 force"
wait 0.1 tick
ignite targeted entity
damage targeted entity by 20 hearts
if targeted entity is a player:
broadcast "&c%player% &7a tué &c%targeted entity%"