Aller au contenu
  • 0

Slot inventaire


Question

Posté(e)

Bonjour,

J'ai programmé un Skript, mais je n'arrive pas à y faire quelque chose ^^

Je souhaiterai pouvoir que lors de la connexion d'un joueur (on join) la console donne des items, ce que j'ai réussi en faisant (/give) mais je voudrais que ces items arrivent dans un slot précis de l'inventaire du joueur.

Pouvez-vous m'aider ? :)

8 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Haha :')

Faut faire un peu de code aussi, crée un fichier .sk dans le dossier scripts de Skript et marque:

on join:
set slot X of player with X

Re,

je n'arrive pas:

J'ai ça:

Command /go:
 trigger:
   open chest with 3 rows named "&cPortail de téléportation" to player
   wait 1 tick
   format slot 12 of player with beacon named "&fSpawn" to run [make player execute command "/spawn"]
   format slot 14 of player with Grass named "&fCréatif" to run [make player execute command "/mvtp creatif"]

On command "/spawn":
   message "Vous êtes arrivés au spawn"

On right click with clock:
   make player execute command "/go"

on join:
   execute console command "/give %player% minecraft:clock 1"

on quit:
   execute console command "/clear %player%"   

 

Je suppose que je dois mettre ça

Command /go:
 trigger:
   open chest with 3 rows named "&cPortail de téléportation" to player
   wait 1 tick
   format slot 12 of player with beacon named "&fSpawn" to run [make player execute command "/spawn"]
   format slot 14 of player with Grass named "&fCréatif" to run [make player execute command "/mvtp creatif"]

On command "/spawn":
   message "Vous êtes arrivés au spawn"

On right click with clock:
   make player execute command "/go"

on join:
   set slot 5 of player with clock

on quit:
   execute console command "/clear %player%"   

Mais je n'arrive pas =)

  • 0
Posté(e)

Tiens !

options:

   tag: &6&oMenu

   perm: spawn.use

command /setspawn:
   permission: {@perm}
   trigger:
       set {spawnp} to location of player

command "/spawn":
   message "Vous êtes arrivés au spawn"
   teleport player at {spawnp}

On right click with clock:
   open chest with 3 rows named "&cPortail de téléportation" to player
   wait 1 tick
   format slot 12 of player with beacon named "&fSpawn" with lore "&7Pour te teleporter au spawn ||&7 Fais /spawn ||&7 Ou clique ICI" to run [make player execute command "/spawn"]
   format slot 14 of player with Grass named "&fCréatif" to run [make player execute command "/mvtp creatif"]

on join:
   set slot 5 of player to a clock named "{@tag}"
   teleport player at {spawnp}

on quit:
   clear player's inventory   

  • J'aime 2
  • 0
Posté(e)
Tiens !

options:

   tag: &6&oMenu

   perm: spawn.use

command /setspawn:
   permission: {@perm}
   trigger:
       set {spawnp} to location of player

command "/spawn":
   message "Vous êtes arrivés au spawn"
   teleport player at {spawnp}

On right click with clock:
   open chest with 3 rows named "&cPortail de téléportation" to player
   wait 1 tick
   format slot 12 of player with beacon named "&fSpawn" with lore "&7Pour te teleporter au spawn ||&7 Fais /spawn ||&7 Ou clique ICI" to run [make player execute command "/spawn"]
   format slot 14 of player with Grass named "&fCréatif" to run [make player execute command "/mvtp creatif"]

on join:
   set slot 5 of player to a clock named "{@tag}"
   teleport player at {spawnp}

on quit:
   clear player's inventory   

 

Merci beaucoup, je l'ai modifié pour en avoir plusieurs.

Je ne sais comment te remercier =)

Good Game ^^

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