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"