Aller au contenu

Classement

Contenu populaire

Affichage du contenu avec la meilleure réputation le 31/10/2020 dans toutes les zones

  1. bonjour, voila le code : si vous avez des questions ou des erreurs n'hésitez surtout pas meme si j'ai testé le code et tout fonctione correctement 😉 command /sold [<text>]: trigger: if arg 1 is "diamond": set {_count} to 0 loop all items in player's inventory: if loop-item is diamond: set {_count} to number of loop-item of player's inventory remove all diamonds from player's inventory if {_count} != 0: set {_count} to {_count}*30 set {point.%UUID of player%} to {_count} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de diamant !" to player if arg 1 is "gold": set {_count} to 0 loop all items in player's inventory: if loop-item is gold ingot: set {_count} to number of loop-item of player's inventory remove all gold ingots from player's inventory if {_count} != 0: set {_count} to {_count}*20 set {point.%UUID of player%} to {_count} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas d'or !" to player if arg 1 is "iron": set {_count} to 0 loop all items in player's inventory: if loop-item is iron ingot: set {_count} to number of loop-item of player's inventory remove all iron ingots from player's inventory if {_count} != 0: set {_count} to {_count}*15 set {point.%UUID of player%} to {_count} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de fer !" to player if arg 1 is "coal": set {_count} to 0 loop all items in player's inventory: if loop-item is coal: set {_count} to number of loop-item of player's inventory remove all coal from player's inventory if {_count} != 0: set {_count} to {_count}*8 set {point.%UUID of player%} to {_count} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de charbon !" to player if arg 1 is "lapis": set {_count} to 0 loop all items in player's inventory: if loop-item is lapis lazuli: set {_count} to number of loop-item of player's inventory remove all lapis lazuli from player's inventory if {_count} != 0: set {_count} to {_count}*20 set {point.%UUID of player%} to {_count} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de lapis lazuli" to player if arg 1 is "redstone": set {_count} to 0 loop all items in player's inventory: if loop-item is redstone: set {_count} to number of loop-item of player's inventory remove all redstone from player's inventory if {_count} != 0: set {_count} to {_count}*20 set {point.%UUID of player%} to {_count} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de redstone" to player if arg 1 is "emerald": set {_count} to 0 loop all items in player's inventory: if loop-item is emerald: set {_count} to number of loop-item of player's inventory remove all emerald from player's inventory if {_count} != 0: set {_count} to {_count}*35 set {point.%UUID of player%} to {_count} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de emerald" to player
    1 point
  2. 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 !
    1 point
×
×
  • 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.