maxouviclouis Posté(e) le 4 septembre 2018 Posté(e) le 4 septembre 2018 (modifié) Bonjour je cherche qu'elle qu'un pour me faire un skript spécial ! Version de minecraft / skript : 1.8.8 Type du skript : Ajouter des fonctionnalitées au armure Description du script en détails : Le skript consisterai à, Le casque ferra résistance au feux Le plastron ferra résistance au fléché Le pantalon ferra Jump 2 Et les bottes annuleront les dégâts de la chute L'armure devra être protection 4 avec un lore "&cJe suis divin..." Merci de m'aide ! Je n'ai aucun système fais =/ Modifié le 4 septembre 2018 par maxouviclouis
Wineker Posté(e) le 4 septembre 2018 Posté(e) le 4 septembre 2018 T'as pas donné d'évènement, comment on tu veux qu'on obtienne l'armures ?
maxouviclouis Posté(e) le 4 septembre 2018 Auteur Posté(e) le 4 septembre 2018 (modifié) il y a 10 minutes, Wineker a dit : T'as pas donné d'évènement, comment on tu veux qu'on obtienne l'armures ? Pour un kits grace au plugins essentials :3 Modifié le 4 septembre 2018 par maxouviclouis
WeBer_Le_Pecheur Posté(e) le 4 septembre 2018 Posté(e) le 4 septembre 2018 (modifié) Il y a 4 heures, maxouviclouis a dit : Le plastron ferra résistance au fléché C'est un enchantement à mettre sur une armure, pas un effet applicable. Il en est de même avec ce que tu souhaite sur les chaussures. Donc voici ce que ça donne avec le heaume et le pantalon: (S'il ne fonctionne pas, installe SharpSk) options: lore : Je suis divin... on armor equip: lore of event-item is "{@lore}" if event-item is an diamond helmet: apply fire resistance without particles to player for 999 days # else if event-item is an diamond chestplate: else if event-item is an diamond leggings: apply jump boost 2 without particles to player for 999 days # else if event-item is an diamond boots: on armor unequip: lore of event-item is "{@lore}" if event-item is an diamond helmet: remove fire resistance from player # else if event-item is an diamond chestplate: else if event-item is an diamond leggings: remove jump boost from player # else if event-item is an diamond boots: Modifié le 4 septembre 2018 par WeBer_Le_Pecheur
noftaly Posté(e) le 4 septembre 2018 Posté(e) le 4 septembre 2018 (modifié) options: lore: Je suis divin... on armor equip: lore of event-item contains "{@lore}" if event-item is an diamond helmet: apply fire resistance without particles to player for 999 days else if event-item is an diamond chestplate: enchant player's chestplate with projectile protection 10 else if event-item is an diamond leggings: apply jump boost 2 without particles to player for 999 days else if event-item is an diamond boots: enchant player's boots with feather falling 10 on armor unequip: lore of event-item contains "{@lore}" if event-item is an diamond helmet: remove fire resistance from player else if event-item is an diamond leggings: remove jump boost from player on join: if lore of helmet of player contains "{@lore}": apply fire resistance without particles to player for 999 days else if lore of chestplate of player contains "{@lore}": enchant player's chestplate with projectile protection 10 else if lore of leggings of player contains "{@lore}": apply jump boost 2 without particles to player for 999 days else if lore of boots of player contains "{@lore}": enchant player's boots with feather falling 10 je me suis permis de modifier le code, en ajoutant un "contains lore" comme ca il n'y a pas de problème si il y a d'autres lore. J'ai aussi rajouter le projectile protection X et le feather falling X sur le plastron et les bottes. Et j'ai aussi rajouter un évent "on join" car... on sait jamais. Si leur potions s'enlève pendant leur déconnexion, ils l'auront à leur reconnexion. Et je n'ai pas testé le code. Donc dis moi si ca fonctionne ? Modifié le 4 septembre 2018 par noftaly
WeBer_Le_Pecheur Posté(e) le 4 septembre 2018 Posté(e) le 4 septembre 2018 (modifié) L'expression contains n'est pas buggé ? J'avais lu ça sur plusieurs post c'est pour ça que je ne l'utilise plus. Après pour les enchantements sur le plastron et les chaussures je pensais lui dire de les rajouter dans son kit sur essentials s'il voulait vraiment gardé ce choix là. Modifié le 4 septembre 2018 par WeBer_Le_Pecheur
noftaly Posté(e) le 4 septembre 2018 Posté(e) le 4 septembre 2018 Ca dépend la version de skript. Ca a été corrigé récemment, dans les dev30 et quelques. dev35 je crois
maxouviclouis Posté(e) le 5 septembre 2018 Auteur Posté(e) le 5 septembre 2018 [16:21:18] [Server thread/INFO]: [Skript] Reloading Divin.sk... [16:21:18] [Server thread/ERROR]: can't understand this event: 'on armor equip' (Divin.sk, line 4: on armor equip:') [16:21:18] [Server thread/ERROR]: can't understand this event: 'on armor unequip' (Divin.sk, line 15: on armor unequip:') [16:21:18] [Server thread/ERROR]: 'resistance without particles' is not a number (Divin.sk, line 24: apply fire resistance without particles to player for 999 days') [16:21:18] [Server thread/ERROR]: 'boost 2 without particles' is not a number (Divin.sk, line 28: apply jump boost 2 without particles to player for 999 days') [16:21:18] [Server thread/ERROR]: 'feather falling 10' is not an enchantment type (Divin.sk, line 30: enchant player's boots with feather falling 10') [16:21:18] [Server thread/INFO]: [Skript] Encountered 5 errors while reloading Divin.sk! Voici les erreur du code options: lore: Je suis divin... on armor equip: lore of event-item contains "{@lore}" if event-item is an diamond helmet: apply fire resistance without particles to player for 999 days else if event-item is an diamond chestplate: enchant player's chestplate with projectile protection 10 else if event-item is an diamond leggings: apply jump boost 2 without particles to player for 999 days else if event-item is an diamond boots: enchant player's boots with feather falling 10 on armor unequip: lore of event-item contains "{@lore}" if event-item is an diamond helmet: remove fire resistance from player else if event-item is an diamond leggings: remove jump boost from player on join: if lore of helmet of player contains "{@lore}": apply fire resistance without particles to player for 999 days else if lore of chestplate of player contains "{@lore}": enchant player's chestplate with projectile protection 10 else if lore of leggings of player contains "{@lore}": apply jump boost 2 without particles to player for 999 days else if lore of boots of player contains "{@lore}": enchant player's boots with feather falling 10
WeBer_Le_Pecheur Posté(e) le 5 septembre 2018 Posté(e) le 5 septembre 2018 Tu va avoir besoin de SharpSK pour les events < on armor equip > et < on armor unequip > Pour les effets de potion retire < without particles > car il ne sont disponible qu'a partir de la 2.2-dev27 Pour l'enchantement je ne sais pas ?
maxouviclouis Posté(e) le 5 septembre 2018 Auteur Posté(e) le 5 septembre 2018 il y a 6 minutes, WeBer_Le_Pecheur a dit : Tu va avoir besoin de SharpSK pour les events < on armor equip > et < on armor unequip > Pour les effets de potion retire < without particles > car il ne sont disponible qu'a partir de la 2.2-dev27 Pour l'enchantement je ne sais pas ? Meme avec t'es conseil j'ai encore 2 erreurs : [18:24:58] [Server thread/ERROR]: can't understand this event: 'on armor equip' (Divin.sk, line 4: on armor equip:') [18:24:58] [Server thread/ERROR]: can't understand this event: 'on armor unequip' (Divin.sk, line 15: on armor unequip:') alors que j'ai SharpSk
WeBer_Le_Pecheur Posté(e) le 5 septembre 2018 Posté(e) le 5 septembre 2018 Ces 2 événements ont été ajouté dans la version 1.6.3 de SharpSK tu à la bonne version ?
maxouviclouis Posté(e) le 6 septembre 2018 Auteur Posté(e) le 6 septembre 2018 Il y a 23 heures, WeBer_Le_Pecheur a dit : Ces 2 événements ont été ajouté dans la version 1.6.3 de SharpSK tu à la bonne version ? Oui !
Messages recommandés