Aller au contenu
  • 0

Faire en sorte que les items ne s'usent pas


Question

25 réponses à cette question

Messages recommandés

  • 0
Posté(e) (modifié)

Normalement ça, sa devrait fonctionner avec Umbaska.

set slot 0 of the player to a unbreakable diamond sword of <enchant>

Si sa fonctionne met un j'aime ?

Modifié par TheFighter51
  • 0
Posté(e) (modifié)
il y a une heure, Uuraniumm_PROD a dit :

Non ça ne marche pas... 
J'ai pourtant bien Umbaska...
Y'aurait-il une autre solution ?

 

on damage:
    repair attacker's tool

 

En espérant avoir pu t'aider ? 

Sinon tu peux utiliser l'expression: execute console command pour give les stuffs et les items avec le nbt unbreakable.

Modifié par MrUrica
  • J'aime 1
  • 0
Posté(e)

Bonsoir (lel) FyROOxX, est ce que la variable que tu donnes dans le trigger peut s'utiliser de cette manière ?

					set player's helmet to Leather helmet of protection 3
					set player's chestplate to Leather chestplate of protection 3
					set player's leggings to Leather leggings of protection 3
					set player's boots to Leather boots of protection 3
					give diamond sword with nbt "{Unbreakable:1b}" to player
					set slot 34 of player's inventory to 64 arrow
					set slot 40 of player's inventory to 64 sandstone
					set slot 15 of player's inventory to 64 sandstone
					set slot 5 of player's inventory to bow
					set slot 7 of player's inventory to 64 sandstone
					set slot 8 of player's inventory to 64 sandstone
					set slot 9 of player's inventory to 64 sandstone
					set slot 10 of player's inventory to 64 sandstone
					set slot 11 of player's inventory to 64 sandstone
					set slot 12 of player's inventory to 64 sandstone
					set slot 13 of player's inventory to 64 sandstone
					set slot 14 of player's inventory to 64 sandstone
					set slot 6 of player's inventory to 64 sandstone
					set slot 1 of player's inventory to iron pickaxe of efficiency 5
					set slot 2 of player's inventory to 64 golden apple

 

  • 0
Posté(e)
il y a 1 minute, Uuraniumm_PROD a dit :

Bonsoir (lel) FyROOxX, est ce que la variable que tu donnes dans le trigger peut s'utiliser de cette manière ?


					set player's helmet to Leather helmet of protection 3
					set player's chestplate to Leather chestplate of protection 3
					set player's leggings to Leather leggings of protection 3
					set player's boots to Leather boots of protection 3
					give diamond sword with nbt "{Unbreakable:1b}" to player
					set slot 34 of player's inventory to 64 arrow
					set slot 40 of player's inventory to 64 sandstone
					set slot 15 of player's inventory to 64 sandstone
					set slot 5 of player's inventory to bow
					set slot 7 of player's inventory to 64 sandstone
					set slot 8 of player's inventory to 64 sandstone
					set slot 9 of player's inventory to 64 sandstone
					set slot 10 of player's inventory to 64 sandstone
					set slot 11 of player's inventory to 64 sandstone
					set slot 12 of player's inventory to 64 sandstone
					set slot 13 of player's inventory to 64 sandstone
					set slot 14 of player's inventory to 64 sandstone
					set slot 6 of player's inventory to 64 sandstone
					set slot 1 of player's inventory to iron pickaxe of efficiency 5
					set slot 2 of player's inventory to 64 golden apple

 

Bien sur :

Il te suffit de faire "%itemstack% with nbt %string%"

Exemple:

set slot 0 of player to stone with nbt "{display:{name:"salut"}" #ICI le nbt est inutil puisqu'il y a "named "salut" x)

Cordialement

  • 0
Posté(e) (modifié)
il y a 2 minutes, Uuraniumm_PROD a dit :

Hmmm... Je ne comprends pas très bien... Pourrais tu me faire un exemple avec mon code directement histoire que je comprenne mieux ?

 

Pas de problème:

set player's helmet to Leather helmet of protection 3 with nbt "{Unbreakable:1}"
set player's chestplate to Leather chestplate of protection 3 with nbt "{Unbreakable:1}"
set player's leggings to Leather leggings of protection 3 with nbt "{Unbreakable:1}"
set player's boots to Leather boots of protection 3 with nbt "{Unbreakable:1}"
give diamond sword with nbt "{Unbreakable:1b}" to player
set slot 34 of player's inventory to 64 arrow
set slot 40 of player's inventory to 64 sandstone
set slot 15 of player's inventory to 64 sandstone
set slot 5 of player's inventory to bow
set slot 7 of player's inventory to 64 sandstone
set slot 8 of player's inventory to 64 sandstone
set slot 9 of player's inventory to 64 sandstone
set slot 10 of player's inventory to 64 sandstone
set slot 11 of player's inventory to 64 sandstone
set slot 12 of player's inventory to 64 sandstone
set slot 13 of player's inventory to 64 sandstone
set slot 14 of player's inventory to 64 sandstone
set slot 6 of player's inventory to 64 sandstone
set slot 1 of player's inventory to iron pickaxe of efficiency 5 with nbt "{Unbreakable:1}"
set slot 2 of player's inventory to 64 golden apple

PS: N'oublie pas d'installe SkStuff ?

Modifié par FyRoOxX
  • 0
Posté(e) (modifié)

hmm.... Ca ne marche pas : ça me met que c'est un donnée invalide d'item...

 

OOps je viens de me rendre compte que mon skstuff ne fonctionnait pas

 

 

Modifié par Uuraniumm_PROD
  • 0
Posté(e)
il y a 7 minutes, Uuraniumm_PROD a dit :

voici la version : Skript version 2.2-Fixes-V9b

 

Essaye de prendre la version 2.2 ou une version supérieure, c'est surement la version Skript qui est buggée

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.