Jump to content

I need help with my GUI. (I have tusk add on)


arvan

Recommended Posts

I want it so when they click if they don't have 500 diamonds they don't get the emerald 

this is what i have

I bolded the part I need help with

command /shop:
    trigger:
        open virtual chest inventory with size 2 named "Special Shop" to player
        format gui slot 0 of player with emerald named "&a&lDeath to all mobs" with lore "&aUNCOMMON" to run:
            open virtual chest inventory with size 2 named "Special Shop" to player
            format gui slot 0 of player with emerald named "&6&lEmerald Key" with lore "&6LEGENDARY" to run:
                        remove 500 diamond from player's inventory
                        give player emerald named "&6&lEmerald Key" with lore "&6LEGENDARY"

            format gui slot 1 of player with name tag named "&6Free Warden helmet" with lore "&6LEGENDARY" to run:
                kill player
                broadcast "&cDon't be greedy %player%, they were trying to scam the the shop out of warden helmets!!!"
            

Link to comment
Share on other sites

On 6/22/2021 at 6:59 AM, arvan said:

I want it so when they click if they don't have 500 diamonds they don't get the emerald 

this is what i have

I bolded the part I need help with

command /shop:
    trigger:
        open virtual chest inventory with size 2 named "Special Shop" to player
        format gui slot 0 of player with emerald named "&a&lDeath to all mobs" with lore "&aUNCOMMON" to run:
            open virtual chest inventory with size 2 named "Special Shop" to player
            format gui slot 0 of player with emerald named "&6&lEmerald Key" with lore "&6LEGENDARY" to run:
                        remove 500 diamond from player's inventory
                        give player emerald named "&6&lEmerald Key" with lore "&6LEGENDARY"

            format gui slot 1 of player with name tag named "&6Free Warden helmet" with lore "&6LEGENDARY" to run:
                kill player
                broadcast "&cDon't be greedy %player%, they were trying to scam the the shop out of warden helmets!!!"
            

Try this:

command /shop:
    trigger:
        open virtual chest inventory with size 2 named "Special Shop" to player
        format gui slot 0 of player with emerald named "&a&lDeath to all mobs" with lore "&aUNCOMMON" to run:
            open virtual chest inventory with size 2 named "Special Shop" to player
            format gui slot 0 of player with emerald named "&6&lEmerald Key" with lore "&6LEGENDARY" to run:\
                if player's inventory contains 500 diamonds:
                    remove 500 diamond from player's inventory
                    give player emerald named "&6&lEmerald Key" with lore "&6LEGENDARY"
                else:
                    send "(Message Here)"
            format gui slot 1 of player with name tag named "&6Free Warden helmet" with lore "&6LEGENDARY" to run:
                kill player
                broadcast "&cDon't be greedy %player%, they were trying to scam the the shop out of warden helmets!!!"
            

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...