Aller au contenu

Messages recommandés

Posté(e)

Bonjour/bonsoir

je suis en train de crée un lazer game comme un quake sauf que a la place de la houe ses un Repeater qui qui lance un raillons de redstone et si il touche sa tue la personne

 

merci a celui ou celle qui me le feras :D

Posté(e)

Voila :) !

Ps : Skript de ligne droite créer par Professeur Craft

 

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 mob.ghast.fireball @a %x-coordinate of {_location.1}% %y-coordinate of {_location.1}% %z-coordinate of {_location.1}% 1 1 1"


   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%"

  • J'aime 1
  • 4 semaines après...
Posté(e)

à chaque fois que j'installe SKgeometry, beh bim pus rien de marche ;-

Posté(e)

Particules invisibles, et tu peux tiré à travers les mûrs xD

 

Moi la ligne de particule marche très bien je l'ai custom

Comment tu as fait stp ? Quel' adonné as tu mis ?

 

Pour information, je peux tirer à travers les mûrs x) @Soufreur78

Posté(e)
Attention au triple posts @Yoyo2205

 

 

Lel j'ai tellement oublier de regarder le sujet que je réponds tout le temps xD habituellement... Je ne Fait double poste

Invité TheJyre4RF
Posté(e)

regarde la vidéo y'a le code

et n'hésite pas à t'abonnner

Posté(e)
regarde la vidéo y'a le code

et n'hésite pas à t'abonnner

Et question pour tirer a travers les mûrs ont fait comment pour éviter

  • 2 semaines après...
Invité TheJyre4RF
Posté(e)

tu fait une vérification si la coordonné dans la loop est sur un block tu stop

Posté(e)
tu fait une vérification si la coordonné dans la loop est sur un block tu stop

Ouai fin maintenant je le fais en java donc au calme x) Sinon merci ;)

  • 4 semaines après...
Posté(e)
Voila :) !

Ps : Skript de ligne droite créer par Professeur Craft

 

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 mob.ghast.fireball @a %x-coordinate of {_location.1}% %y-coordinate of {_location.1}% %z-coordinate of {_location.1}% 1 1 1"


   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%"

Voila :) !

Ps : Skript de ligne droite créer par Professeur Craft

 

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 mob.ghast.fireball @a %x-coordinate of {_location.1}% %y-coordinate of {_location.1}% %z-coordinate of {_location.1}% 1 1 1"


   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%"

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.