Aller au contenu
  • 0

Les items d'un chest n'apparaissent pas


Question

Posté(e)

Bonjour , alors voici mon problème :

 

Quand je clique droit sur un item , un chest virtuel avec des items dedans apparaît , chaque items à une commande particulière quand on clique dessus . Mais quand je clique gauche , le chest apparaît mais les items n'apparaîssent pas .

 

Pouvez-vous m'aider ? Merci d'avance !

6 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Alors mon code est long et regroupe beaucoup de choses , donc je vous met la partie intéressé :

 

 

Command /mkitm:
   trigger:
       open chest with 1 rows named "&6&lKit" to player
       format slot 0 of player with iron sword named "&6&lPvP Base" to close then run [make player execute "/mpvp PvP"]
       format slot 1 of player with bow named "&6&lArcher" to close then run [make player execute "/mpvp archer"]   
       format slot 2 of player with fishing rod named "&6&lFisherman" to close then run [make player execute "/mpvp FisherMan"]   
       format slot 3 of player with redstone named "&6&lMedic" to close then run [make player execute "/mpvp Medic"]
       format slot 4 of player with firework rocket named "&6&lKangourou" to close then run [make player execute "/mpvp Kangourou"]

command /mpvp <text>:
   trigger:
       set {ingame.%player%} to true
       if arg 1 is "PvP":
           message "&eVous venez de prendre le kit &4PvP"
           clear player's inventory
           wait 1 tick
           set player's gamemode to adventure
           equip player with leather helmet
           equip player with leather chestplate
           equip player with leather leggings
           equip player with leather boots
           give a iron sword to player
       if arg 1 is "archer":
           message "&eVous venez de prendre le kit &4Archer"
           clear player's inventory
           wait 1 tick
           set player's gamemode to adventure
           equip player with leather chestplate
           give a stone sword to player
           give a bow to player
           give a arrow to player
           give a arrow to player
           give a arrow to player
           give a arrow to player
           give a arrow to player
           give a arrow to player
           give a arrow to player
           give a arrow to player
           give a arrow to player
           give a arrow to player
           give a arrow to player
           give a arrow to player
           give a arrow to player
           give a arrow to player
           give a arrow to player
           give a arrow to player
       if arg 1 is "FisherMan":
           message "&eVous venez de prendre le kit &4Ficherman"
           clear player's inventory
           wait 1 tick
           set player's gamemode to adventure
           equip player with leather chestplate
           give a stone sword to player
           give a fishing rod to player
       if arg 1 is "Medic":
           message "&eVous venez de prendre le kit &4Medic"
           clear player's inventory
           wait 1 tick
           set player's gamemode to adventure
           equip player with leather chestplate
           give a stone sword to player
           give a 373:16452 to player
           give a 373:16449 to player
           give a 373:16392 to player
           give a 373:2 to player

       if arg 1 is "Kangourou":
           message "&eVous venez de prendre le kit &4Kangourou"
           clear player's inventory
           wait 1 tick
           set player's gamemode to adventure
           equip player with leather chestplate
           give a stone sword to player
           give a 401 to player


on click with a golden sword:
   if {ingame.%player%} is false:
       execute player command "/mkitm"
   else:
       cancel event

  • 0
Posté(e)
Bonjour , alors voici mon problème :

 

Quand je clique droit sur un item , un chest virtuel avec des items dedans apparaît , chaque items à une commande particulière quand on clique dessus . Mais quand je clique gauche , le chest apparaît mais les items n'apparaîssent pas .

 

Pouvez-vous m'aider ? Merci d'avance !

regarde mon tuto Les Dossier

×
×
  • 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.