Aller au contenu
  • 0

Skript de /mod


Question

Posté(e)

Bonsoir je suis en 1.8 et j'arrive pas à freeze le joueur avec l'item j'aimerai de l'aide s'il vous plait, j'ai pas d'erreur à part des tabs qui me gavent à ne pas vouloir changer.. bref voici mon code :

et j'aimerai que dans le /mod l'inventaire du joueur soit set slot mais qu'après quand il refasse /mod son inventaire revienne ( celui avant le /mod )

JE NE VEUX PAS DE RESSOURCE SKRIPT JE VEUX CE CODE MERCI :

command /mod:
   trigger:
       player has permission "mod.use":
           {modmode.%player%} is not set:
               set {modmode.%player%} to true
               send "&6Tu as activé ton mod mode !"
               set slot 0 of player to 1 Ice named "&aFreeze"
               stop
           {modmode.%player%} is true:
               clear {modmode.%player%}
               send "&6Tu as désactivé ton mod mode !"
               stop

command /freeze [<player>] [<text>]:
   executable by: player
   aliases: gel
   permission: staff.use
   permission message: &8[&cFreeze&8] &eTu n'as pas le droit de Freeze !
   trigger:
       if arg 1 is online:
           if arg 2 is not set:
               if {moderation.freezeverif.%arg 1%} is not set:
                   send "&8[&cFreeze&8] &eDonne une raison !" to player
               if {moderation.freezeverif.%arg 1%} is true:
                   delete {moderation.freezeverif.%arg 1%}
                   send "&8[&cFreeze&8] &eTu as retiré le &6Freeze &edu Joueur &6%arg 1%" to player
                   send "&8[&cFreeze&8] &eTu n'es plus en &6Freeze &e!" to arg 1
                   delete {moderation.freezeverif.%arg 1%}
                   execute console command "/effect %arg 1% clear"
           else:
               if {moderation.freezeverif.%arg 1%} is not set:
                   send "&8[&cFreeze&8] &eTu as &6Freeze &ele Joueur &6%arg 1%" to player
                   send "&8[&cFreeze&8] &eTu as été &6Freeze &epar &6%player% &epour : &6%arg 2% &e!" to arg 1
                   send "&8[&cFreeze&8] &eEn cas de déconnexion, tu seras sanctionné d'un &6ban &e!" to arg 1
                   apply jump boost 250 to arg 1 for 999 days
                   apply slowness 250 to arg 1 for 999 days
                   apply blindness 250 to arg 1 for 999 days
                   set action bar of arg 1 to "&8[&cFreeze&8] &eTu as été &6Freeze &epar &6%player%"
                   set {moderation.freezeverif.%arg 1%} to true
       else:
           send "&8[&cFreeze&8] &eSéléctionne un Joueur en Ligne !" to player

on quit:
   if {moderation.freezeverif.%player%} is true:
       execute console command "/ban %player% Déconnexion en Freeze"
       delete {moderation.freezeverif.%player%}

on command " ":
   if {moderation.freezeverif.%player%} is true:
       cancel event
       send "&8[&cFreeze&8] &eTu ne peux pas executer des commandes !" to player

on place:
   if {moderation.freezeverif.%player%} is true:
       cancel event
       send "&8[&cFreeze&8] &eTu ne peux pas placer de block !" to player

on break:
   if {moderation.freezeverif.%player%} is true:
       cancel event
       send "&8[&cFreeze&8] &eTu ne peux pas casser de blocks" to player

on damage:
   if {moderation.freezeverif.%attacker%} is true:
       cancel event
       send "&8[&cFreeze&8] &7eu ne peux pas donner de coup !" to attacker

on pickup:
   if {moderation.freezeverif.%player%} is true:
       cancel event
       send "&8[&cFreeze&8] &eTu ne peux pas prendre des items !" to player


on rightclick on entity:
   if player has permission "mod.items":
       if player's tool is a Ice:
           if name of player's tool is "&aFreeze":
               set {freeze.%player%} to true
               apply blindness 250 to the entity for 999 days
               apply slowness 250 to the entity for 999 days
               apply jump boost 250 to the entity for 999 days
           if {freeze.%player%} is true:
               set {freeze.%player%} to false
               remove blindness from the entity
               remove slowness from the entity
               remove jump boost from the entity
               stop




