#Appearance of the menu

1 messages · Page 1 of 1 (latest)

carmine juniper
#
world.beforeEvents.itemUse.subscribe(e => {
  if (e.source.typeId == "minecraft:diamond") {
    const ui = new ActionFormData()
    ui.title("form title")
    ui.button("home")
    ui.button("lobby")
    ui.show(e.source).then(res => {
      if (res.selection == 0) {
        e.source.runCommand('tp @s 20 -60 20')
      }
      if (res.selection == 1) {
        e.source.runCommand('tp @s 0 -60 0')
      }
    })
  }
})
#

@tender rock

kind wadi
#
e.source.teleport({ x: 0, y: -60, z: 0})
hazy furnace
#

@tender rock For the UI to work like that go to #1067869374410657962 and for Scripting they showed you above.

tender rock
#

Oh alright!

hazy furnace
#

Note @tender rock JSON UI usually always cost money so som1 prob not gonna just give u the ui and code for it unlike this area in the server.

#

Like im paying 35$ for a JSON UI thing

tender rock
hazy furnace
#

Okay

tender rock
#

Thank you for letting me know, though!

tender rock
carmine juniper
tender rock
tender rock
#

oh yeah, i got that, ty!

tender rock
#

thank y'all for the help!