spec when dead
This commit is contained in:
parent
4b59075402
commit
d381f32623
1 changed files with 25 additions and 5 deletions
30
deacoudre.sk
30
deacoudre.sk
|
@ -1,20 +1,32 @@
|
||||||
command deacoudre: # lancement de la partie
|
command deacoudre [<text>]: # lancement de la partie
|
||||||
executable by: players
|
executable by: players
|
||||||
description: Lance une partie de dé à coudre.
|
description: Lance une partie de dé à coudre.
|
||||||
trigger:
|
trigger:
|
||||||
|
if arg-1 is set:
|
||||||
|
if player is op:
|
||||||
|
if arg-1 is "spawn":
|
||||||
|
set {thimble.location} to location of player
|
||||||
|
send "&aLe dé à coudre téléportes désormais ici."
|
||||||
|
stop
|
||||||
|
else:
|
||||||
|
send option("errorMessage")
|
||||||
|
stop
|
||||||
|
if {thimble.location} is not set:
|
||||||
|
send "&4Tu n'as pas défini de point de téléportation : &r&l/deacoudre spawn"
|
||||||
|
stop
|
||||||
if {party.player.%uuid of player%} is set:
|
if {party.player.%uuid of player%} is set:
|
||||||
if {thimble} is true:
|
if {thimble} is true:
|
||||||
delete {thimble}
|
delete {thimble}
|
||||||
teleport player to location at 101.5, 83, -314 in world "world"
|
|
||||||
execute player command "fill 103 57 -313 99 57 -305 water"
|
|
||||||
loop {party.list::*}:
|
loop {party.list::*}:
|
||||||
send "&cPartie de dé à coudre terminée." to loop-value
|
send "&cPartie de dé à coudre terminée." to loop-value
|
||||||
|
teleport loop-value to {thimble.location}
|
||||||
set gamemode of loop-value to creative
|
set gamemode of loop-value to creative
|
||||||
|
execute player command "fill 103 57 -313 99 57 -305 water"
|
||||||
else:
|
else:
|
||||||
set {thimble} to true
|
set {thimble} to true
|
||||||
loop {party.list::*}:
|
loop {party.list::*}:
|
||||||
send "&aDémarrage de la partie de dé à coudre !" to loop-value
|
send "&aDémarrage de la partie de dé à coudre !" to loop-value
|
||||||
teleport loop-value to location at 101.5, 83, -314 in world "world"
|
teleport loop-value to {thimble.location}
|
||||||
set gamemode of loop-value to adventure
|
set gamemode of loop-value to adventure
|
||||||
feed loop-value
|
feed loop-value
|
||||||
heal loop-value
|
heal loop-value
|
||||||
|
@ -42,6 +54,14 @@ every 0.5 second in "world": # pose du bloc et téléporatation
|
||||||
if {_zLocationBlock1} and {_zLocationBlock2} >= 8:
|
if {_zLocationBlock1} and {_zLocationBlock2} >= 8:
|
||||||
continue
|
continue
|
||||||
set block at loop-value to wool
|
set block at loop-value to wool
|
||||||
teleport loop-value to location at 101.5, 83, -314 in world "world"
|
teleport loop-value to {thimble.location}
|
||||||
feed loop-value
|
feed loop-value
|
||||||
heal loop-value
|
heal loop-value
|
||||||
|
|
||||||
|
on death:
|
||||||
|
if {thimble} is true:
|
||||||
|
if {party.player.%uuid of player%} is set:
|
||||||
|
cancel event
|
||||||
|
set gamemode of player to spectator
|
||||||
|
loop {party.list::*}:
|
||||||
|
send "&c%player%&b a été éliminé !" to loop-value
|
||||||
|
|
Loading…
Reference in a new issue