#JSON-UI General

1 messages · Page 20 of 1

obsidian crest
#

is it possible to change the hover texture on a button without changing the purpleBorder?

tropic badger
#

instead of relying on the renderer

obsidian crest
#

alr thanks

obsidian crest
#

how so?

tropic badger
#

i meant editing the button

#

are u using content or text button?

obsidian crest
#

i’ll be using the buttons text

#

i’m just trying to edit the hover text bg texture

tropic badger
#

alright using controls method is quite tricky..

only technique i know of is just use content button then make this panel ur content

"panel_name": {
  "type": "panel",

  "controls": [
    {
      "label": {...} // Your text here
    },
    {
       "hover": {
         "ignored": "$default_state"
       }
    }
  ]
}
#

this way u can customize ur hover element, dont forget that ignore

#

@obsidian crest

obsidian crest
#

alrighty thanks i’ll try it out!

#

yeah that makes sense

chilly yacht
#

@tropic badger is it possible to make this work? json "buttons@global_buttons.buttons": { "$color": "#color", "$button_texture": "textures/ui/White", "$show_text": false, "bindings": [ { "binding_type": "collection", "binding_collection_name": "form_buttons", "binding_name": "#form_button_text", "binding_name_override": "#text" }, { "binding_type": "view", "source_property_name": "(#text - '§0')", "target_property_name": "#color" } ] } im passing through [0.5, 0.5, 0.5] in a button but its not actually coloring it

tropic badger
chilly yacht
tropic badger
#

ive tried that yesterday, nothing worked out.

chilly yacht
#

aw man

tender canyon
#

How can I make hearts be top to bottom like when I take damage It remove the hearts the hearts bellow ? (I have 20 hearts) (and when I add hearts It add it at the bottom of the previous row of hearts)

tropic badger
tropic badger
rocky quail
#

I've already had that working

#

besides the slash part

#

since bindings can't put the '/' as string unless there is any character before it

red wagon
#

I've moved on after getting stuck on it for a while due to crashes and invalid references

obsidian crest
# tropic badger alright using `controls` method is quite tricky.. only technique i know of is j...

sorry for the ping but im trying something like this ```json
"button_hover_text": {
"type": "custom",
"renderer": "hover_text_renderer",
"alpha": 0,
"allow_clipping": false,
"controls": [
{
"button_text": {
"type": "label",
"text": "#form_button_text"
}
}
]
}

but it doesnt seem to work, the hover text renderer seems to work fine, but the button text still just attaches to the button even tho its in its controls
#

do you know how to get this to work by any chance

tropic badger
obsidian crest
tropic badger
obsidian crest
tropic badger
red wagon
warped temple
#
    "type": "image",
    "texture": "textures/ui/rocket/remaining_fuel",
    "size": [
      "25%",
      "25%"
    ],
    "layer": 10,
    "offset": [
      "-150px",
      "0px"
    ],
    "$atext": "$actionbar_text",
    "visible": "('%.14s' * $atext = 'Remaining Fuel')",
            "controls": [
            {
                "actionbar_message": {
                    "type": "label",
                    "anchor_from": "center",
                    "anchor_to": "center",
                    "color": "$tool_tip_text",
                    "layer": 31,
                    "$fuel_var" : "($actionbar_text - '%.14s' * $actionbar_text)",
                    "text": "$fuel_var",
                    "localize": false
                }
            }
        ]
  }```
#

I want to show what is after "Remaining Fuel"

#

999 in this exemple

#

Why is this not working ?

#

"$fuel_var" : "($actionbar_text - '%.14s' * $actionbar_text)",

red wagon
#

Too bad

#

The / can't be removed either, otherwise i would have said you can just prepend the current text to the button action

red wagon
#

Oh wait right, i remember my buttons wrote test uwu

#

I'll have to tackle this again once I'm back home

#

Hmm what is property bag all about btw

#

Does it replace the need for variables/bindings?

#

-.- too bad you can't search in forum posts on mobile

tropic badger
#

u can also create a custom one acting as a variable

red wagon
#

But isn't it kinda redundant when you already have bindings

red wagon
tropic badger
#

works like const/let

warped temple
red wagon
tropic badger
#

This is a mixture of three complex systems(ignore the play button) that possibly only few knows how the hell it works.

  1. Incrementing/Decrementing with using only two toggles, WITH modifiedable minimum and max values.
  2. This is quite simple yet only few(perhaps only me) knows. Able to change a text using only 1 toggle without using a #visible binding.
  3. Since sliders returns float and you can't add float values on a string. I turned the float to a integer! Pretty complex, it uses a technique only shane and andro knows.

I am planning to add more complex things soon bao_comm_lawnmower

red wagon
#

Why toggles

#

Can't you just have 2 buttons that modify the value?

#

Converting float to int doesn't sound hard at all when you can just print the number

#

Not sure I'm impressed

tropic badger
tropic badger
#

just as said, i modified the max value from 26 to 11

red wagon
tropic badger
red wagon
red wagon
#

Instead of printing it as a number you can print it as something else

#

print in this case means outputting to a label

tropic badger
#

if u know how it works then why wont you come up and give us a demonstration

red wagon
#

%.n

red wagon
#

Don't jump to conclusions for no reason

tropic badger
red wagon
#

.-. mcpe community

tropic badger
# red wagon %.n

give us demonstration then.. dont u think i already tried that?? if so i wouldnt be calling it complex

red wagon
#

Screw you

tropic badger
#

ah nevermind

#

i wont escale this, i know what ur doing

red wagon
#

You're wasting your toxicity on me ;)

#

At least that's how it feels

tropic badger
#

keep walking bruh

red wagon
#

Whatever.

red wagon
tropic badger
#

im dead bruh 💀

hexed briar
#

wtf is #view bindings

red wagon
red wagon
#

Though it might be something I'm mixing up there because it's in that linked post

hexed briar
#

pretty sure ive never seen #view in my entire career with json-ui for the past 2 years.

#

yeah this thing doesn't exist

tropic badger
#

"if you use #visible instead of #view consider yourself an opp" 😭

hexed briar
#

legit thought this is some html stuff

red wagon
#

if it doesn't exist, that page needs an update

hexed briar
#

that's view bindings type.

#

i don't see #view anywhere here.

red wagon
#

Oh wheee i made a typo

#

Crazy

#

Anyways, I'm sure you can just use printf formatting to convert your stuff to a number, and * 1 to convert it back.

printf is a C standard library function that formats text and writes it to standard output.
The name, printf is short for print formatted where print refers to output to a printer although the functions are not limited to printer output.
The standard library provides many other similar functions that form a family of printf-like functions. These...

red wagon
#

Another typo man I'm so bad

vital edge
#

fair. who works with JSON UI become clinically insane

red wagon
#

Sucks to be me, right? bao_icon_entities

vital edge
#

me included (or is it just me)

hexed briar
#

good thing I retired from json-ui smh

red wagon
#

imagine you'd actually have the full list of variable and property names in your mind and accessible at will

#

That would be mad

hexed briar
#

actually i'd love to have a full list of variables

#

it's pretty big sign of customizability.

red wagon
#

||crap nevermind i just realized i do for PHP 💀||

red wagon
vital edge
#

client-side scripting. or the ability to pass json ui variables from the server or something so you can have multiple I/O

hexed briar
#

data passing from the server would actually be a good help tbh

#

no longer sticking with actionbar/title

vital edge
#

yee

#

that also helps with compatibility

hexed briar
#

although the chat probably still a no since there's no optional way to stack collection elements or the same way as chat does.

red wagon
tropic badger
tropic badger
tropic badger
#

its 9:54PM here, i have some brainstorm ideas where i would implement String.split() method from JS to JSON-UI

red wagon
#

