Aller au contenu

Messages recommandés

Posté(e)

Titre du sujet : Demande de scripts pour un œuf vide

Sujet : Pour Serveur survival

Version de minecraft / skript : 1.11.2

Type du skript : Skript Oeuf vide

Description du script :

 

Recherche un scripts quand on utilise un oeuf vide id:383 quand on click gauche avec œuf a la main

se transforme avec mob touchée.

 

Cordialement ,

 

Mangoldjo

Posté(e)

on leftclick holding a 383:
   if victim is TONMOB:
       give 1 (ID DE L'OEUF) to attacker
       stop
   else if victim is TONMOB:
       give 1 (ID DE L'OEUF) to attacker
       stop
   else if victim is TONMOB:
       give 1 (ID DE L'OEUF) to attacker
       stop
   else if victim is TONMOB:
       give 1 (ID DE L'OEUF) to attacker
       stop

 

et tu dois continuer ^^ désolé j'ai pas le temps de tout faire :/

Posté(e)
on leftclick holding a 383:
   if victim is TONMOB:
       give 1 (ID DE L'OEUF) to attacker
       stop
   else if victim is TONMOB:
       give 1 (ID DE L'OEUF) to attacker
       stop
   else if victim is TONMOB:
       give 1 (ID DE L'OEUF) to attacker
       stop
   else if victim is TONMOB:
       give 1 (ID DE L'OEUF) to attacker
       stop

 

et tu dois continuer ^^ désolé j'ai pas le temps de tout faire :/

 

C'est bon mais je pense qu'il voulait plutot un skript lui permettant de give 1 oeuf lorsque le mob est touché par un oeuf lancer. Si c'est le cas il faut prendre ce code en complétant avec tous les mobs désirés:

 

on damage:
   if projectile is an egg:
       if attacker is a player:
           if victim is a creeper:
               give 1 creeper spawn egg to attacker
           else:
               if victim is a zombie:
                   give 1 zombie spawn egg to attacker

  • 2 semaines après...
Posté(e)

mangoldjo parlait bien des oeufs vides d'IDs 383:0-49

Il voulait que lors d'un click avec un oeuf vide sur un mob, le mob disparaisse et l'oeuf du joueur soit transformé en oeuf du mob cliqué.

Voici un code permettant de réaliser cela:

on rightclick on an entity:
   if {_oeuf.item} is not set:
       set {_oeuf.item} to spawn_egg named "&4Oeuf Vide" with lore "&bIl faut le remplir!"
   if tool of player is {_oeuf.item}:
       if {oeuf.trigger} == 1:
           if player has permission "perm.oeuf":
               teleport event-entity to the block 200 upwards the player
               wait 1 tick
               kill event-entity
               remove event-item from player's inventory
               wait 1 tick
               make console execute "minecraft:give %player% minecraft:spawn_egg 1 0 {EntityTag:{id:%event-entity%}}"

command /oeuf <text> [<player>]:
   permission: perm.oeuf.admin
   permission message: "&cVous n'avez pas la permission!"
   trigger:
       if {oeuf.trigger} is not set:
           set {oeuf.trigger} to 0
       if arg-1 is "on":
           set {oeuf.trigger} to 1
           send "&aEchange d'oeufs activé"
       else if arg-1 is "off":
           set {oeuf.trigger} to 0
           send "&cEchange d'oeufs désactivé"
       else if arg-1 is "give":
           if arg-2 is set:
               give spawn_egg named "&4Oeuf Vide" with lore "&bIl faut le remplir!" to arg-2
           else:
               give spawn_egg named "&4Oeuf Vide" with lore "&bIl faut le remplir!" to player
       else:
           send "&cUsage: /oeuf <on/off/give>" to player

×
×
  • 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.