Classement
Contenu populaire
Affichage du contenu avec la meilleure réputation le 25/12/2015 dans toutes les zones
-
Ajout d'une nouvelles règle sur la modération des sujets n'ayant aucune activité5 points
-
Bonjour/Bonsoir, Je poste aujourd'hui ce code puisque j'ai vu que beaucoup de personnes cherchaient cela ^^^ Il permet grâce à la commande /coffre open d'ouvrir un coffre comme un enderchest ou vous pouvez mettre vos objets dedans. on inventory close: if {container::current::%player%} is set: if "%event-inventory%" is "inventory of <none>": set {container::%{container::current::%player%}%::%player%} to event-inventory's serialized contents clear {container::current::%player%} command /coffre open: permission: coffre.open permission message: &cTu n'as pas la permission d'effectuer cette commande trigger: set {_inv} to chest with 6 rows named "Coffre prive" if {container::Test::%player%} is set: set {_inv}'s serialized contents to {container::Test::%player%} open {_inv} to player set {container::current::%player%} to "Test" N'oubliez pas de liker si ça vous a été utile.4 points
-
Je vous poste cela dans quelques minutes ;) EDIT: on inventory close: if {container::current::%player%} is set: if "%event-inventory%" is "inventory of <none>": set {container::%{container::current::%player%}%::%player%} to event-inventory's serialized contents clear {container::current::%player%} command /enderchest: permission: enderchest.open permission message: &cTu n'as pas la permission d'effectuer cette commande trigger: set {_inv} to chest with 6 rows named "EnderChest" if {container::Test::%player%} is set: set {_inv}'s serialized contents to {container::Test::%player%} open {_inv} to player set {container::current::%player%} to "Test"3 points
-
Tu peux le faire avec: if helmet of player is leather cap: if chestplate of player is leather tunic: if leggings of player is leather pants: if boots of player is leather boots:3 points
-
Je pense que cela peut se faire comme ça : command /setuhcrandom1: trigger: set {uhc.tp.1} to location of player send "&7&oPoint défini !" command /setuhcrandom2: trigger: set {uhc.tp.2} to location of player send "&7&oPoint défini !" command /setuhcrandom3: trigger: set {uhc.tp.3} to location of player send "&7&oPoint défini !" command /setuhcrandom4: trigger: set {uhc.tp.4} to location of player send "&7&oPoint défini !" command /uhcrandom: trigger: set {_a} to a random integer between 1 and 4 if {_a} = 1: teleport player to {uhc.tp.1} if {_a} = 2: teleport player to {uhc.tp.2} if {_a} = 3: teleport player to {uhc.tp.3} if {_a} = 4: teleport player to {uhc.tp.4} Ou en plus compact: command /setuhcrandom [<text>]: trigger: if arg 1 is "1": set {uhc.tp.1} to location of player send "&7&oPoint défini !" if arg 1 is "2": set {uhc.tp.2} to location of player send "&7&oPoint défini !" if arg 1 is "3": set {uhc.tp.3} to location of player send "&7&oPoint défini !" if arg 1 is "4": set {uhc.tp.4} to location of player send "&7&oPoint défini !" if arg 1 is not "1" or "2" or "3" or "4": send "&cVous pouvez seulement entrer comme premier argument: 1 - 2 - 3 ou 4" command /uhcrandom: trigger: set {_a} to a random integer between 1 and 4 if {_a} = 1: teleport player to {uhc.tp.1} if {_a} = 2: teleport player to {uhc.tp.2} if {_a} = 3: teleport player to {uhc.tp.3} if {_a} = 4: teleport player to {uhc.tp.4} Ps: code non testé2 points
-
on damage: if projectile is a snowball: damage the victim by 2 hearts2 points
-
on damage: if victim is a player: cancel event set {_dir} to horizontal facing of attacker set {_amount} to damage/2 damage victim by {_amount} hearts push victim {_dir} at speed 0.3 push victim up at speed 0.2 J'peux pas tester mais ça devrais marcher :p Ou sinon effectivement il me semble que NoHitDelay es plus optimisé pour ce genre de choses, je te laisse voir (:1 point
-
Empêche les joueurs de poser les têtes ça te va ou faut carrément bloquer le spawn de l'entité ? Sinon : on rightclick with 397:1: cancel event EDIT: Pour l'empêcher de spawn c'est : on spawn of an wither: cancel event1 point
-
1 point
-
1 point
-
Avec uuid: on damage: if attacker is a player: if attacker is not victim: set {test.%uuid of victim%} to "%uuid of attacker%" on death: if attacker is not set: if {test.%uuid of victim%} is set: loop all players: if uuid of loop-player is {test.%uuid of victim%}: add 1 to {test.%uuid of loop-player%} else if attacker is set: add 1 to {test.%uuid of attacker%} delete {test.%uuid of victim%} on quit: delete {test.%uuid of player%} Sans uuid: on damage: if attacker is a player: if attacker is not victim: set {test.%victim%} to "%attacker%" on death: if attacker is not set: if {test.%victim%} is set: loop all players: if uuid of loop-player is {test.%victim%}: add 1 to {test.%loop-player%} else if attacker is set: add 1 to {test.%attacker%} delete {test.%victim%} on quit: delete {test.%player%}1 point
-
1 point
-
command /SwordName [<text>]: trigger: player is in "EditKit": player is holding a diamond sword: if arg 1 is set: if arg 1 contain "&" or " " or "pd" or "fdp" or "ntm": message "&cCe nom contient des caractères invalides ou des espaces." stop else: if length of arg-1 is greater than 12: message "&cCe nom contient plus de 12 caractères" stop else: set name of tool of player to "&b%argument 1%" En principe ça devrais marcher ^^1 point
-
1 point
-
command /hub: aliases: lobby trigger: clear player's inventory wait 1.59 ticks set slot 0 of the player to compass named "&cJeux" set slot 4 of the player to a ender chest named "&3Boutique" set slot 8 of the player to a beacon named "&4Gadgets" send "{@prefixhub}&f Vous avez été téléporter au HUB." teleport player to {hub} Wait 1.59 tick êmpeche ce genre de lag, 1 tick n'est pas suffisant1 point
-
Exact, comme cela: on inventory click: if clicked item is a bed named "&6&lRevenir au Hub": cancel event1 point
-
Je conseille aussi de mettre Ou un truc comme ça ^^1 point
-
1 point
-
1 point
-
Il y a un plugin exprès pour sa ^^ je l'ai également mis sur mon serveur car ce plugin est juste génial ! Plugin : NoHitDelay1 point
