(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 - Хобби
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
@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'
@@KashTheKingYT , can u make more tutorials, u really good!!
How do you make text box?
I would greatly appreciate it
@@KashTheKingYTcan you help me make text box that filters and it will run command (like a code system)
Nice job! This is great I've been looking for a tutorial on this for a while.
Thank you for the tutorial!
Greetings from Paraguay
Great tutorial! This will help me make a great server in the future!
Glad I could help!
Nice Video Man
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.
Thank you so much your a real one
This is very cool
For every like this video gets I will make another video ❤
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.
Thanks for the info!
omg thank you so much, i was using beforeEvents for the ui opening, not realizing that it was wrong
Send me the code please I want to ask why it is not working for me
you cant import right you need to import from @minecraft/servers?
@@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
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!)
Good vídeo
Greetings from Brazil
hello, is there a problem with the link in the description? I can't download the project, plz help me thankss
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"?
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?
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 (:
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?
Make sure your script is named main.js in the scripts folder
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.
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
@@KashTheKingYT Oh i may just try and possibly the ui might just override the emote ui?
@@KashTheKingYT Hey I just tried to download your google drive file from this project and it gave me an error 404
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. :)
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 😂
@@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.
Hey can you make a tutorial on how to make a smaller gui
I have a error message : [Scripting][error]-ReferenceError: Native function [ActionFormData::show] does not have required privileges. at (main.js:76)
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 (:
hey, kinda late, can you make sliders in the ui?
This doesnt work anymore with the current version of bridge, I cant even type to edit anything. COuld you make a new video?
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...
it says reference error 'player' is not defined
is it possible to open the ui through a command?
How do you do this with a specific item?
The form for using the item does not open for me. How to fix it? I did everything as in the video.
This tutorial is outdated check out the one on my mcbe channel youtube.com/@KashMCBE
is there any way to display a score of a player in the body?
something like: you have 200 coins!
you can using scoreboards, check out the new tutorial
ruclips.net/video/d2lrgGYdnHA/видео.html&lc=UgyrJFYr3lmGMdgI2xJ4AaABAg
How can mobile use the compass?I have tried both long clikc and throw it but doesn't work
should work fine with mobile
How can I do so player who have a specific scoreboardmust execut a command that runs the UI script
I don't understand what you mean
Can you show how you can add sound to the buy and sell ui. Like if Purchase was successful or not
Good idea
Hello, could you please update the download link for your project? Google Drive link doesn't work.
Updated tutorial is out
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
ruclips.net/video/d2lrgGYdnHA/видео.html&lc=UgyrJFYr3lmGMdgI2xJ4AaABAg
ui menus don’t work on my tablet how to fix that
Please Make the same video. But with relevant information
hasnt been working for me. It says its requesting an invalid module version (0,1,0) instead of (1,0,0, beta)
Check out the new tutorial ruclips.net/video/d2lrgGYdnHA/видео.html&lc=UgyrJFYr3lmGMdgI2xJ4AaABAg
There is no gametest option, do you have to activate something in particular?
Check out my other channel @KashMCBE
@@KashTheKingYT Is that where the solution is, or are you just promoting your other channels?
can you make a tutorial for 1.20+
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
my tellraw didn't work. :/
thanks its help
Tye project link doesn't work
The drive link say error 404 pls help me😢
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
There's an updated tutorial
dosent work at all i tried everything pls help
if anyone knows it is not showing the mods when i finsh coding
Is it possible to create an interface in which we can enter text?
Yes, ModalFormData
@@KashTheKingYT thanks
Can Update download link?
Oh no man, it's doesn't work now, I don't see game test ((
Its called beta api watch my new video
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'
Bro, there's not gametest file
Can u make one for a faction realm for me pls
is there anyway of adding a text box to this?
isntead of action forms use modal forms
May I know how to change the interface texture?
Resource pack
there is no gametest experimantel feature?
Its called beta apis now
bro ur so fast lol
Can You make it for 1.18?
Nevermind i found a way THANK YOU SOOO MUCH!!!!!!!!! THIS WAS SO USEFUL I NEED IT IT!
how
@@highoncatnip_ I got the code and made it so its for 1.18
@@KillergooseMC how
@@highoncatnip_ I went to the bridge file for 1.19 and made another bridge project and pasted the code to the main code
mines not working ??
when i try to download bridge from your link its says i will get a virus
I think its because it was a direct link to the file
Bro its not opening UI MENU when i press or hold compass HOW DO FIX IT???
I REPEATED AFTER YOU EXACTLY WITHOUT ERROR BUT IT DOESN'T WORK
What version of Minecraft are you using???
This was 1.18 i think
It does not work at alllllllllllllll WHYYYYYYYYY
i cant get it to work i even changed the 'mojang-minecraft' and the 'mojang-minecraft-ui'
Check the pinned comment!
i cant find the gametests folder :///
because when you create a gametest file, it creates the folders it needs you dont need to navigate anywhere
I need help, for 2:32, I can't find gametest, what do I do?
its called beta apis now
Alright tysm@@KashTheKingYT
Ui1 timestamp: 12:01
For me I doesn’t have scripts
Well I made it but mine doesn't work since I'm on mobile
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
@@blackburner97PY got a quick question do I just put the custom ID name for custom items if I want to use custom item
@@blackburner97PYthanks
@@blackburner97PYthx
i made mine with this ideas though 😅
Hey ! You can repost the google drive link or do an update please..
Might update soon
Plssss❤
How to make two commands for one button in files?
Function
@@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
link is broken and pls support 1.20.10 pls
I cant find the gametest
Check the new video
Work in 1.19.30?
yes
no
gametest doesn't exsist for me
oh yeah its called "beta-apis" now also found you again
@@BlueIceCrown ye lol I'm everywhere
Toggle?
.Toggle("label here")
form1.show.(player).then(result
New Link
i can't run in 1.19.50
Yes you can.
You need to turn on Beta APIS and then update your modules and manifest
@@KashTheKingYT but I copy your code and file and also can’t
@@KashTheKingYT uuid i generate already
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
Watch the new video
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!"
)
}
})
}
})