Aller au contenu
  • 0

mini-jeux merci de me corriger


Question

Posté(e)

bonjour est ce que vous pouvez tester mon skript et me dire si il est correcte, si non merci de corriger mes erreur

 

command /ride bat:
   trigger:
       spawn a bat at location of player
       make player ride last spawned bat
       add 1 to {bat.variable}

on vehicle steer:
   if event-button is space:
       push vehicle of player upwards at speed 0.4
   if event-button is w:
       push vehicle of player in the direction of player at speed 0.4
   if event-button is a:
       push vehicle of player to the left at speed 0.1
   if event-button is d:
       push vehicle of player to the right at speed 0.1
   if event-button is s:
       push vehicle of player backwards at speed 0.2

on sneak toggle:
   if player is riding:
       kill player's vehicle
       wait 1 tick
       make player execute command "/ride bat"

on right click with tnt:
   send "&a3 secondes" to player
   wait 1 second
   send "&a2 secondes" to player
   wait 1 second
   send "&a1 secondes" to player
   wait 1 second
   send "&awooo!!" to player
   make the player shoot primed tnt at speed 5

on right click with stick:
   wait 1 tick
   make player execute command "/ride bat"
   make player execute command "/check"

command /check:
   trigger:
       loop all players:
           if loop-player's {bat.variable} is 5
               make player execute command "/loos"
           else
               stop

command /loos:
   trigger:
       make player execute command "/gamemode 3"
       make player execuet command "/kill"

7 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Salut,

 

L’événement de randomSK (on vehicle steer ) ne fonctionne pas chez moi, mais voila pour le reste:

 

command /ride bat:
   trigger:
       spawn a bat at location of player
       make player ride last spawned bat
       add 1 to {bat.%player%.variable}

vehicle button press:
   if event-button is space:
       push vehicle of player upwards at speed 0.4
   if event-button is w:
       push vehicle of player in the direction of player at speed 0.4
   if event-button is a:
       push vehicle of player to the left at speed 0.1
   if event-button is d:
       push vehicle of player to the right at speed 0.1
   if event-button is s:
       push vehicle of player backwards at speed 0.2

on sneak toggle:
   if player is riding:
       kill player's vehicle
       wait 1 tick
       make player execute command "/ride bat"

on right click with tnt:
   send "&a3 secondes" to player
   wait 1 second
   send "&a2 secondes" to player
   wait 1 second
   send "&a1 secondes" to player
   wait 1 second
   send "&awooo!!" to player
   make the player shoot primed tnt at speed 5

on right click with stick:
   wait 1 tick
   make player execute command "/ride bat"
   make player execute command "/check"

command /check:
   trigger:
       loop all players:
           if {bat.%loop-player%.variable} is 5:
               make player execute command "/loos"
           else:
               stop

command /loos:
   trigger:
       make player execute command "/gamemode 3"
       make player execute command "/kill"

  • 0
Posté(e)

Et ça sa marché ?

command /ride bat:
   trigger:
       spawn a bat at location of player
       make player ride last spawned bat

on death:
   add 1 to {bat.%player%.variable}
   make player execute command "/ride bat"
  make player execute commande "/check"


vehicle button press:
   if event-button is space:
       push vehicle of player upwards at speed 0.4
   if event-button is w:
       push vehicle of player in the direction of player at speed 0.4
   if event-button is a:
       push vehicle of player to the left at speed 0.1
   if event-button is d:
       push vehicle of player to the right at speed 0.1
   if event-button is s:
       push vehicle of player backwards at speed 0.2

on sneak toggle:
   if player is riding:
       kill player's vehicle
       wait 1 tick
       make player execute command "/ride bat"

on right click with tnt:
   send "&a3 secondes" to player
   wait 1 second
   send "&a2 secondes" to player
   wait 1 second
   send "&a1 secondes" to player
   wait 1 second
   send "&awooo!!" to player
   make the player shoot primed tnt at speed 5

command /check:
   trigger:
       loop all players:
           if {bat.%loop-player%.variable} is 5:
               make player execute command "/loos"
           else:
               stop

command /loos:
   trigger:
       make player execute command "/gamemode 3"
       make player execute command "/kill"

  • 0
Posté(e)
Et ça sa marché ?

command /ride bat:
   trigger:
       spawn a bat at location of player
       make player ride last spawned bat

on death:
   add 1 to {bat.%player%.variable}
   make player execute command "/ride bat"
  make player execute commande "/check"


vehicle button press:
   if event-button is space:
       push vehicle of player upwards at speed 0.4
   if event-button is w:
       push vehicle of player in the direction of player at speed 0.4
   if event-button is a:
       push vehicle of player to the left at speed 0.1
   if event-button is d:
       push vehicle of player to the right at speed 0.1
   if event-button is s:
       push vehicle of player backwards at speed 0.2

on sneak toggle:
   if player is riding:
       kill player's vehicle
       wait 1 tick
       make player execute command "/ride bat"

on right click with tnt:
   send "&a3 secondes" to player
   wait 1 second
   send "&a2 secondes" to player
   wait 1 second
   send "&a1 secondes" to player
   wait 1 second
   send "&awooo!!" to player
   make the player shoot primed tnt at speed 5

command /check:
   trigger:
       loop all players:
           if {bat.%loop-player%.variable} is 5:
               make player execute command "/loos"
           else:
               stop

command /loos:
   trigger:
       make player execute command "/gamemode 3"
       make player execute command "/kill"

Tu à 2erreurs: la première ci dessous:

Et ça sa marché ?e

on death:
   add 1 to {bat.%player%.variable}
   make player execute command "/ride bat"
  make player execute commande "/check"

Il y a un e à commande au dessus c'est command :) la deuxième je ne sais pas

×
×
  • 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.