JiingoPvp² Posté(e) le 13 mars 2016 Posté(e) le 13 mars 2016 Salut !, Alors je m'explique, je cherche a faire un FFA Mais le problème vien là, j'aimerai que les joueurs puissent poser des blocs, Et j'aimerai que genre toute les 10 minutes les blocs de la Zone Soit Clear, Merci !.
Soufreur78 Posté(e) le 13 mars 2016 Posté(e) le 13 mars 2016 voila : on break: if "%World of player%" is "ton.world": {skywars.game.ignore.locations::%location of event-block%} is not set add location of block to {skywars.game.broken.blocks::*} add type of block to {skywars.game.broken.type::*} set {skywars.game.ignore.locations::%location of event-block%} to true command /skywarsregen: trigger: loop {skywars.game.broken.blocks::*}: set {_loc} to loop-value set block at {_loc} to {skywars.game.broken.type::%loop-index%} clear {skywars.game.broken.blocks::*} clear {skywars.game.broken.type::*} clear {skywars.game.ignore.locations::*} on place: if "%World of player%" is "ton.world": {skywars.games.ignore.locations:%location of event-block%} is not set add location of block to {skywars.games.place.blocks::*} add type of block to {skywars.games.place.type::*} set {skywars.games.ignore.locations::%location of event-block%} to true command /skywarsregen1: trigger: loop {skywars.games.place.blocks::*}: set {_loc} to loop-value set block at {_loc} to air clear {skywars.games.place.blocks::*} clear {skywars.games.place.type::*} clear {skywars.games.ignore.locations::*} every 10 minutes in world "tonworld": execute console command "/skywarsregen1" execute console command "/skywarsregen"
besuper Posté(e) le 13 mars 2016 Posté(e) le 13 mars 2016 A tu a utiliser mon bout de code de mon skywars :) En gros je t'explique : Quand il casse un block: on break: if "%World of player%" is "ton.world": {skywars.game.ignore.locations::%location of event-block%} is not set add location of block to {skywars.game.broken.blocks::*} add type of block to {skywars.game.broken.type::*} set {skywars.game.ignore.locations::%location of event-block%} to true Sa rajouter ce block dans une liste Puis cette commande command /skywarsregen: trigger: loop {skywars.game.broken.blocks::*}: set {_loc} to loop-value set block at {_loc} to {skywars.game.broken.type::%loop-index%} clear {skywars.game.broken.blocks::*} clear {skywars.game.broken.type::*} clear {skywars.game.ignore.locations::*} Rajoute tout les block dans cette liste pour faire un regen Pareil pour le on place :) on place: if "%World of player%" is "ton.world": {skywars.games.ignore.locations:%location of event-block%} is not set add location of block to {skywars.games.place.blocks::*} add type of block to {skywars.games.place.type::*} set {skywars.games.ignore.locations::%location of event-block%} to true Commande pour supprimer les block poser dans la liste command /skywarsregen1: trigger: loop {skywars.games.place.blocks::*}: set {_loc} to loop-value set block at {_loc} to air clear {skywars.games.place.blocks::*} clear {skywars.games.place.type::*} clear {skywars.games.ignore.locations::*} Et la bas tout les 10 minutes sa regen :) every 10 minutes in world "tonworld": execute console command "/skywarsregen1" execute console command "/skywarsregen"
BlanCow_ Posté(e) le 16 mars 2016 Posté(e) le 16 mars 2016 Salut !, Alors je m'explique, je cherche a faire un FFA Mais le problème vien là, j'aimerai que les joueurs puissent poser des blocs, Et j'aimerai que genre toute les 10 minutes les blocs de la Zone Soit Clear, Merci !. tien ce skipt supprime les blocs dans un monde precis toutes les 10 minutes http://pastebin.com/5zFgRg3d
Messages recommandés