Aller au contenu

Messages recommandés

Posté(e) (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

2018-09-04_10.01.16.png

 

Le plastron ferra résistance au fléché

2018-09-04_10_01_17.thumb.png.067d742606af5963d54d5cf08c0800d7.png

Le pantalon ferra Jump 2

2018-09-04_10_01_18.thumb.png.7f30c49698d257557eb339c54f776852.png

Et les bottes annuleront les dégâts de la chute

2018-09-04_10_01_19.thumb.png.b367b38d6ed74b18863142d314265daf.png

 

L'armure devra être protection 4 avec un lore "&cJe suis divin..."

 

Merci de m'aide !

 

 

Je n'ai aucun système fais =/

 

Modifié par maxouviclouis
Posté(e) (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é par maxouviclouis
Posté(e) (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é par WeBer_Le_Pecheur
Posté(e) (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é par noftaly
Posté(e) (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é par WeBer_Le_Pecheur
Posté(e)
[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
Posté(e)
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

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • 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.