On drop:
   if event-item is ice:
       if name of event-item is "&aFreeze":
           cancel event

10 réponses à cette question

Messages recommandés

  • 0
Posté(e)

J'essaye comme ça, mais les effets ne se mettent plus et juste le broadcast se dit

on rightclick on entity:
   if player has permission "mod.items":
       if player's tool is a Ice:
           if name of player's tool is "&aFreeze":
               set {freeze.%entity%} to true
               apply blindness 250 to the entity for 999 days
               apply slowness 250 to the entity for 999 days
               apply jump boost 250 to the entity for 999 days
           if {freeze.%entity%} is true:
               set {freeze.%entity%} to false
               remove blindness from the entity   
               remove slowness from the entity
               remove jump boost from the entity
               broadcast " sa marche? " 

 

pareil pour lui :

on rightclick on entity:
   if player has permission "mod.items":
       if player's tool is a Ice:
           if name of player's tool is "&aFreeze":
               if {freeze.%player%} is false:
                   set {freeze.%player%} to true
                   apply blindness 250 to the entity for 999 days
                   apply slowness 250 to the entity for 999 days
                   apply jump boost 250 to the entity for 999 days
               if {freeze.%player%} is true:
                   set {freeze.%player%} to false
                   remove blindness from the entity    
                   remove slowness from the entity
                   remove jump boost from the entity
                   broadcast " sa marche? "    

 

pareil pour lui :

on rightclick on entity:
   if player has permission "mod.items":
       if player's tool is a Ice:
           if name of player's tool is "&aFreeze":
               if {freeze.%player%} is false:
                   set {freeze.%player%} to true
                   apply blindness 250 to the entity for 999 days
                   apply slowness 250 to the entity for 999 days
                   apply jump boost 250 to the entity for 999 days
               if entity has blindness:
                   if entity has slowness:
                       if entity has jump boost:
                           set {freeze.%player%} to false
                           remove blindness from the entity     
                           remove slowness from the entity
                           remove jump boost from the entity
                           broadcast " sa marche? "    

  • 0
Posté(e)
Remplace:

if {freeze.%entity%} is true:

par

else if {freeze.%entity%} is true:

pour voir

on rightclick on entity:
   if {modmode.%player%} is true:
   if player has permission "mod.items":
       if player's tool is a Ice:
           if name of player's tool is "&aFreeze":
               if {freeze.%player%} is false:
                   set {freeze.%player%} to true
                   apply blindness 250 to the entity for 999 days
                   apply slowness 250 to the entity for 999 days
                   apply jump boost 250 to the entity for 999 days
               else if {freeze.%entity%} is true:
                   remove blindness from the entity    
                   remove slowness from the entity
                   remove jump boost from the entity

 

L'événement ne se produit plus

  • 0
Posté(e)

Bon j'ai fais comme ça les effet s'en vont bien, mais je peux plus freeze correctement ( ce que je veux dire c'est que ça n'applique plus les effets demandé mais sa les enlèves juste quand on les a, sa ne les mets pas et j'arrive pas a faire que si le joueur na pas ces effets sa lui enlève )

 

on rightclick on entity:
   if player has permission "mod.items":
       if player's tool is a Ice:
           if name of player's tool is "&aFreeze":
               if {freeze.%player%} is false:
                   set {freeze.%player%} to true
                   apply blindness 250 to the entity for 999 days
                   apply slowness 250 to the entity for 999 days
                   apply jump boost 250 to the entity for 999 days
               if entity has blindness:
                   if entity has slowness:
                       if entity has jump boost:
                           set {freeze.%player%} to false
                           remove blindness from the entity  
                           remove slowness from the entity
                           remove jump boost from the entity
                           broadcast " sa marche? "

 

comme ça aussi sa ne marche pas :

on rightclick on entity:
   if player has permission "mod.items":
       if player's tool is a Ice:
           if name of player's tool is "&aFreeze":
               if {freeze.%entity%} is false:
                   set {freeze.%entity%} to true
                   apply blindness 250 to the entity for 999 days
                   apply slowness 250 to the entity for 999 days
                   apply jump boost 250 to the entity for 999 days
               if entity has blindness:
                   if entity has slowness:
                       if entity has jump boost:
                           set {freeze.%entity%} to false
                           remove blindness from the entity   
                           remove slowness from the entity
                           remove jump boost from the entity
                           broadcast " sa marche? "

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.