Bon, j'ai fini ton skript.
Une petite chose: je n'arrive pas a mettre l'effet de speed pour tes bottes.
Pour le reste, tout fonctionne (testé en 1.8.9) avec Skript 2.2 (mais je sait plus quel dev)
Il te faut les addons WildSkript et SkQuery.
Voici le code :
[spoiler=Code]
options:
prefix: [&4Heal&8Stick&r] # Change '[&4Heal&8Stick&r]' par un autre prefixe :)
on load: #Tarte de soin
new Recipe "tarte"
"tarte".Recipe.setIngredient{1, 1 gold block};
"tarte".Recipe.setIngredient{2, 1 nether star};
"tarte".Recipe.setIngredient{3, 1 gold block};
"tarte".Recipe.setIngredient{4, 1 nether star};
"tarte".Recipe.setIngredient{5, 1 pumpkin pie};
"tarte".Recipe.setIngredient{6, 1 nether star};
"tarte".Recipe.setIngredient{7, 1 gold block};
"tarte".Recipe.setIngredient{8, 1 nether star};
"tarte".Recipe.setIngredient{9, 1 gold block};
"tarte".Recipe.setResult{1 pumpkin pie named "&cTarte de combat" with lore "&3The Best For PvP Players"};
"tarte".Recipe.register{};
on load: # Pain défensif
new Recipe "pain"
"pain".Recipe.setIngredient{1, 1 gold block};
"pain".Recipe.setIngredient{2, 1 nether star};
"pain".Recipe.setIngredient{3, 1 gold block};
"pain".Recipe.setIngredient{4, 1 nether star};
"pain".Recipe.setIngredient{5, bread};
"pain".Recipe.setIngredient{6, 1 nether star};
"pain".Recipe.setIngredient{7, 1 gold block};
"pain".Recipe.setIngredient{8, 1 nether star};
"pain".Recipe.setIngredient{9, 1 gold block};
"pain".Recipe.setResult{1 bread named "&cPain défensif" with lore "&3The Best For PvP Players"};
"pain".Recipe.Register{};
on load: # Hache de combat
new Recipe "hache"
"hache".Recipe.setIngredient{1, 1 nether star};
"hache".Recipe.setIngredient{2, 1 nether star};
"hache".Recipe.setIngredient{3, 1 nether star};
"hache".Recipe.setIngredient{4, 1 nether star};
"hache".Recipe.setIngredient{5, 1 blaze rod};
"hache".Recipe.setIngredient{6, 1 nether star};
"hache".Recipe.setIngredient{8, 1 blaze rod};
"hache".Recipe.setResult{1 diamond axe of sharpness 7, fire aspect 1, unbreaking 3 named "&cHache de combat" with lore "&3The Best For PvP Players"};
"hache".Recipe.Register{};
on load: #Casque de plongée
new Recipe "casque"
"casque".Recipe.setIngredient{2, 1 water bucket};
"casque".Recipe.setIngredient{5, 1 diamond helmet};
"casque".Recipe.setIngredient{8, 1 nether star};
"casque".Recipe.setResult{1 diamond helmet of respiration 250 named "&3Casque de plongée" with lore "&3Fait pour les aventuriers !"};
"casque".Recipe.Register{};
on load: # Bottes de vitesse (PAS FINI)
new Recipe "bottes"
"bottes".Recipe.setIngredient{1, 1 sugar};
"bottes".Recipe.setIngredient{2, 1 sugar};
"bottes".Recipe.setIngredient{3, 1 sugar};
"bottes".Recipe.setIngredient{4, 1 sugar};
"bottes".Recipe.setIngredient{5, 1 diamond boots};
"bottes".Recipe.setIngredient{6, 1 sugar};
"bottes".Recipe.setIngredient{7, 1 sugar};
"bottes".Recipe.setIngredient{8, 1 nether star};
"bottes".Recipe.setIngredient{9, 1 sugar};
"bottes".Recipe.setResult{1 diamond boots named "&bBottes de vitesse" with lore "&3Fait pour les aventuriers !"};
"bottes".Recipe.Register{};
on load: # baton de soin
new Recipe "baton"
"baton".Recipe.setIngredient{2, 1 nether star};
"baton".Recipe.setIngredient{5, 1 blaze rod};
"baton".Recipe.setIngredient{8, 1 blaze rod};
"baton".recipe.setResult{1 blaze rod named "&dBaton de soin" with lore "&3The Best For PvP Players"};
"baton".Recipe.Register{};
on right-click:
#Effets pour la tarte
if the player is holding a pumpkin pie named "&cTarte de combat" with lore "&3The Best For PvP Player":
apply strength 1 to player for 3 minutes
apply speed 1 to player for 3 minutes
apply absorption 1 to player for 3 minutes
remove 1 pumpkin pie from player's inventory
#Effets pour le pain
else if the player is holding a bread named "&cPain défensif" with lore "&3The Best For PvP Player":
apply regeneration 1 to player for 3 minutes
apply fire resistance to player for 6 minutes
apply resistance to player for 10 seconds
apply absorption 1 to player for 3 minutes
remove 1 bread named "&cPain défensif" with lore "&3The Best For PvP Player" from player's inventory
#Effets pour le baton de soin
else if the player is holding a blaze rod named "&dBaton de soin" with lore "&3The Best For PvP Players":
if {heal.count} = 0:
add 5 to {heal.count}
message "{@prefix} &aDésolé, tu ne peut plus l'utiliser"
remove 1 blaze rod named "&dBaton de soin" with lore "&3The Best For PvP Players" from player's inventory
else:
apply regeneration 250 to player for 1 second
remove 1 from {heal.count}
Si tu as le moindre problème, dit le moi içi :)
afhistos
PS: Il se peut que ton serveur crash au premier reload de ce skript