Aller au contenu
  • 0

Des enchantements avec Tuske ?


Question

Posté(e)

Version de Minecraft : 1.12.2
Version de Skript : 2.3.7

Addons utilisés: Tuske 1.8.3...

Description du script :

Salut !

J'ai besoin d'aide pour mon script :

On load:
    register new enchantement with id "Testing"
    set max level of "Testing" to 2
    set lore name of "Testing" to "Testing"
    add diamond sword to accepted item for "Testing"
    add diamond shovel to accepted item for "Testing"
    set rarity of "Testing" to 8

Normalement, c'est censé créer un nouvel enchantement : "Testing" mais bon :

[19:01:14 INFO]: [Skript] Reloading cenchant.sk...
[19:01:14 ERROR]: Can't understand this condition/effect: register new enchantement with id "Testing" (cenchant.sk, line 2: register new enchantement with id "Testing"')
[19:01:14 ERROR]: Can't understand this condition/effect: set max level of "Testing" to 2 (cenchant.sk, line 3: set max level of "Testing" to 2')
[19:01:15 ERROR]: Can't understand this condition/effect: set lore name of "Testing" to "Testing" (cenchant.sk, line 4: set lore name of "Testing" to "Testing"')
[19:01:15 ERROR]: Can't understand this condition/effect: add diamond sword to accepted item for "Testing" (cenchant.sk, line 5: add diamond sword to accepted item for "Testing"')
[19:01:15 ERROR]: Can't understand this condition/effect: add diamond shovel to accepted item for "Testing" (cenchant.sk, line 6: add diamond shovel to accepted item for "Testing"')
[19:01:15 ERROR]: Can't understand this condition/effect: set rarity of "Testing" to 8 (cenchant.sk, line 7: set rarity of "Testing" to 8')
[19:01:15 INFO]: [Skript] Encountered 6 errors while reloading cenchant.sk!

Ai-je fais une erreur ?

(Lien vers skripthub [Documentation])

Merci d'avance pour vos réponses !

  • J'aime 1

5 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Salut,

si personne ne répond, c'est simplement parce que on n'a pas de solution x) je n'ai jamais utilisé les enchantements avec Skript, donc je ne serai pas plus t'aider.

Bonne soirée 🙂

  • 0
Posté(e)

Enfin !!!

 

Après beaucoup de tests, je me suis aperçu que j'avais fais quelques fautes. Voici un code qui fonctionne :

On load:
	register new enchantment with id "Testing"
	set {_var} to "Testing" parsed as custom enchantment
	set the max level of {_var} to 2
	set lore name of {_var} to "Testing"
	add diamond sword to {_items::*}
	add diamond shovel to {_items::*}
	set accepted items for {_var} to {_items::*}
	set rarity of {_var} to 1
	set enabled for {_var} to true

On right-click with diamond sword:
	set {_var} to "Testing" parsed as custom enchantment
	player's tool has custom enchantment {_var}
	message " "
	message "&6Tu as l'enchant &cTesting"

 

RÉSOLU !

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.