(UPDATED) How to create UI MENUS in Minecraft| MCPE Addons 2023 (BRIDGE TUTORIAL)

Поделиться
HTML-код
  • Опубликовано: 1 авг 2022
  • I know that there isn't ANY documentation on how to actually utilize this in your addons. If you have any questions feel free to message me on discord or ask in the comments.
    Download the project here:
    drive.google.com/drive/folder...
    Here are some links from the video:
    Bridge: editor.bridge-core.app/
    Bedrock Documentation: bedrock.dev/
    ScriptingAPI Documentation: docs.microsoft.com/en-us/mine...
    Pixlr: pixlr.com/e/#editor
  • ХоббиХобби

Комментарии • 149

  • @KashTheKingYT
    @KashTheKingYT  Год назад +6

    READ ME!
    I will no longer be making minecraft content on this channel, please check out my second channel instead where I do only minecraft content!!
    ruclips.net/channel/UCJX3nTmULwfSxSl-Ovd-FHA

    • @KashTheKingYT
      @KashTheKingYT  Год назад +2

      ​@MrHamster0909 the code is the exact same in this video but you will need to change 'mojang-minecraft' to '@minecraft/server' and
      'mojang-minecraft-ui' to '@minecraft/server-ui'

    • @user-zx4bl5tf3g
      @user-zx4bl5tf3g Год назад +1

      @@KashTheKingYT , can u make more tutorials, u really good!!

    • @underwolfsans
      @underwolfsans Год назад

      How do you make text box?

    • @underwolfsans
      @underwolfsans Год назад

      I would greatly appreciate it

    • @underwolfsans
      @underwolfsans Год назад

      @@KashTheKingYTcan you help me make text box that filters and it will run command (like a code system)

  • @DanielAlford1
    @DanielAlford1 Год назад +4

    Nice job! This is great I've been looking for a tutorial on this for a while.

  • @marceloagustingonzalezayal3286
    @marceloagustingonzalezayal3286 Год назад +2

    Thank you for the tutorial!
    Greetings from Paraguay

  • @mukeenanyafiq
    @mukeenanyafiq Год назад +1

    Great tutorial! This will help me make a great server in the future!

  • @ScrapYT6
    @ScrapYT6 26 дней назад

    Nice Video Man

  • @davifirmino-nm3vm
    @davifirmino-nm3vm 10 месяцев назад

    Thank you very much for the great content, this content helps me a lot, I'm learning and I'm Brazilian and not this content here in Brazil so I have to translate your videos.

  • @MMC702
    @MMC702 6 месяцев назад

    Thank you so much your a real one

  • @Roxve
    @Roxve Год назад

    This is very cool

  • @KashTheKingYT
    @KashTheKingYT  Год назад +7

    For every like this video gets I will make another video ❤

  • @couturepeter
    @couturepeter Год назад +7

    Good tutorial, I've been using different parts a few times. You should know that they've changed things in the 1.20 and the events system is different. They moved the beforeEvents into their own category and also beforeItem use cannot be used to open the menus anymore only AfterUse event will.

    • @KashTheKingYT
      @KashTheKingYT  Год назад +1

      Thanks for the info!

    • @nuarbed
      @nuarbed 11 месяцев назад

      omg thank you so much, i was using beforeEvents for the ui opening, not realizing that it was wrong

    • @hab3847
      @hab3847 11 месяцев назад

      Send me the code please I want to ask why it is not working for me

    • @KiwiEdits.
      @KiwiEdits. 5 месяцев назад

      you cant import right you need to import from @minecraft/servers?

    • @KiwiEdits.
      @KiwiEdits. 5 месяцев назад

      @@KashTheKingYTthis part is red for me
      world.events.AfterUse.subscribe(eventData -z> {
      let zplayer = eventData.source
      zform1.show(player)
      })
      the word after z is syntax

  • @catbrotherdoeseverything
    @catbrotherdoeseverything Год назад +2

    At 23:30 you'd actually want to do the first number as your items price and the second one as something like 99999 (not too high, but an amount of money that a player would never be able to reach!)

  • @CarpinchoYT.
    @CarpinchoYT. Год назад

    Good vídeo

  • @DarkGamesCompany
    @DarkGamesCompany 5 месяцев назад

    Greetings from Brazil

  • @geuelgonzales9375
    @geuelgonzales9375 11 месяцев назад

    hello, is there a problem with the link in the description? I can't download the project, plz help me thankss

  • @magic2302
    @magic2302 Год назад

    I am trying to make an explosion and it is not working for me. When I type everything out is does not show the last part where I have to type "ExplostionOptions(). Does it now work with the new "@minecraft/server"?

  • @ahmadk745
    @ahmadk745 9 месяцев назад +1

    Thanks for the nice tutorial! I tried that on 1.20.30 but its always saying “script error no main.js” so I opened the behavior pack folder but found the main.js in the scripting folder of the pack, mentioning that the main.js was empty, so how can I fix that?

    • @user-vb6rf8lw2b
      @user-vb6rf8lw2b 4 месяца назад

      hi, so if you go to the manifiest.json, you will find a part that says "𝘦𝘯𝘵𝘳𝘺": "𝘴𝘤𝘳𝘪𝘱𝘵𝘴/𝘍𝘐𝘓𝘌𝘔𝘈𝘔𝘌.𝘫𝘴", you need to rechange it to where your script is, if you need help you can tell me (:

  • @zombieplays9
    @zombieplays9 Год назад

    I appreciate the tutorial so far its really easy to understand, but whenever I load the world I get an error saying "does not contain main file [main.js]." any ideas?

    • @KashTheKingYT
      @KashTheKingYT  Год назад

      Make sure your script is named main.js in the scripts folder

  • @ZayKay45
    @ZayKay45 Год назад +1

    Amazing tutorial! This helped a heap! I have just one question though: You said it cannot be an item that already opens a UI. Is there any way to prevent this because I want to open the ui when the emote button is clicked- This UI replaces the emote screen ui. I assume you may have to somehow delete the emote screen ui but im not sure how.

    • @KashTheKingYT
      @KashTheKingYT  Год назад

      I don't think you are able to delete the emote screen ui but you might be able to change it with a resource pack possibly? I'm not sure if Minecraft allows that

    • @ZayKay45
      @ZayKay45 Год назад

      @@KashTheKingYT Oh i may just try and possibly the ui might just override the emote ui?

    • @ZayKay45
      @ZayKay45 10 месяцев назад

      @@KashTheKingYT Hey I just tried to download your google drive file from this project and it gave me an error 404

  • @xRsBuiltx
    @xRsBuiltx Год назад +3

    Awesome Tutorial? How did you learn to do this? I'm still in the process of learning .Js and learning to make addons. Also, You should beable to just rename the .Webp file to .png and it should be a direct cross over without converting anything. :)

    • @KashTheKingYT
      @KashTheKingYT  Год назад +1

      I learned to do this by just trying. I wanted to make minecraft addons so I just kept learning, watching videos, and looking for tutorials. Trust me I still don't understand a lot of it 😂

    • @xRsBuiltx
      @xRsBuiltx Год назад

      @@KashTheKingYT sounds like I'm on the right path then! I've been learning as much as I can about it. APIs and scripting are new to me.

  • @I_am_u_from_reality
    @I_am_u_from_reality 25 дней назад

    Hey can you make a tutorial on how to make a smaller gui

  • @Nicocrafti0102
    @Nicocrafti0102 7 месяцев назад +1

    I have a error message : [Scripting][error]-ReferenceError: Native function [ActionFormData::show] does not have required privileges. at (main.js:76)

    • @user-vb6rf8lw2b
      @user-vb6rf8lw2b 4 месяца назад

      Hi, so i was messing around tryna fix it and i found the issue, instead of using "beforeEvents", you should use "afterEvents". here is an example:
      "world.beforeEvents.itemUse.subscribe" is the wrong one, instead use "world.afterEvents.itemUse.subscribe", if you need more help tell me (:

  • @FlutXD
    @FlutXD 11 месяцев назад

    hey, kinda late, can you make sliders in the ui?

  • @WhiteXxcobrax
    @WhiteXxcobrax Год назад +1

    This doesnt work anymore with the current version of bridge, I cant even type to edit anything. COuld you make a new video?

    • @blackburner97PY
      @blackburner97PY Год назад

      Mojang replaced all module names on last week patch
      Just replace 'mojang-minecraft-ui' with '@minecraft/server-ui' and 'mojang-minecraft' with '@minecraft/server' on 3 first lines...

  • @BlueIceCrown
    @BlueIceCrown 9 месяцев назад

    it says reference error 'player' is not defined

  • @YANCH422
    @YANCH422 4 дня назад

    is it possible to open the ui through a command?

  • @PolarFrederick
    @PolarFrederick 4 месяца назад

    How do you do this with a specific item?

  • @IvanAlesh2-0
    @IvanAlesh2-0 Месяц назад

    The form for using the item does not open for me. How to fix it? I did everything as in the video.

    • @KashTheKingYT
      @KashTheKingYT  Месяц назад +1

      This tutorial is outdated check out the one on my mcbe channel youtube.com/@KashMCBE

  • @Geokiller
    @Geokiller Год назад +1

    is there any way to display a score of a player in the body?
    something like: you have 200 coins!

    • @KashTheKingYT
      @KashTheKingYT  Год назад

      you can using scoreboards, check out the new tutorial
      ruclips.net/video/d2lrgGYdnHA/видео.html&lc=UgyrJFYr3lmGMdgI2xJ4AaABAg

  • @KaKa-ne3hg
    @KaKa-ne3hg Год назад +1

    How can mobile use the compass?I have tried both long clikc and throw it but doesn't work

  • @haryamc
    @haryamc Год назад +1

    How can I do so player who have a specific scoreboardmust execut a command that runs the UI script

  • @mightycrew2538
    @mightycrew2538 Год назад

    Can you show how you can add sound to the buy and sell ui. Like if Purchase was successful or not

  • @user-vk8rh8wj3i
    @user-vk8rh8wj3i 9 месяцев назад

    Hello, could you please update the download link for your project? Google Drive link doesn't work.

  • @Froyo1002
    @Froyo1002 Год назад

    I did this and I noticed that my behavior pack does not show up. DO you know why this is?
    Also that frame work thing is not there for me

    • @KashTheKingYT
      @KashTheKingYT  Год назад

      ruclips.net/video/d2lrgGYdnHA/видео.html&lc=UgyrJFYr3lmGMdgI2xJ4AaABAg

  • @slavakid5336
    @slavakid5336 Месяц назад

    ui menus don’t work on my tablet how to fix that

  • @IAmSnowstom
    @IAmSnowstom 7 месяцев назад

    Please Make the same video. But with relevant information

  • @pastadrmartinssempa5945
    @pastadrmartinssempa5945 Год назад

    hasnt been working for me. It says its requesting an invalid module version (0,1,0) instead of (1,0,0, beta)

    • @KashTheKingYT
      @KashTheKingYT  Год назад

      Check out the new tutorial ruclips.net/video/d2lrgGYdnHA/видео.html&lc=UgyrJFYr3lmGMdgI2xJ4AaABAg

  • @GNE-Gaming
    @GNE-Gaming 2 месяца назад

    There is no gametest option, do you have to activate something in particular?

    • @KashTheKingYT
      @KashTheKingYT  2 месяца назад

      Check out my other channel @KashMCBE

    • @GNE-Gaming
      @GNE-Gaming 2 месяца назад

      @@KashTheKingYT Is that where the solution is, or are you just promoting your other channels?

  • @Fbjsyt
    @Fbjsyt 9 месяцев назад

    can you make a tutorial for 1.20+

  • @mazedgames
    @mazedgames Год назад +1

    Not sure if this ui thing still works but for shop do this.
    give @s[scores={values=50..}] diamond 1
    tellraw @a[scores={values=50..}] {“rawtext”:[{“text”:”Purchase Successful”}]}
    tellraw @a[scores={values=..49}] {“rawtext”:[{“text”:”Purchase Failed insufficient funds”}]}
    scoreboard players add @s[scores={values=50..}] values -50
    less code and works
    Tellraw is optional

  • @Janimationzz
    @Janimationzz 10 месяцев назад

    Tye project link doesn't work

  • @1x_snow_x1
    @1x_snow_x1 11 месяцев назад

    The drive link say error 404 pls help me😢

  • @Playwithme9
    @Playwithme9 10 месяцев назад

    Hey can tou make another link for your oroject i really need an example cause the website of scriptapi,just i cant know how to do it so pls give me a link

  • @renr9803
    @renr9803 Год назад

    dosent work at all i tried everything pls help

  • @SmartThinker14-hq6li
    @SmartThinker14-hq6li 3 дня назад

    if anyone knows it is not showing the mods when i finsh coding

  • @EyzChannel
    @EyzChannel Год назад +1

    Is it possible to create an interface in which we can enter text?

  • @allizQ
    @allizQ 8 месяцев назад

    Can Update download link?

  • @Scr1pted
    @Scr1pted Год назад +1

    Oh no man, it's doesn't work now, I don't see game test ((

  • @series_ao_vivo
    @series_ao_vivo Год назад

    make a video updated to 1.19.51. doesn't work, even changing mojang-minecraft' to '@minecraft/server' and
    'mojang-minecraft-ui' to '@minecraft/server-ui'

  • @tut2533
    @tut2533 11 месяцев назад

    Bro, there's not gametest file

  • @Beelzebufo-yt
    @Beelzebufo-yt Год назад

    Can u make one for a faction realm for me pls

  • @MrMycotic
    @MrMycotic Год назад

    is there anyway of adding a text box to this?

  • @EyzChannel
    @EyzChannel Год назад

    May I know how to change the interface texture?

  • @furnz.
    @furnz. Год назад

    there is no gametest experimantel feature?

  • @redgringaming
    @redgringaming 21 день назад

    bro ur so fast lol

  • @KillergooseMC
    @KillergooseMC Год назад +1

    Can You make it for 1.18?
    Nevermind i found a way THANK YOU SOOO MUCH!!!!!!!!! THIS WAS SO USEFUL I NEED IT IT!

    • @highoncatnip_
      @highoncatnip_ 11 месяцев назад

      how

    • @KillergooseMC
      @KillergooseMC 11 месяцев назад

      @@highoncatnip_ I got the code and made it so its for 1.18

    • @highoncatnip_
      @highoncatnip_ 11 месяцев назад

      @@KillergooseMC how

    • @KillergooseMC
      @KillergooseMC 11 месяцев назад

      @@highoncatnip_ I went to the bridge file for 1.19 and made another bridge project and pasted the code to the main code

  • @redgringaming
    @redgringaming 21 день назад

    mines not working ??

  • @fosjdhfuioas
    @fosjdhfuioas Год назад

    when i try to download bridge from your link its says i will get a virus

    • @KashTheKingYT
      @KashTheKingYT  Год назад

      I think its because it was a direct link to the file

  • @tut2533
    @tut2533 11 месяцев назад

    Bro its not opening UI MENU when i press or hold compass HOW DO FIX IT???

    • @tut2533
      @tut2533 11 месяцев назад

      I REPEATED AFTER YOU EXACTLY WITHOUT ERROR BUT IT DOESN'T WORK

  • @GxPlay-Its
    @GxPlay-Its Год назад

    What version of Minecraft are you using???

  • @BlazeyCrazey
    @BlazeyCrazey 2 месяца назад

    It does not work at alllllllllllllll WHYYYYYYYYY

  • @Zixzar8896
    @Zixzar8896 Год назад

    i cant get it to work i even changed the 'mojang-minecraft' and the 'mojang-minecraft-ui'

  • @raya._.5673
    @raya._.5673 Год назад

    i cant find the gametests folder :///

    • @zcharo99
      @zcharo99 Год назад

      because when you create a gametest file, it creates the folders it needs you dont need to navigate anywhere

  • @justexcalico
    @justexcalico 5 месяцев назад

    I need help, for 2:32, I can't find gametest, what do I do?

  • @hankjwimton64
    @hankjwimton64 6 дней назад

    Ui1 timestamp: 12:01

  • @ImRedimations
    @ImRedimations 5 месяцев назад

    For me I doesn’t have scripts

  • @Evertide
    @Evertide Год назад +14

    Well I made it but mine doesn't work since I'm on mobile

    • @blackburner97PY
      @blackburner97PY Год назад +11

      Nope, also works on mobile but Mojang renamed all modules...
      'mojang-minecraft' now is '@minecraft/server'
      'mojang-minecraft-ui' now is '@minecraft/server-ui'
      Just replace that on the first lines

    • @Evertide
      @Evertide Год назад +1

      @@blackburner97PY got a quick question do I just put the custom ID name for custom items if I want to use custom item

    • @revan_gzzz
      @revan_gzzz Год назад

      ​@@blackburner97PYthanks

    • @efxkikku9220
      @efxkikku9220 11 месяцев назад

      ​@@blackburner97PYthx

    • @chrisjoel2490
      @chrisjoel2490 8 месяцев назад

      i made mine with this ideas though 😅

  • @phylali_0
    @phylali_0 5 месяцев назад

    Hey ! You can repost the google drive link or do an update please..

  • @user-ce6by9kz5u
    @user-ce6by9kz5u Год назад

    How to make two commands for one button in files?

    • @Mxziw
      @Mxziw Год назад

      Function

    • @user-ce6by9kz5u
      @user-ce6by9kz5u Год назад

      @@Mxziw Thank you! You can do it with a function. Or without the function:
      You just need to skip 2 lines after 1 button command, in which ")" and "}", and write the command again

  • @furrymcvn7619
    @furrymcvn7619 11 месяцев назад

    link is broken and pls support 1.20.10 pls

  • @max.r.anderson6012
    @max.r.anderson6012 Год назад

    I cant find the gametest

  • @dieguinxo
    @dieguinxo Год назад +1

    Work in 1.19.30?

  • @CrunchyCookiee
    @CrunchyCookiee 9 месяцев назад

    gametest doesn't exsist for me

    • @BlueIceCrown
      @BlueIceCrown 9 месяцев назад

      oh yeah its called "beta-apis" now also found you again

    • @CrunchyCookiee
      @CrunchyCookiee 9 месяцев назад

      @@BlueIceCrown ye lol I'm everywhere

  • @altoweros
    @altoweros Год назад

    Toggle?

  • @mangeshshivapurkar8353
    @mangeshshivapurkar8353 Год назад

    form1.show.(player).then(result

  • @leonmcbe2087
    @leonmcbe2087 8 месяцев назад

    New Link

  • @colasonyt1123
    @colasonyt1123 Год назад

    i can't run in 1.19.50

    • @KashTheKingYT
      @KashTheKingYT  Год назад

      Yes you can.
      You need to turn on Beta APIS and then update your modules and manifest

    • @colasonyt1123
      @colasonyt1123 Год назад

      @@KashTheKingYT but I copy your code and file and also can’t

    • @colasonyt1123
      @colasonyt1123 Год назад

      @@KashTheKingYT uuid i generate already

  • @FrotLopOfficial
    @FrotLopOfficial Год назад

    1.19.51 Bedrock. I've enabled Beta API, updated the @minecraft/server and @minecraft/server-ui and updated 0,1,0 to 1.1.0-beta but its not coming up at all

  • @FastInThePast
    @FastInThePast Год назад

    My code does not seem to be working here it is.
    EDIT: I TRIED ADDING THE IMPORTS BUT WHEN I SAVED IT KEPT REMOVING THEM!
    ("§f§lScuffed §a§lSurvival")
    form1.body("")
    //Starts at 0
    form1.button("§cSpawn")
    form1.button("§2Sethome")
    form1.button("§aHome")
    world.events.beforeItemUse.subscribe(eventData => {
    let player = eventData.source
    form1.show{ player }
    if (item.id == "minecraft:compass") {
    form1.show(player).then(result => {
    let selection = result.selection
    if (selection == 0) {
    player.runCommand(
    "function spawn"
    )
    }
    if (selection == 1) {
    player.runCommand(
    "/say @p[r=0] §cWork in Progress!"
    )
    }
    if (selection == 2) {
    player.runCommand(
    "/say @p[r=0] §cWork in Progress!"
    )
    }
    })
    }
    })