nathan3030 Posté(e) le 5 juin 2017 Posté(e) le 5 juin 2017 Version de minecraft / skript : 1.7.10 Type du skript : NoBloc dans un rayon du spawn Description du skript : Bonjour , je voudrais un skript permettant d’empêcher de poser certains blocs dans un rayon certain rayon autour d'une zone . Commandes: /nobloc setmid >> Poser le milieu du rayon /nobloc add <id> >> rajouter un item a bloquer /nobloc rayon <number> >> definir le rayon a bloquer
Boucki Posté(e) le 6 juin 2017 Posté(e) le 6 juin 2017 t'as pas précisé s'il fallait plusieurs zone donc je ne me suis pas compliqué la tâche, la prochaine fois précise plus de chose, là c'est très peu complet command /nobloc [<text>] [<itemtype>] [<integer>]: permission: ta permission trigger: if arg 1 is not set: send "&a[&2No&9-&2Bloc] /nobloc setmid || /nobloc add <id> || /nobloc rayon 0 <Rayon>||" else if arg 1 is "setmid" set {zone.noblock} at location of player else if arg 1 is "add": if arg 2 is not set: send "&a[&2No&9-&2Bloc]|| /nobloc add <id> ||" stop else: add arg 2 to {listeitem.zone.noblock::*} else if arg 1 is "rayon": if arg 2 is not set: send "&a[&2No&9-&2Bloc]|| /nobloc rayon 0 <Rayon> ||" stop else if arg 2 is "0": send "&a[&2No&9-&2Bloc]|| /nobloc rayon 0 <Rayon> ||" stop else if arg 3 is not set: send "&a[&2No&9-&2Bloc]|| /nobloc rayon 0 <Rayon> ||" stop else: set {rayonbloc} to arg 3 on place: loop {listeitem.zone.noblock::*}: if loop-value is event-block: if distance between player and {zone.noblock} > {rayonbloc}: cancel event send "&a[&2No&9-&2Bloc]|| Tu ne peux pas poser ce bloc dans cette zone ! ||"
Messages recommandés