#Compass GUI

1 messages · Page 1 of 1 (latest)

steep musk
#
world.beforeEvents.itemUse.subscribe(async (event) => {
    function MainMenu() {
        system.run(() => {
            const MainMenu = new ActionFormData();
            MainMenu.button('§l§4Profile')
            MainMenu.button('§l§8Teleporteur',"textures/items/joueur/teleporteur_icon")
            MainMenu.button('warp')
            MainMenu.button('economy')
            MainMenu.button("§l§mines")
            MainMenu.show(player).then(r => {

                }
            })
        })  
    }
     const { itemStack, source: player } = event;
     if (!(player instanceof Player)) return;
     if(itemStack.typeId === "nc:navigateur") {
         MainMenu()
     }
})

This is an example of what you want to do

steep musk
#

already you need a scoreboard for money

#

to do that I think you already know how to do it

#

if you don't know how to do it but this in your code and do the !setup command

#
world.beforeEvents.chatSend.subscribe((ev) => {
    const msg = ev.message;
    const player = ev.sender;
    if (msg == "!setup") {
        ev.cancel = true
        system.run(() => {
            player.runCommand("scoreboard objectives add money dummy")
            player.runCommand("scoreboard objectives setdisplay list money")
            player.runCommand("scoreboard players add @a money 0")
            player.sendMessage("§l§cScoreboard works")
        })
    }
})
steep musk
#

this script is to sell mines for the other buttons, I'll let you do it so you can learn

#

@void nymph

void nymph
void nymph
steep musk
#

no problem I like helping people learn

#

we need people who teach others

#

like people taught me

#

personally I too consider myself a beginner or at most I am an amateur

void nymph
#

So if you don't class yourself as a pro what is a pro to you because everything I have just seen blew me away 😂

steep musk
#

I just don't have the knowledge of a pro

#

😅

#

for example this is another category of the discord but everything that edt json ui I don't know at all I quickly looked at what is possible but these all

steep musk
void nymph
#

I am trying to learn a bit of coding because I am moving on to a lot of projects that involve it

steep musk
#

I'm personally working on my first serious project in a while and it takes determination

void nymph
#

thats why I am learning a bit of coding

steep musk
#

these cool guys you have a good project good luck

#

I had the same intention at the beginning and here I am

#

I found myself with a new passion that completely changed my professional direction

void nymph
#

@steep musk sorry I forgot to ask this sooner but I am using a new thing to me called Bridge and was wondering how I would put this all together

steep musk
#

oh you use bridge it works the same way in nes file these just the application interface which is different

steep musk
void nymph
void nymph
#

@steep musk when do you think you can send the example?

steep musk
#

Oh sorry i had forgotten

#

pog me on Monday I will do that to you

void nymph
void nymph
void nymph
#

@steep musk 😄

steep musk
#

ok you use bridge for make a script

void nymph
steep musk
#

OK but why you need an exemple on bridge

void nymph
steep musk
#

but use Visual Studio code

#

it is more pratical

#

because every people use it

#

@void nymph