Aller au contenu
  • 0

Bloquer les items dans un "open chest with row"


Question

Posté(e)

Bonjour j'ai actuellement une commande ("/minage [<offlineplayer>]") Qui me permet de voir les stats de minage d'un joueur, quand on ne met pas d'argument sa ouvre le coffre avec le pseudo du joueur qui execute la commande et on ne peut pas prendre les objets. Sauf que des qu'on met un argument, on peut déplacer et prendre les items du coffre sans problème.

 

Une solution pour ne plus pouvoir déplacer ou prendre les items du coffre avec un argument?

Merci d'avance de vos réponses !

8 réponses à cette question

Messages recommandés

  • 0
Posté(e)

@Healthpower

command /minage [<offlineplayer>]:
   trigger:
       wait 1 tick
       open chest with 5 rows named "&6Minage de &c%player% &6!"  to player
       format slot 0 of player with black stained glass pane named " " to be unstealable
       format slot 1 of player with black stained glass pane named " " to be unstealable
       format slot 2 of player with black stained glass pane named " " to be unstealable
       format slot 3 of player with black stained glass pane named " " to be unstealable
       format slot 5 of player with black stained glass pane named " " to be unstealable
       format slot 6 of player with black stained glass pane named " " to be unstealable
       format slot 7 of player with black stained glass pane named " " to be unstealable
       format slot 8 of player with black stained glass pane named " " to be unstealable
       format slot 36 of player with black stained glass pane named " " to be unstealable
       format slot 37 of player with black stained glass pane named " " to be unstealable
       format slot 38 of player with black stained glass pane named " " to be unstealable
       format slot 39 of player with black stained glass pane named " " to be unstealable
       format slot 40 of player with red stained glass pane named "&c&lFERMER" to close
       format slot 41 of player with black stained glass pane named " " to be unstealable
       format slot 42 of player with black stained glass pane named " " to be unstealable
       format slot 43 of player with black stained glass pane named " " to be unstealable
       format slot 44 of player with black stained glass pane named " " to be unstealable
       format slot 9 of player with green stained glass pane named "&eBlock de base minés &7»" with lore "&eTotal minés &7» &c&l%{stats.base.%player%}%" to be unstealable
       format slot 18 of player with green stained glass pane named "&eBlock de minerais minés &7»" with lore "&eTotal minés &7» &c&l%{stats.minerais.%player%}%" to be unstealable
       format slot 27 of player with green stained glass pane named " " to be unstealable
       format slot 4 of player with 1 iron block named "&7» &eJoueur&f : &c%player%" with lore "&7» &eStatus&f : &c%{status.%player%}%||&7» &eTotal minés &f: &c&l%{stats.total.%player%}%" to be unstealable
       format slot 10 of player with stone named "&eBlocks de &cStone&f: &c%{stats.stone.%player%}%" to be unstealable
       format slot 11 of player with grass named "&eBlocks de &cGrass&f: &c%{stats.grass.%player%}%" to be unstealable
       format slot 12 of player with dirt named "&eBlocks de &cDirt&f: &c%{stats.dirt.%player%}%" to be unstealable
       format slot 13 of player with cobblestone named "&eBlocks de &cCobbleStone&f: &c%{stats.cobblestone.%player%}%" to be unstealable # COBBLESTONE
       format slot 14 of player with gravel named "&eBlocks de &cSand&f: &c%{stats.sand.%player%}%" to be unstealable
       format slot 15 of player with gravel named "&eBlocks de &cGravier&f: &c%{stats.gravel.%player%}%" to be unstealable
       format slot 19 of player with coal named "&eMinerais de &cCharbon&f: &c%{stats.charbon.%player%}%" to be unstealable
       format slot 20 of player with iron ingot named "&eMinerais de &cFer&f: &c%{stats.fer.%player%}%" to be unstealable
       format slot 21 of player with lapis named "&eMinerais de &cLapis&f: &c%{stats.lapis.%player%}%" to be unstealable
       format slot 22 of player with redstone  named "&eMinerais de &cRedstone&f: &c%{stats.redstone.%player%}%" to be unstealable
       format slot 23 of player with gold ingot named "&eMinerais d' &cOr&f: &c%{stats.or.%player%}%" to be unstealable
       format slot 24 of player with diamond named "&eMinerais de &cDiamant&f: &c%{stats.diamant.%player%}%" to be unstealable
       format slot 25 of player with emerald named "&eMinerais d' &cEmeraude&f: &c%{stats.emerald.%player%}%" to be unstealable
       if arg 1 is set:
           open chest with 5 rows named "&6Minage de &c%arg 1% &6!"  to player
           format slot 0 of player with black stained glass pane named " " to be unstealable
           format slot 1 of player with black stained glass pane named " " to be unstealable
           format slot 2 of player with black stained glass pane named " " to be unstealable
           format slot 3 of player with black stained glass pane named " " to be unstealable
           format slot 5 of player with black stained glass pane named " " to be unstealable
           format slot 6 of player with black stained glass pane named " " to be unstealable
           format slot 7 of player with black stained glass pane named " " to be unstealable
           format slot 8 of player with black stained glass pane named " " to be unstealable
           format slot 36 of player with black stained glass pane named " " to be unstealable
           format slot 37 of player with black stained glass pane named " " to be unstealable
           format slot 38 of player with black stained glass pane named " " to be unstealable
           format slot 39 of player with black stained glass pane named " " to be unstealable
           format slot 40 of player with red stained glass pane named "&c&lFERMER" to close
           format slot 41 of player with black stained glass pane named " " to be unstealable
           format slot 42 of player with black stained glass pane named " " to be unstealable
           format slot 43 of player with black stained glass pane named " " to be unstealable
           format slot 44 of player with black stained glass pane named " " to be unstealable
           format slot 9 of player with green stained glass pane named "&eBlock de base minés &7»" with lore "&eTotal minés &7» &c&l%{stats.base.%arg 1%}%" to be unstealable
           format slot 18 of player with green stained glass pane named "&eBlock de minerais minés &7»" with lore "&eTotal minés &7» &c&l%{stats.minerais.%arg 1%}%" to be unstealable
           format slot 27 of player with green stained glass pane named " " to be unstealable
           format slot 4 of player with 1 iron block named "&7» &eJoueur&f : &c%arg 1%" with lore "&7» &eStatus&f : &c%{status.%arg 1%}%||&7» &eTotal minés &f: &c&l%{stats.total.%arg 1%}%" to be unstealable
           format slot 10 of player with stone named "&eBlocks de &cStone&f: &c%{stats.stone.%arg 1%}%" to be unstealable
           format slot 11 of player with grass named "&eBlocks de &cGrass&f: &c%{stats.grass.%arg 1%}%" to be unstealable
           format slot 12 of player with dirt named "&eBlocks de &cDirt&f: &c%{stats.dirt.%arg 1%}%" to be unstealable
           format slot 13 of player with cobblestone named "&eBlocks de &cCobbleStone&f: &c%{stats.cobblestone.%arg 1%}%" to be unstealable
           format slot 14 of player with gravel named "&eBlocks de &cSand&f: &c%{stats.sand.%arg 1%}%" to be unstealable
           format slot 15 of player with gravel named "&eBlocks de &cGravier&f: &c%{stats.gravel.%arg 1%}%" to be unstealable
           format slot 19 of player with coal named "&eMinerais de &cCharbon&f: &c%{stats.charbon.%arg 1%}%" to be unstealable
           format slot 20 of player with iron ingot named "&eMinerais de &cFer&f: &c%{stats.fer.%arg 1%}%" to be unstealable
           format slot 21 of player with lapis named "&eMinerais de &cLapis&f: &c%{stats.lapis.%arg 1%}%" to be unstealable
           format slot 22 of player with redstone named "&eMinerais de &cRedstone&f: &c%{stats.redstone.%arg 1%}%" to be unstealable
           format slot 23 of player with gold ingot named "&eMinerais d' &cOr&f: &c%{stats.or.%arg 1%}%" to be unstealable
           format slot 24 of player with diamond named "&eMinerais de &cDiamant&f: &c%{stats.diamant.%arg 1%}%" to be unstealable
           format slot 25 of player with emerald named "&eMinerais d' &cEmeraude&f: &c%{stats.emerald.%arg 1%}%" to be unstealable

  • 0
Posté(e)
Déja peu importe que l’arg 1 soit set ça fait le premier chest,met "if arg 1 is not set" au début

Je me demandais ce qui n'allais pas ! ça marche super, Merci

( résolue )

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.