Aller au contenu
  • 0

Question

Posté(e) (modifié)

Version de Minecraft : 1.12.2
Version de Skript : 2.5.3

Addons utilisés: Tuske

Type du skript : GUI vente items

Description du script :

Bonjour tout le mondes !

Je souhaite faire un skript gui de vente d'items . Je rencontre un soucis avec l'affichage des items : sugar cane / nether wart , ils ne s'affichent pas dans mon gui comme sur les screens . 

Je ne comprends pas d'où ça peut provenir, si quelqu'un a une idée je suis preneur.

Merci d'avance !

               
command /shop:
    trigger:
        open virtual chest inventory with size 3 named "FarmSell" to player
        format gui slot 0 and 2 and 4 and 6 and 8 and 10 and 12 and 14 and 16 and 18 and 20 and 22 and 24 and 26 of player with a yellow stained glass pane named " " to do nothing
        format gui slot 1 and 3 and 5 and 7 and 9 and 11 and 15 and 17 and 19 and 21 and 23 and 25 of player with a gray stained glass pane named " " to do nothing
        format gui slot 10 of player with a stone named "Farm Cultures" to run function farmcultures(player)
        format gui slot 13 of player with a stone named " " to run function farmsell(player)
        #format gui slot 7 of player with stone named "It will run the function doSomething()" to run function doSomething()

function farmsell(p: player): #TuSKe will run this function even if it was loaded after the command above. Need 1.7.2+ for it.
    open virtual chest inventory with size 6 named "FarmSell" to {_p}
    format gui slot 0 and 2 and 4 and 6 and 8 and 18 and 26 and 36 and 44 and 46 and 48 and 50 and 52 of {_p} with a yellow stained glass pane named " " to do nothing
    format gui slot 1 and 3 and 5 and 7 and 9 and 17 and 27 and 35 and 45 and 47 and 49 and 51 and 53 of {_p} with a gray stained glass pane named " " to do nothing

function farmcultures(p: player): #TuSKe will run this function even if it was loaded after the command above. Need 1.7.2+ for it.
    open virtual chest inventory with size 6 named "FarmCultures" to {_p}
    format gui slot 0 and 2 and 4 and 6 and 8 and 18 and 26 and 36 and 44 and 46 and 48 and 50 and 52 of {_p} with a yellow stained glass pane named " " to do nothing
    format gui slot 1 and 3 and 5 and 7 and 9 and 17 and 27 and 35 and 45 and 47 and 49 and 51 and 53 of {_p} with a gray stained glass pane named " " to do nothing
    format gui slot 10 of {_p} with a apple with lore "&7&ovendre &a&o1 &7&opour &a&o100$" to run:
        add 100 to balance of player
        remove 1 apple from player's inventory
    format gui slot 11 of {_p} with a melon slice with lore "&7&ovendre &a&o1 &7&opour &a&o100$" to run:
        add 100 to balance of player
        remove 1 apple from player's inventory
    format gui slot 12 of {_p} with a carrot with lore "&7&ovendre &a&o1 &7&opour &a&o100$" to run:
        add 100 to balance of player
        remove 1 apple from player's inventory
    format gui slot 13 of {_p} with a potato with lore "&7&ovendre &a&o1 &7&opour &a&o100$" to run:
        add 100 to balance of player
        remove 1 apple from player's inventory
    format gui slot 14 of {_p} with a beetroot with lore "&7&ovendre &a&o1 &7&opour &a&o100$" to run:
        add 100 to balance of player
        remove 1 apple from player's inventory
    format gui slot 15 of {_p} with a sugar cane with lore "&7&ovendre &a&o1 &7&opour &a&o100$" to run:
        add 100 to balance of player
        remove 1 apple from player's inventory
    format gui slot 16 of {_p} with a nether wart with lore "&7&ovendre &a&o1 &7&opour &a&o100$" to run:
        add 100 to balance of player
        remove 1 apple from player's inventory

 

gui.PNG

Modifié par multisport69

3 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Bonsoir j'ai testé pour moi ça marche bien j'utilise tuske pour les menu je te le conseille perso l'item s'affiche bien (j'ai mis comme toi) 

  • J'aime 1
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.