Haha enjoy

wraith dirge
#

why isn't my gui_background covering everything?

chilly yacht
wraith dirge
chilly yacht
#

100%cm takes the biggest one

wraith dirge
#

Ah yes, now I understand, I was very confused with these parts of % anyway

#

but I'm getting the hang of it

#

thanks for the help

chilly yacht
wraith dirge
#

Another question, why does the text offset not seem to work when it is inside a stack_panel?

#

Is there anything I need to do?

undone marsh
wraith dirge
undone marsh
obsidian crest
wraith dirge
wraith dirge
chilly yacht
#

you just put the child into a panel inside of the stack panel

#

then offset the child thats in the panel

vagrant nova
#

guys How do i space the buttons?

marsh coral
#

Hello, again you see a question that is always repeated here but is there a way to make one button bigger than another?

vagrant nova
vagrant nova
#

oh

#

sorry got confused

graceful elbow
#
{
  "tiers": [
    {
      "trades": [
        {
          "wants": [
            {
              "item": "minecraft:iron_ingot",
              "quantity": 5
            }
          ],
          "gives": [
            {
              "item": "minecraft:nether_star",
              "quantity": 16
            }
          ]
        },



#

i need the villager to not ever have to resuppy

#

could anyone help?

rocky quail
wind walrus
tropic badger
patent bramble
#

Can json UI react to damage sensors?

#

I want to on damage taken force render and derender the inventory screen in the same frame

wind walrus
# tropic badger gatekeep

bruh why? people like you are the problem with this community and how slowly anyone progresses lol

left yew
#

💀❓️

hexed briar
patent bramble
hexed briar
#

it wasn't good aswell since sometimes it doesn't work.

patent bramble
#

I just need to figure out how to force render a UI now

#

Probably something to do with bindings

#

All in same tick:

damage sensor{}
Force Render inventory
Grab item data of slot.armor[0-3]
Write these to a var
Derender inventory

I doubt something like this is possible

hexed briar
#

inventory needs to be in player interaction.

#

pretty sure you can't force the inventory screen on.

#

but scripting should be able to fetch the armor data

patent bramble
#

I’ve seen methods that always show

patent bramble
#

purely source pack sided

hexed briar
patent bramble
#

So not possible as of now?

hexed briar
#

well yeah, again. you can't force player to open inventory screen out of nowhere

patent bramble
#

Is there a way to force close it?

hexed briar
#

yes, only if you take damage.

patent bramble
#

cause I know you can do that with chat screen

patent bramble
#

that and tie it to a toggle

#

Custom setting almost
“close UI on taking damage”

hexed briar
#

i don't think that's gonna work with toggles though.

#

since the property are, kinda hardcoded

patent bramble
#

I’ll eventually find a way

#

just don’t let the program flow reach the setting unless toggle is true?

hexed briar
#

Json-UI is always cached.

patent bramble
#

Ah

#

Was worth a shot

tropic badger
#

Bare-minimum, its a miracle i even get "thank you".

wind walrus
#

sharing resources is how anything progresses faster, if everyone had the same mindset as you we probably wouldn't even have a hundred people interested in json ui bruhgerrs, yes a lot of people gatekeep and it's why stuff like you are doing here isn't even thought possible (since I'm guessing most would say it's impossible if asked as a question)

left yew
#

Sharing resources could speed up everyone's progress, but not sharing also manages to keep quality and creativity high within the community.

tropic badger
wind walrus
wind walrus
wind walrus
#

well I'll figure it out eventually and share it with everyone but you definitely have some work to do on yourself man, gatekeeping at it's finest

left yew
#

If you expect the world to hand everything out. You need to work on yourself

tropic badger
wind walrus
#

also why are you coming into the discussion so hard for no reason man? I have been literally replying only to him

left yew
#

Its a public channel

#

take it to dms if you dont want another person to answer

wind walrus
#

I'm just saying it seems like you want stuff to be gatekeept for no reason

left yew
#

I don't care if its gatekept or not really.

I could spend the time and figure it out like Theorist if I wanted to.

#

If I were to dump zeqa's ui files in here for fun. How many ppl do u think will take it 1:1

Because even without me doing that I've seen it, hence why I gatekeep specific things I work on too.

wind walrus
#

yes the point of this is not something super diffcult or crazy to do, just that takes time to figure out and since someone already did it why would they not spare everyone elses time for the greater cause of improving everyone? to the point of not even accepting payment for it

wind walrus
left yew
#

Why should I share my progress and how to do it.

#

just because someone offered me money?

wind walrus
#

because we are human and wanna help each other out?

#

for no gain?

left yew
#

Not everyone will not everyone has to.

wind walrus
#

I never said he has to, but I offered him compesation for the work he put into it too, which he reject for the sole fact of gatekeeping

left yew
#

So once again, why Should he accept the payment and not gatekeep.

left yew
#

Not everyone will not everyone has to.

#

You see how that works right?

wind walrus
#

yeah I see how your mind works and it's sad

left yew
#

Explain how my mind works.

#

Just because I dont want to give handouts means it's sad?

wind walrus
#

you think only about your personal gain instead of the improvement of others

left yew
#

Welcome to the real world.

tropic badger
#

explain otDan taxes

wind walrus
left yew
#

I mean

#

if i own discord

#

and u want the method for lets say

How the message system works

and youre competition

#

why should i share it

lament shoal
#

if everyone used hive ui then no servers would be unique. its more better to experience yourself to so that you actually can gain some shape or form of knowledge

wind walrus
#

exactly welcome to your world, not mine, you probably also use public resources, open source projects but you reject the fact that such a world would be ideal, if it wasn't for people that think like this everything would be corporate

wind walrus
left yew
#

So your logic being,

Hive uis finished lets share it so everyone can use it...?

lament shoal
#

^

wind walrus
#

how?

wind walrus
#

how is that what you got from any of my messages?

tropic badger
#

When i started here i too asked questions but get replied with either ?json-ui/json-ui-is-hard so alright i learned JSON-UI. I once saw a guy made a cool system, i asked how but i haven't got a reply. I asked why? They replied to me again to learn json-ui. Now im better than them. It's all environmental factors man, i understand what u feel, i already got in your shoes.

Trust me once you make a cool unique system, you wouldnt share it.

lament shoal
buoyant anvil
wind walrus
lament shoal
lament shoal
wind walrus
left yew
#

mate

#

💀

buoyant anvil
#

buddy

lament shoal
#

kdkcomsokai

#

ngl tho

left yew
#

Womp womp someone doesnt want to give you stuff they worked on

lament shoal
#

fax bro

left yew
#

would I share lets say, zeqa's full ui to scorp because he helped me by fixing a missing comma

no

buoyant anvil
#

it loks nice

lament shoal
#

r u stupid

buoyant anvil
#

whos that?

lament shoal
#

sorry that was mean

lament shoal
buoyant anvil
#

oh hey

#

Hi nice to meet you clitix

wind walrus
lament shoal
#

can i see what ui u made

#

pls

lament shoal
#

im curious

wind walrus
tropic badger
wind walrus
#

#1243177214057513010 message

lament shoal
#

okay now, if someone asks for your assets and tools, would you give them it?

#

even if you worked HOURS on it

lament shoal
#

spent literal weeks

#

trying to perfect it

buoyant anvil
#

or fortnite

lament shoal
#

and someone just comes along

#

asking for tools

buoyant anvil
#

thanks sisics

lament shoal
#

you're just going to hand it off to them?

wind walrus
left yew
#

?

lament shoal
#

brother what

buoyant anvil
#

?

wind walrus
#

?

left yew
#

😭

#

u funny bro

outer bridge
#

I love how this channel occasionally turns into an argument about gatekeeping PE_PandaNompopcorn

left yew
#

u made my day dan

lament shoal
wind walrus
# lament shoal brother what

bro it's obvious you wanted to prove your point by making me share sub par uis and saying see you can't say shit since you are not at a good level, don't say it's not what you wanted

wind walrus
outer bridge
#

Y'all have way better documentation than when I started out, it's generally pretty easy to figure out how stuff works at this point. Not to sound like an old man but back in my day we had to brute force and reverse engineer the game to figure out how to make stuff work and write the documentation.

wind walrus
buoyant anvil
#

we had a good community and documentaion

wind walrus
#

I'm not saying reverse engeneering is bad especially since it lets you learn a lot, just that if you can avoid doing it by having great documentation (especially if made by the actual developers of the product) isn't it better?

buoyant anvil
#
  • epic games paid us quite well
buoyant anvil
lament shoal
#

@buoyant anvil ce mec me rend fou 😭

buoyant anvil
#

oui moi aussi

#

il est un bozo

lament shoal
buoyant anvil
tropic badger
#

@buoyant anvil buddy you join this server just to help citicx to jump that guy?

buoyant anvil
#

or do u actually knolw frnehc

lament shoal
#

no ai

buoyant anvil
#

im here to talk to scorpio

lament shoal
#

ye

buoyant anvil
#

I just say the occasioonal ^ to a random message

#

to make it look like I know shit

lament shoal
#

and i js leave

#

ive been in here for like

buoyant anvil
lament shoal
#

100 times

buoyant anvil
#

like a browser extension

#

or wha

lament shoal
#

chatgpt

buoyant anvil
#

oh

outer bridge
buoyant anvil
#

chatgbt is bad for translating

outer bridge
#

Although really at this point I think we've documented most of the things people are practically going to use. Most things can be figured out with bindings, operations, split text, preserved text, and variables just by reading the wiki.

lament shoal
#

@buoyant anvil

buoyant anvil
#

d'accord is more appropirate

lament shoal
#

same thing

wind walrus
left yew
lament shoal
left yew
hexed briar
#

tbh I don't mind about gatekeeping. though given how little info we have in json-ui, it kinda looks sad. i don't have to judge anything.

red wagon
#

That's a name i haven't seen in a while lol @tender flare

red wagon
#

😂💜

chilly yacht
#

@tropic badger how do clip ratios work? idk how to do this json "bar": { "type": "panel", "size": [ 182, 20 ], "controls": [ { "full_bar": { "type": "image", "texture": "textures/ui/experience_bar_full_blue", "clip_direction": "left", "layer": 2, "property_bag": { "#progress": 0.5 }, "bindings": [ { "binding_name": "#progress", "binding_name_override": "#clip_ratio", "binding_type": "global" } ] } }, { "empty_bar": { "type": "image", "texture": "textures/ui/experience_bar_empty_blue", "layer": 1 } } ] }

tropic badger
#

it slices the image not resize

undone marsh
tropic badger
undone marsh
#

I think I got how it works but this isn't useful to me anyways

tropic badger
#

yeah me too, haven't do anything with it but it considered as a complex(time complex)

undone marsh
#

If you could've saved those values it'd be used as an in-game config changer

tropic badger
#

why do that?

undone marsh
# tropic badger why do that?

To save hud "modules" like armorhud without going to the files like config.json (only if it was possible to save the text values)

tender flare
uneven epoch
#

are you able to delay a screen from opening with json ui? meaning like after i open the screen there is still time do stuff (move around and hit) before it actually opens? such as a server form screen for example

tropic badger
#

oh wait nvm

#

thats not possible

uneven epoch
#

no problem thank you for the confirmation

red wagon
obsidian crest
vagrant nova
#

how do i make a scene like a animation

patent bramble
#

anyone know how I would add a new toggle to the pause menu?

split hare
#

Noob question... how are people using the preserved title text example in the wiki for anything useful? it feels like for 99% of cases, we would NOT want to have the title text pop up for people every time you want to update the hud element. is there a way to do this while hiding the title text itself?

uneven epoch
#

More specifically not in beh

wraith dirge
#

One question, whenever the action bar text changes from 0 to 10, it adds 1 to the char and breaks the string formatting, so how can I make this work?
I have a scoreboard that goes up to a maximum of 999, but when adding a decimal place it breaks the formatting, how do I do it?

tropic badger
split hare
wraith dirge
#

my code:

#

works normally with 1 decimal place, but when it changes to 2, it breaks (for example, enemies from 1 to 10, when it reaches 10, it breaks the string formatting)

#

stats.stats_text_factory/waves_text | JSON UI parse failure - expected a string.

ember oyster
#

anyone knows how to make heart bar dissaper?

#
{
  "namespace": "hud",
  "elements": [
    {
      "type": "panel",
      "id": "hud_player_renderer",
      "size": [15, 15],
      "controls": [
        {
          "type": "custom",
          "id": "hud_player",
          "renderer": "hud_player_renderer",
          "layer": 1,
          "bindings": [
            {
              "binding_name": "#paper_doll_visible",
              "binding_name_override": "#visible"
            }
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "centered_gui_elements_at_bottom_middle",
      "anchor_from": "bottom_middle",
      "anchor_to": "bottom_middle",
      "size": [180, 50],
      "controls": [
        {
          "type": "custom",
          "id": "heart_rend",
          "renderer": "heart_renderer",
          "offset": [-1, -40],
          "anchor_from": "bottom_left",
          "anchor_to": "bottom_left",
          "bindings": [
            {
              "binding_name": "#visible",
              "binding_type": "constant",
              "value": false
            }
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "not_centered_gui_elements",
      "controls": [
        {
          "type": "custom",
          "id": "heart_rend",
          "renderer": "heart_renderer",
          "offset": [2, 2],
          "anchor_from": "top_left",
          "anchor_to": "top_left",
          "bindings": [
            {
              "binding_name": "#visible",
              "binding_type": "constant",
              "value": false
            }
          ]
        }
      ]
    }
  ]
}

here's my code but it doesnt work

rocky quail
#

That's not how the vanilla hud_screen is written... is that ai generated?

chilly yacht
#
"heart_renderer": {
  "ignored": true
}
vagrant nova
#

how do i change the background of the dropdown

vagrant nova
#

and button texture

hexed briar
#

absolutely nothing makes sense to me

tropic badger
#

it very close

vagrant nova
#

i got the dropdown background image blank

#

but i need to change the button of dropdown to blank

#

how do i do it?

tropic badger
vagrant nova
tropic badger
# vagrant nova which part of the code?
"$default_texture": "textures/ui/button_borderless_light",
"$hover_texture": "textures/ui/button_borderless_lightpressednohover",
"$pressed_texture": "textures/ui/button_borderless_lighthover",
    "$pressed_no_hover_texture": "textures/ui/button_borderless_lightpressed",
"$locked_texture": "textures/ui/disabledButtonNoBorder",

on ur dropdown

#

just edit the texture

vagrant nova
tropic badger
#

ye

#

edit ur texture there

vagrant nova
#

i made the texture blank

#

alr

#

imma test

#

damn

#

it works

#

now how do i replace text with a image?

#

like insert a image here

#

@tropic badger one last ping, how do i make this invisible without editting the common_ui files

tropic badger
#

invisible what?

vagrant nova
#

the background

tropic badger
tropic badger
vagrant nova
#

okay maybe i can use a emoiji like thing?

tropic badger
#

ye

vagrant nova
#

how do keep distance for every dropdown

sly gorge
#

This thing renders the heart right?

hexed briar
#

yeah.

#

unfortunately these things use a custom type. so it kinda not possible to change it's texture, individual positions and etc.

sly gorge
#

I changed the size to 20,20 💀

#

Let's see what happens.

hexed briar
#

instead, you can move them with "offset" or "anchor_<from/to>"

#

changing size probably does nothing since the hardcoded size for these custom renderers are 9x9.

sly gorge
#

Oh :(

#

What can I do with it then lol?

hexed briar
#

move them maybe.

#

another thing is, you can add your own image and text.

#

as separate elements.

sly gorge
hexed briar
#

this will change the element position to top right of your screen/element.

sly gorge
#

Lemme see how it looks :D

sly gorge
#

This happened ing.

#

Just a couple pixels above.

hexed briar
#

alot elements has quite a lot of element stacking so something like that will happen.

sly gorge
#

Oh no.

#

:(

sly gorge
hexed briar
hexed briar
#

you can mess around with it

wraith dirge
#

One question, whenever the action bar text changes from 0 to 10, it adds 1 to the char and breaks the string formatting, so how can I make this work?
I have a scoreboard that goes up to a maximum of 999, but when adding a decimal place it breaks the formatting, how do I do it?

(Using %.4s stuff)

sly gorge
hexed briar
#

i guess don't put it on literally everything

#

just read the name of the element correctly and modify as you will.

#

Oh, forgot to mention that.

#

make sure the code syntax vaild.

#

I've seen alot of beginners casually missing out on code syntax and wondering why is their stuff not working.

sly gorge
pine furnace
#

One message removed from a suspended account.

left yew
#

I made this start screen a year ago.

Took me 73 hours of json ui but was worth it

#

Here was the amazing hud to go with the client.

lament shoal
#

i could never make this 😔

left yew
lament shoal
#

Nah I can do it myself 😎💪

tropic tangle
left yew
tropic badger
#

its modern art

left yew
#

It's for sure modern art

sly gorge
#

73 HOURS WHA-

#

I can't even change the heart bar location yet D:

left yew
sly gorge
#

Okay dammit, i have to make smth.

sly gorge
#

In json ui there's no possible way to run a command when a button is clicked, right? So do I need to do some work arounds with Server Ui forms with scripting?

tropic badger
#

ye

#

tho

patent bramble
patent bramble
#

so no way to tie it to the player’s
entity files

Does that just make resource pack sided UI completely useless?

patent bramble
#

Like it need a behaviour pack to do anything

tropic badger
#

yes absolutely

patent bramble
#

Guess there’s no point in me learning it then

#

since I work with just resource packs

tropic badger
#

it just there

left yew
tropic badger
#

Update on my complex systems:

This is a mixture of three complex systems(ignore the play button) that possibly only few knows how the hell it works.

  1. Incrementing/Decrementing with using only two toggles, WITH modifiedable minimum and max values.
  2. This is quite simple yet only few knows. Able to change a text using only 1 toggle without using a #visible binding.
  3. Since sliders returns float and you can't add float values on a string. I turned the float to a integer! Pretty complex, it uses a technique only shane and andro knows.
  4. Dynamic text splitting, it does not use %.Xs flags, you know it's dynamic because even if i put obnoxious amount of spaces it still work. The thing that can seperate them is a comma which is also modifiedable.

This type of stuff takes abnormal amount of time, i won't be sharing yet, please don't start an argument here again.

patent bramble
#

@tropic badger
How much do ppl usually pay for custom UI?

tropic badger
left yew
#

Pause menu^

tropic badger
chilly yacht
ember oyster
#

{
"namespace": "hud",

"heart_renderer": {
"type": "custom",
"size": [ 3, 3 ],
"renderer": "heart_renderer",
"layer": 1,
"bindings": [
{
"binding_name": "#show_survival_ui",
"binding_name_override": "#visible"
}
]
}
}

#

how can i make heart not display

last pollen
#

Guys can you help me, I am trying to make a bigger screen for a long form called Quesr

#
{
  "namespace": "server_form",
  

  "long_form": {
      "type": "panel",
      "size": ["100%","100%"],
      "controls": [
              "long_form@common_dialogs.main_panel_no_buttons": {
               "$title_panel": "common_dialogs.standard_title_label",
               "$title_size": [ "100% - 14px", 10 ],
               "size": [225, 200],
               "$text_name": "#title_text",
               "$title_text_binding_type": "none",
               "$child_control": "server_form.long_form_panel",
               "layer": 2,
               "bindings": [
                   {
                       "binding_name": "#title_text"
                    },
                    {
                        "binding_type": "view",
                        "source_property_name": "((#title_text - 'Quests') = #title_text)",
                        "target_property_name": "#visible"
                    }
               ]
             },
               "long_form@common_dialogs.main_panel_no_buttons": {
               "$title_panel": "common_dialogs.standard_title_label",
               "$title_size": [ "100% - 14px", 10 ],
               "size": [400, 200],
               "$text_name": "#title_text",
               "$title_text_binding_type": "none",
               "$child_control": "server_form.long_form_panel",
               "layer": 2,
               "bindings": [
                   {
                       "binding_name": "#title_text"
                    },
                    {
                        "binding_type": "view",
                        "source_property_name": "(#title_text = 'Quests')",
                        "target_property_name": "#visible"
                    }
               ]
             }
      ]
  }
}
vagrant nova
#

does anyone how to increase the size of the drop down options

hexed yacht
#

does anyone know where I could get the Minecraft loading animation (Spinning circle thingy) from/where it is, I'd like to change it...

last pollen
#

Guys, I'm terrible with the UI, I'm making a Fallout addon, I wanted to know how the UI works

wraith ruin
#

If you get stuck on smth, just message me.

last pollen
#

@wraith ruin can I also

wraith ruin
pine furnace
#

One message removed from a suspended account.

wraith ruin
red wagon
sly gorge
sly gorge
#

Guys what is #hardtext?

chilly yacht
#

a binding

sly gorge
#

What does it do ef_eyes

chilly yacht
#

binds

#

which file did you find it in?

#

i think its just an example

#

but basically you can reassign bindings

#

so if u wanna do (#hardtext - 'Hello World!')

#

you can reassign it to like #hardtext2

left yew
tropic tangle
#

Damn even the emote screen

#

MC China still has the good looking one not the ugly cube one Mojang added

hexed briar
#

they probably still use the old 6 emote slots which, are hexagon.

#

bedrock actually used to have 6 emote slots. though kinda got downgraded to 4 emote for whatever reason

tropic badger
#

the assets are still there though? backwards compatibility?

#

ill probably remake it

#

wait what update version did they update the emote wheel again?

left yew
#

First time enabling since it was made 😅

tropic badger
undone marsh
#

@broken trail could you check dms please?

tropic tangle
undone marsh
hexed briar
#

they also implemented a fast emote system aka "emote button + corresponding keys"

#

don't exactly know any behind story to it but, honestly with 6 slots and without any way to do fast emote in a controller. it kinda annoying to most people including me (although i barely use emote anyways)

#

not everyone does the gta wheel thing i guess

digital finchBOT
#
admin_king

todo

shrewd vine
#

Guys help me pls

#

How to can i align

#

And text resize

#

I can send this file

unique swan
shrewd vine
left yew
#

The point of is to look like hive, it was made as a concept for the server 😭

vagrant nova
#

how do i remove this?

rocky quail
#

Make dropDownSelectBg.png transparent

vagrant nova
left yew
#

Is it just me or is way slower 😭

rocky quail
#

you have to edit the drop down from ui_common.json

sly gorge
#

How can I show a custum HUD UI whenever there's a title text of "Yay"? And how do I make that title text ("Yay") invisible?

vital edge
#

i cant type properly because im on phone. but theres a section on the bedrock wiki regarding JSON UI and conditional bindings

sly gorge
#

How can I get the hud title text?

#

And put it in a lable of another element? ef_eyes

hexed briar
#

you can hold the emote button and press any corresponding keys

#

or you can just do the same but without holding

#

hold version is probably slower.

left yew
#

seems slower

#

I dont understand the concept of it tho

#

like ill hold the emote button instead of clicking it?

Like you gotta click both either way anyways

hexed briar
#

i guess its probably best for those who doesn't want to touch mouse

#

but for controller, it seems a massive improvement to me

left yew
#

just a weird addition

#

idk 😭

hexed briar
#

me either

#

controller on another hand, there's no such things before that so

#

gotta do the gtav scroll wheel thing

left yew
#

"What if, instead of adding something cool with json-ui, we add a random "quick" menu"

obsidian crest
#

microsoft try to do something helpful instead of making weird useless json screen changes challenge

#

impossible

left yew
#

Did i ever send the clip of auto rotating paper dolls here?

obsidian crest
#

don’t think so

#

possibly?

left yew
hexed briar
#

is the bindings from skin creator screen?

left yew
#

Property bags from day one screen

hexed briar
#

probably looks the same as skin screen

#

they do have rotation like that iirc

tropic badger
#

if i report json ui bug will it get fixed?

left yew
#

Intended Bug xD

left yew
# left yew

But yeah, havent seen this mentioned before so I thought I'd send it

hexed briar
#

if the bug was mojang fault via their own UI

#

they probably gonna fix it

#

if it was user generated json-ui or something that isn't mojang fault, absolutely not.

vital edge
rocky quail
tropic badger
#

Damn i was gonna report a bug on factories not cloning an element animations.

#

Anyways why ui can't handle numbers greater than 999999999? Is that consideres long int?

vital edge
#

perhaps a mem limit was imposed

exotic kindle
#

How can I change the background image of my form?

graceful elbow
#
{
          "wants": [
            {
              "item": "minecraft:nether_star",
              "quantity": 20
            }
          ],
          "gives": [
            {
              "item": "minecraft:diamond_chestplate",
              "functions": [
                    {
                      "function": "enchant_with_levels",
                      "levels": {
                        "min": 30,
                        "max": 40
                      }
                }
              ]
            }
          ],
          "max_uses": -1,
                    "trader_exp": -1
        },

Does anyone know who to have a centre enchant instead of random ones?

west trail
#

Where can I learn more advanced json ui the docs don’t seem to be useful

simple crystal
left yew
wraith ruin
tropic badger
# west trail Where can I learn more advanced json ui the docs don’t seem to be useful

In mathematics and mathematical logic, Boolean algebra is a branch of algebra. It differs from elementary algebra in two ways. First, the values of the variables are the truth values true and false, usually denoted 1 and 0, whereas in elementary algebra the values of the variables are numbers. Second, Boolean algebra uses logical operators such ...

red creek
#

Why is it like this after the update?

west dawn
patent bramble
#

Can json UI “skip screens”
Eg. If I wanted to load a world directly from the main menu

fast falcon
#

Is it possible to run a script when the player presses a custom button?

still sundial
thorn path
#
{
    "verdant": {
        "type": "panel",
        "anchor_from": "bottom_left",
        "anchor_to": "bottom_left",
        "size": ["100%cm", "100%c"],
        "offset": [20, -20],
        "controls": [
            {
                "logo": {
                    "type": "image",
                    "layer": 2,
                    "anchor_from": "center",
                    "anchor_to": "center",
                    "texture": "textures/ui/logo",
                    "size": [32, 32],
                    "controls": [
                        {
                            "text": {
                                "type": "label",
                                "size": ["100%", "100%"],
                                "font_type": "normal",
                                "layer": 3,
                                "localize": false,
                                "font_scale_factor": 1,
                                "alpha": 1,
                                "anchor_from": "center",
                                "anchor_to": "center",
                                "text_alignment": "left",
                                "text": "#playername",
                                "bindings": [
                                    {
                                        "binding_name": "#playername"
                                    }
                                ]
                            }
                        }
                    ]
                }
            }
        ]
    }
}

why can't #playername work?

signal beacon
#

Ñ

gloomy nova
#

The #playername binding at minimum only works in the start_screen and pause_screen. The other screens don't set that binding.

exotic kindle
#

How can I move the buttons from my form to the top left if the image is e. g. "loading"

tropic badger
languid arrow
#

What's the website again to add this to the server?

hexed briar
#

@left yew might wanna see this lmao

#

how is this spreading like wild fire is beyond me

#

this random pvp server pack is now suddenly more skidded than hive now.

tropic tangle
#

Hive Looking ah emojis

#

font looks sick tho

tropic tangle
#

this has nothing to do with json ui btw

hexed briar
tropic tangle
#

Because they don't encrypt their packs

#

People who decrypt server-packs oftentimes won't just go and spread it around, but if its just there to take i don't think they bother

hexed briar
#

well they used to encrypt their packs before and then things goes haywire or something i would say "imposter from among us" moment and decided to leaks literally everything

#

seeing that emojis set, im guessing it's still from the leaked version.

tropic tangle
#

😂

left yew
#

@past stirrup you got perms to delete things? If so can you delete this.

Thx bro

lament shoal
tropic tangle
#

I am not the one who sent it

lament shoal
#

oh im stupid

#

sorry

left yew
#

Also chat the leak happened in like 2022 if not early 2023 lol

The pack leaked wasn't even finished lol

tropic badger
#

is it zeqa

chilly yacht
#

yes

graceful elbow
#
{
                        "name": {
                            "rawtext": [
                                {
                                    "text": "§fCrate keys"
                                }
                            ]
                        },
                        "commands": [
                            "/execute @initiator ~~~ tellraw @a {\"rawtext\": [{\"text\": \"§d§l
---Your keys--- §a\"}, {\"text\":\"n§aCommon keys: §r\"}, {\"score\":{\"name\": "*",\"objective\": \"ckey\"}}, {\"text\": \"\n§b§l
Rare keys: §r\"}, {\"score\":{\"name\":"*",\"objective\": \"rkey\"}}]}",
                            "/execute @initiator ~~~ playsound note.bass"
                        ]
                    },
#

anyone know why i get errors

tropic badger
#

json ui channel is probably the most dead channel that you could break rules here and mods wont see

tropic badger
#

does anyone know how can i make nineslice repeat its pattern instead of just expanding it

gloomy nova
#

try using it with the tiled/tiled_scale. maybe the devs are smarto

rocky quail
chilly yacht
cunning bridge
#

is it possible to make an element clip/crop the pixels of the children element that are placed on the empty pixel of the of it?
like if i place a red square png on a white circle png, i want the red square to take the shape of the of the circle
⚪ + 🟥 --> 🔴

tropic badger
short chasm
#

Is there any JSON UI editor?

vagrant nova
#

does anyone know why the search icon is missing from inventory screen?

left yew
#

Hotbar transition to ore ui seems to have started 😭

left yew
tropic badger
#

how u know

left yew
#

Because I looked through the files..?

tropic badger
#

howd you come to that conclusion??

left yew
tropic badger
#

is there anything diff

left yew
#

No they haven't started anything really

#

Anyways

#

It's begun

#

Furnace screen too**

#

There's more progress on the furnace than hud tho

rocky quail
#

No more custom hud bao_panda_crying

hexed briar
#

wild

#

took em like nearly 2 years to progress something with ore-ui

left yew
#

seen them else where but yeah those are them

left yew
#

but i doubt it since its mojang

hexed briar
#

they do used to automatically turn the ore-ui to json-ui if you're using resource packs

#

though now it no longer exists.

#

i still dislike the new bed screen since that is literally a reused screen from the death screen with bit of fading gradient background anims.

rocky quail
left yew
#

The new in game uis dont even use ore ui designs for me lol

#

the buttons are still the old ones

hexed briar
#

well ore-ui's in-game does resource pack support. (also json-ui's global variables.)

#

so it kinda fetches the json-ui textures and calls it a day

#

though only textures because the font is still ore-ui's .ttf based.

tranquil pecan
#

Looking for a JSON UI dev for commission project.

mint falcon
opal aurora
rocky quail
hexed briar
#

gotta love html pages

opal aurora
#

it can't even be compared with how i did a year ago, 20k controls/objects in a single screen for just percentage labels

#

and it still performed better than ore ui

thorn path
#

I'm just learning JSON UI, is there an easiest tutorial to understand JSON UI?

tropic tangle
left yew
#

I love dying and needing to restart the gane because the death screen just won't load

hexed briar
#

i don't know what did they do this time but they actually bought the oldest bug back with ore-ui death screen

opal aurora
fickle tartan
#

Hey i'm new in Json ui, how could I link "custom_azuria_ui@common_dialogs.main_panel_no_buttons" with "long_form@custom_azuria_ui" binding if title_text = 'Bey Editor'

{
  "namespace": "server_form",
  "long_form": {
    "type": "panel",
    "size": [
      "100%",
      "100%"
    ],
    "controls": [
      {
        "long_form@common_dialogs.main_panel_no_buttons": {
          "$title_panel": "common_dialogs.standard_title_label",
          "$title_size": [
            "100% - 14px",
            10
          ],
          "size": [
            225,
            200
          ],
          "$text_name": "#title_text",
          "$title_text_binding_type": "none",
          "$child_control": "server_form.long_form_panel",
          "layer": 2,
          "bindings": [
            {
              "binding_name": "#title_text"
            },
            {
              "binding_type": "view",
              "source_property_name": "((#title_text - 'Bey Editor') = #title_text)",
              "target_property_name": "#visible"
            },
            {
              "binding_type": "view",
              "source_property_name": "((#title_text - '§c§h§e§s§t§c§h§e§s§t') = #title_text)",
              "target_property_name": "#visible"
              
            }
          ]
        },
        "long_form@custom_azuria_ui":{
          "layer": 2,
          "bindings": [
            {
              "binding_name": "#title_text"
            },
            {
              "binding_type": "view",
              "source_property_name": "((#title_text - 'Bey Editor') = #title_text)",
              "target_property_name": "#visible"
            }
          ]
        }
      }
    ]
  },
  "custom_azuria_ui@common_dialogs.main_panel_no_buttons": {
    "type": "panel",
    "size": [
      "100%",
      "200%"
    ]
  }
}
hexed briar
#

After Ore-UI's death screen got fully out in stable, that bug was now just back and now actually pretty common just like it's old variant.

left yew
#

and its sad how most things like this is limited to dev versions

tropic badger
left yew
#

Pretty sure u can't even on Dev Versions

#

Or at least these were the only ones I found in preview files

opal aurora
tropic tangle
#

Big Brain move to roll out game breaking changes without keeping support for jsonui if that's true 🔥

hexed briar
#

ore-ui is under dev for 5 years btw

left yew
#

💀

tropic badger
#

how'd you know?

left yew
tropic badger
warm schooner
left yew
#

That prolly and i mean the new achievement screen was added sometime in 1.16 which was 2020ish, would make it 4 years since a public launch.

warm schooner
#

5 years ago

#

theyve had other old scrapped concepts

left yew
#

Mojang also attended dotJS in 2018 to show off stuff.

warm schooner
#

there was a repository with a really old version of ore ui

warm schooner
left yew
#

Filmed at https://2018.dotjs.io on November 9th in Paris. More talks on https://dotconferences.com/talks

Minecraft is getting a JavaScript runtime. It means two things: 1) game logic will be exposed through a new API that you can use to create your own mods, and 2) the way Minecraft’s UI is built and shipped on everything from Android and iOS t...

▶ Play video
warm schooner
#

oh thanks

#

they show off some old chromium ui prototype iirc

left yew
#

Yes it's in the video.

warm schooner
#

oh

warm schooner
viral oxide
#

Is it possible to index into an array variable?

I need to write a condition based on $grid_position which is an array of two numbers, and I want to be able to access that first number in $grid_position

#

I tried using something like $grid_position[0] and $grid_position.x but both threw errors

hexed briar
#

the font on this thing still screams html to me.

viral oxide
#

hmm, any suggestions to detect every other slot in a grid?

tropic badger
viral oxide
#

I have a container and what i was trying to do was check when the slots index mod 2 was 0 to detect every other slot so i can style them differently

#

I also tried looking into $index which someone suggested to me, but it was always 0

winged flicker
#

How do I create a new group in the creative inventory?

viral oxide
#

its a custom grid item yes, it inherits from @common.container_item

tropic badger
# viral oxide its a custom grid item yes, it inherits from `@common.container_item`

You can get an grid item collection index then display them so you can track on which column/row is it.

{
   "item": {
      ...
"bindings": [
      {
        "binding_type": "collection_details",
        "binding_collection_name": "players_collection"
      },
      {
        "binding_type": "collection",
        "binding_collection_name": "players_collection",
        "binding_name": "#collection_index"
      }
     ]
   }
}
#

edit players_collection to what collection ur using

viral oxide
#
"[email protected]_item": {
        "$item_collection_name": "container_items",
        "$size|default": [
            18,
            18
        ],
        "$cell_image_size|default": [
            18,
            18
        ],
        "$grid_position|default": [
            0,
            0
        ],
        "variables": [
            {
                "requires": "(#collection_index = 0)",
                "$size": [
                    10,
                    18
                ],
                "$cell_image_size": [
                    10,
                    18
                ]
            }
        ],
        "bindings": [
            {
                "binding_type": "collection_details",
                "binding_collection_name": "container_items"
            },
            {
                "binding_type": "collection",
                "binding_collection_name": "container_items",
                "binding_name": "#collection_index"
            }
        ]
    },

Like this? For now im trying to check if its at index 0, but nothing changed

tropic badger
#

i dont think it suppose to work like that..

#

you cant change size binding with a binding so my offered solution will probably not work on your case

#

ill definitely experiment tho

viral oxide
#

is size uniquely something you cant change with a binding?

tropic badger
#

yes

viral oxide
#

damn lol

winged flicker
#

How do I create a new group in the creative inventory?

tropic badger
#

Holy guys ive recreated the fricking modulo

#

theres finally a freaking modulo on json ui

#

that means i can do Math.floor stuff

#

shit

#

im so excited

rocky quail
tropic badger
#

Ah JSON-UI floating point imprecision bruh

#

ive tested if it should return 4 then check if 4 > 4 is supposed to run false but no

#

not equal to 4 either

viral oxide
viral oxide
tropic badger
tropic badger
#

@viral oxide can i ask about precisions stuff

#

do you have ideas on that topic?

#
        "text": {
          "type": "label",
          
          "size": [ "default", "default" ],
          "text": "#text",
           
          "property_bag": {
            "#dividend": 4.5,
            "#divisor": 1,
            
            "#highest_prec": 4.501
          },
          
          "bindings": [
            {
              "binding_type": "view",
              "source_property_name": "(#dividend - (#divisor * (#dividend / #divisor)))",
              "target_property_name": "#calc"
            },
            {
              "binding_type": "view",
              "source_property_name": "(#dividend - #calc)",
              "target_property_name": "#divided"
            },
            {
              "binding_type": "view",
              "source_property_name": "('Value: ' + (#divided = #highest_prec))",
              "target_property_name": "#text"
            }
          ]
        }

basically it doing #divided < 4.500 returns false and #divided < 4.501 returns true so it must be the answer but when i compare them by #divided = 4.501 it returns false, which is expected but i was wondering if i can minus the extra float on there by getting the exact float imprecision there

viral oxide
#

i think u basically never want to do an exact equals check, u would probably want to do this instead of an equals 4.499 <= #divided <= 4.501. There are just some numbers that the float format can never represent because its not precise enough

tropic badger
#

Because json ui cant show a float

#

i need to get an integer

graceful elbow
#
"gives": [
            {
              "item": "minecraft:diamond",
              "functions": [
                {
                  "function": "set_nbt",
                  "tag": ""
                }
              ]
            }
          ],

for some reason the "tag" object is wrong

#

does anyone know the right one?

hexed briar
#

wrong channel

fickle tartan
#

How can i create a button fort this texture ?

low totem
#
{
                "form_button@common_buttons.light_text_button": {
                    "$pressed_button_name": "button.form_button_click",
                    "$default_button_texture": "textures/ui/button2",
                    "$hover_button_texture": "textures/ui/button_hover2",
                    "anchor_from": "top_left",
                    "anchor_to": "top_left",
                    "size": [
                        "fill",
                        32
                    ],
                    "$button_text": "#form_button_text",
                    "$button_text_binding_type": "collection",
                    "$button_text_grid_collection_name": "form_buttons",
                    "$button_text_max_size": [
                        "100%",
                        20
                    ],
                    "bindings": [
                        {
                            "binding_type": "collection_details",
                            "binding_collection_name": "form_buttons"
                        }
                    ]
                }
            }
#

did i do it wrong?

#

the textures dont work...

#

im new to json ui.

tropic badger
#

dont worry, so am i

hexed briar
#

@fathom pivot gotta realize that i don't open dms or answer them.

#

and stop dming me to help with json-ui related smh

viral oxide
viral oxide
#

Are all numbers in json-ui not just floats by default? Or are they mixing types?

tropic badger
tropic tangle
#

is there any way to remove those spammy errors?

#

or exclude them from the logs

tropic badger
viral oxide
#

Also is there a way to get rid of the padding between elements that are controls of a grid?

crimson warren
#

Hi! I've been learning the basics for ui last update, I haven't played in a while and in this new update the ui I made has this missing texture thing, does anyone know what could it be?

#

And how could I fix it

viral oxide
#

any errors there saying what texture is missing?

crimson warren
#

[Texture][warning]-The block named zm:banana_stem used in a "blocks.json" file does not exist in the registry

[Texture][warning]-The block named zm:banana_tree_stem used in a "blocks.json" file does not exist in the registry

[Texture][warning]-The block named zm:green_fire used in a "blocks.json" file does not exist in the registry

[Texture][warning]-The block named zm:saddle_support used in a "blocks.json" file does not exist in the registry

[Texture][warning]-The block named zm:vase used in a "blocks.json" file does not exist in the registry

#

this is the only texture related stuff I get

#

but those for block I already erased so they don't matter

viral oxide
#

Is it possible to set the collection_index of a slot? Right now all my slots are displaying the same one inventory slot all at once

tall plover
#

would i be possible to adapt realm's feed's screenshot picker into a screenshot viewer pack?

opal aurora
hexed briar
#

at the current minecraft's UI state, it's no longer recommended to learn Json-UI unless you want to modify it for fun pain.

chilly yacht
#

unless they have a tool to convert JSON UI to ore UI I highly doubt it'll be removed on release.

left yew
#

Or Hopefully they allow you to declare if you want to use ore ui or json ui.

Which I assume they will because think of all the MP maps.

chilly yacht
#

Yeah hopefully

#

I mean yes they did remove render offsets. BUT there was an alternative in the game since armor was a thing so shrug

#

They wont just replace JSON UI with Ore UI

left yew
viral oxide
tropic badger
#

'%d' * #float doesnt seem to work

viral oxide
#

btw, is it possible to detect a substring is in a string?

#

i tried doing a '.%.26s' to pull the first 26 characters of a string, but this seems to hard freeze the game lol

#

hmmm smaller strings seem to work fine

hexed briar
#

after all, they doesn't seem to like people modifying json-ui and would slam with "we don't support json-ui edit in add-ons"

tall plover
opal aurora
tropic tangle
hexed briar
#

yeah, i have zero clue why.

#

i did ask them whenever the reasons for not having the official json-ui docs to the public and they basically slam with that comment.

tropic tangle
#

lmao but they officially support it since every marketplace-map uses it

hexed briar
#

yea at this point idrk anymore

#

and having modifiable ore-ui seems pretty dim to me aswell

#

but who knows.

brave bough
#

Is it possible to create buttons for a slider that will increase or decreasy slider value?

potent nacelle
oak shoal
#

hi, does anyone have a json ui that when I send a specific message in the chat, it changes the message to an image, like I send "thirst_1", a drop of water appears, I want it to be by title, and it has to be an image, non-unicode

viral oxide
#

take a look around for that

#

#1052351840899059803 message

oak shoal
#

but, I want it to be by image

#

what you sent me is unicode

viral oxide
# tropic badger `'%d' * #float` doesnt seem to work

i did some experiementing with this today because i ideally need to get a floor operator for an expression i'm writing

I found that it is converting floats to a decimal... but it has a bug in it where it reads the floating point number as if it was a 32 bit integer instead of a 32 bit float

#

which means that the resulting value is nowhere near correct because it multiplied the number with the wrong number format

#

I also tried formatting the float to the nearest number with '%.0f` but that seems to not return anything

#

Actually.. are you sure that division doesn't just floor anyway? I did a number / 4 and it returned as the nearest floored integer anyway

winged flicker
#

Hello, how can I define the texture of an image or the text of a label element with a url?

tropic badger
#

it works well with whole numbers when dividing

viral oxide
#

Ahh

valid ridge
#

hello, short question, how do i add another "not" binding?
like how do i mix these two?

"source_property_name": "((#title_text - '§c§h§e§s§t') = #title_text)",
"source_property_name": "((#title_text - 'CHOOSE YOUR FACTION') = #title_text)",
rocky quail
#

Try this

(((#title_text - '§c§h§e§s§t') = #title_text) (not #title_text - 'CHOOSE YOUR FACTION') = #title_text)))
chilly yacht
#

then when u flag, u use not

#

not #text - 'CHOOSE YOUR FACTION' = #text

gray granite
#

Hi

#
{
    "namespace": "hud",
    "hud_actionbar_text": {
        "type": "image",
        "size": [ "100%c + 12px", "100%c + 5px" ],
        "offset": [ "50px", "50%-48px" ],
        "alpha": "@hud.anim_actionbar_text_background_alpha_out",
        "controls": [
            {
                "actionbar_message": {
                    "ignored": "$pocket_screen",
                    "type": "label",
                    "anchor_from": "center",
                    "anchor_to": "center",
                    "color": "$tool_tip_text",
                    "layer": 1,
                    "text": "$actionbar_text",
                    "localize": false,
                    "alpha": "@hud.anim_actionbar_text_alpha_out",
                    "bindings": [
                        {
                            "binding_name": "#is_not_creative_mode",
                            "binding_name_override": "#visible"
                        }
                    ]
                }
            },
            {
                "actionbar_message_pocket": {
                    "ignored": "$desktop_screen",
                    "type": "label",
                    "anchor_from": "center",
                    "anchor_to": "center",
                    "offset": [ "-50%", 0 ],
                    "color": "$tool_tip_text",
                    "layer": 1,
                    "text": "$actionbar_text",
                    "localize": false,
                    "alpha": "@hud.anim_actionbar_text_alpha_out",
                    "bindings": [
                        {
                            "binding_name": "#is_not_creative_mode",
                            "binding_name_override": "#visible"
                        }
                    ]
                }
            }
        ]
    }
}```
#

This UI move the action bar ontop the hungerbar

#

But when under water, there's the bubble bar, how can I move it ontop of the bubble bar if the it appears?

digital finchBOT
#
traileks

They wont just replace JSON UI with Ore UI

west dawn
#

well...

tropic tangle
#

It absolutely wouldn't lmfao

#

Wasting thousands of $ if not ten-thousands spent on making them, wasting the potential and relying on something buggy and bad in the current state

#

Yeah backwards-compatibility is the biggest reason for it to stay

gray granite
#

Anyone could help wuth this

hexed briar
#

eh no it would not.

#

this thing is still quite laggy often time overheating most people's devices if it stays idle, so no thanks.

gray granite
#

I just want to move up the action bar text if the bubble bar appears

graceful elbow
#
const form = new ActionFormData()
  .title("Clans")
  .body("")
  .button("Join")
  .button("create")
  .button("list")
  .button("back")

  

world.afterEvents.itemUse.subscribe(clan =>{
    const { source, itemStack } = clan
    switch(itemStack.typeId) {
        case "minecraft:compass": form.show(source); break;
    }
})

how do i add another form when i click on create?

oak verge
tropic tangle
#

Yeah its whatever had that discussion too many times, there is no benifit in forcing creators to use OreUI, its terrible in its current state

valid ridge
# graceful elbow ``` const form = new ActionFormData() .title("Clans") .body("") .button("J...

const form1 = new ActionFormData()
  .title("Clans")
  .body("")
  .button("Join")
  .button("create")
  .button("list")
  .button("back");

const form2 = new ActionFormData()
  .title("CREATE")
  .body("test")
  .button("0")
  .button("1")
  .button("2")
  .button("3");

world.afterEvents.itemUse.subscribe((clan) => {
  const { source: player, itemStack } = clan;
  if (itemStack.typeId == "minecraft:compass") {
    form1.show(player).then((e) => {
      if (e.canceled) return;
      switch (e.selection) {
        case 0: // if selected Join
          player.sendMessage(`selected JOIN`)
          break;

        case 1: // if selected create
          player.sendMessage(`selected CREATE`)
          form2.show(player)
          //other codes
          break;

        case 2: // if selected list
        player.sendMessage(`selected LIST`)
          break;

        case 3:// if selected back
        player.sendMessage(`selected BACK`)
          break;
      }
    });
  }
});


valid ridge
#

does JSON UI really ending?

#

well he asked🤷‍♂️

green oak
valid ridge
green oak
quartz axle
#

anyone can help me with this plshttps://discord.com/channels/523663022053392405/1259332375939256343

uneven epoch
#

How can I decrease the padding between the grid size?

#
"mob_effect_grid": {
    "type": "grid",
    "size": [
        150,
        "default"
    ],
    "grid_item_template": "mob_effect.mob_effect_grid_item",
    "grid_dimension_binding": "#mob_effect_grid_size",
    "collection_name": "mob_effects_collection",
    "bindings": [
        {
            "binding_name": "#mob_effect_grid_size"
        }
    ]
},
chilly yacht
#

make the child smaller

#

find mob_effect.mob_grid_item

uneven epoch
#
"mob_effect_grid_item": {
    "type": "panel",
    "size": [
        240,
        30
    ],
    "controls": [
        {
            "name@mob_effect.effect_name": {
                "layer": 5
            }
        },
        {
            "timer@mob_effect.effect_timer": {
                "layer": 5
            }
        },
        {
            "icon@mob_effect.effect_icon": {
                "layer": 5
            }
        }
    ]
},
#

The individual name timer and icon I already made smaller

#

So would I change 30 to something smaller?

chilly yacht
#

try making that panel smaller

uneven epoch
#

And it worked

chilly yacht
#

also why are u doing grid

uneven epoch
#

Thanks

chilly yacht
#

why not use stack panel?

uneven epoch
chilly yacht
#

oh

uneven epoch
#

Lol might need to fix my stuff again

chilly yacht
#

u can just rewrite it

uneven epoch
#

Uh well I'm not that good

uneven epoch
#

Anyone know why the mob effect screen absorbs all my hotkey buttons?

    "[email protected]_screen": {
        "close_on_player_hurt": false,
        "should_steal_mouse": true,
        "is_modal": false,
        "always_accepts_input": false,
        "absorbs_input": false,
        "is_showing_menu": false,
        "low_frequency_rendering": true,
        "render_only_when_topmost": true,
        "render_game_behind": true,
        "force_render_below": true,
        "$screen_animations": [],
        "$screen_content": "mob_effect.main_screen"
    }
tropic badger
#

Just found out interesting stuff, turns out we can add new buttons on form_buttons collection and heck the script can read it too. Client Side -> Server Side on JSON-UI lol

tropic badger
uneven epoch
#

Kind of just took this from the web, basically whenever you open your mob effects gui it wont actually show a screen and it will instead show on the side of the screen but it seems to be absorbing all my hotkey inputs

tropic badger
uneven epoch
#

so its always_accept_input and not always_accepts_input?

#

Yeah now none of my keyboard works shrugging

tropic badger
# chilly yacht what does this mean

Example there is two buttons you created via script, so the index should only be 0 and 1 right?

Now make a button that has collection index to 2, then check if response.selection in script is 2, it will work.

tropic badger
uneven epoch
#

Appreciate the help I kind of just put it on my sidebar with scripts instead and it doeant look too bad

uneven epoch
chilly yacht
#

i used collection indexes in a UI of mine but its laggy if u place lots of buttons

chilly yacht
uneven epoch
#

Exactly

#

Think I need
"is_showing_menu": false,

chilly yacht
#

is there a way to move when in a menu?

uneven epoch
#

Yeah I can move now

tropic badger
uneven epoch
#

But now my mouse doesn't work and my hotbar still doesn't work

#

I don't think its possinle to get hotbar to work

#

Pretty sure
"should_steal_mouse": true,

makes it so i can use my mouse

tropic badger
uneven epoch
#

Nvm it was one of the other ones

chilly yacht
tropic badger
#

just make the element itself, its like 2 lines

chilly yacht
#

like just the custom render?

#

im not sure what the renderer is

tropic badger
chilly yacht
tropic badger
#

yeah

chilly yacht
#

alr, ill try it out and see if it changes something

#

i had to use a different animation

tropic badger
# chilly yacht

Thats actually cooler, it just overrides on top of each other

chilly yacht
#

ehh

#

i mean its not bad

#

i had it before without the item renderer

#

and it worked normally

chilly yacht
#

ill just stick to offset

tropic badger
#

Bug? I don't know peeposhrug

chilly yacht
#

seems like it sadJoe

void berry
#

Is there any body have a sample of custom notification ._.? , everything i know of that is it base on chat , and no more

tropic badger
void berry
#

Yeahh i have check it , it make everything i chat into the notification. _.

tropic badger
#

That's what i said

void berry
#

._. Soooo i see someone using bidding to make a filter or flag idk , im try to figure out what that thing

quartz axle
#

is rotating something is impossible?

tropic badger
quartz axle
#

hmmm

#

is making custom hearth bar(not retxture) even possible

#

is it possible to use molang in json ui?

tropic badger
#

Damn, what is that resolution

quartz axle
tropic badger
quartz axle
#

how can i make player health percentage then💀💀

tropic badger
quartz axle
tropic badger
#

Just put the 2 data in one actionbar

quartz axle
#

how to parse it if it's 2

hexed briar
#

nice background size.

#

that's like x100 size than native resolution

chilly yacht
hexed briar
#

border

chilly yacht
#

border

quartz axle
#

how can i make custom bar in json ui?

chilly yacht
#

make a post 🙂

quartz axle
#

ok

chilly yacht
#

first, learn json ui!!