#Move Mob Effect

1 messages · Page 1 of 1 (latest)

north hatch
#

Hi, i would like move the mob effect ?

#

(in the bottom right)

formal meadow
#

then move it

blissful trail
north hatch
#

I have already tried modifying the mob_effect file by modifying "top_right" to "bottom_right" but nothing has changed

formal meadow
blissful trail
formal meadow
#

wheres yours?

#

why arent u helping?

blissful trail
formal meadow
#

why are u responding?

#

and i talk when i want to as well

blissful trail
#

I dont know how to do it

formal meadow
#

then get outta her

#

here

blissful trail
#

i was just sayin your answers a fuckin unneccassary

formal meadow
#

so are u

blissful trail
formal meadow
#

i might help

blissful trail
#

did a asked

formal meadow
#

thats why ur uis are shit LMAO

blissful trail
#

okay

#

thats why im selling em successful

formal meadow
#

to little kids yeah lmao

blissful trail
#

cah evryone wanna buy a trash uo

formal meadow
#

english??

#

i could report u rn to mojang for selling addons

blissful trail
formal meadow
#

which is against tos

blissful trail
#

not selling addons

formal meadow
#

and i have proof

blissful trail
#

but do what you want

formal meadow
#

well selling minecraft anything is against tos

blissful trail
#

okay

#

lets go

#

do it

formal meadow
#

they wont care ab ur shitty uis

#

i could easily start selling uis

blissful trail
#

hahhaha

#

never heart trash like that

formal meadow
#

english?

blissful trail
#

"oh im gonna report ya", "okay do it", "nah they wont care"

blissful trail
formal meadow
blissful trail
#

if your native language would be english you would understand that

formal meadow
#

never ❤️ trash like that?

blissful trail
#

or you just a 12 years old

formal meadow
#

"or you just a 12 years old"

#

isnt this a kids game either way?

limpid onyx
#

Lmao

#

Stupids kids

formal meadow
#

omg look an actual good ui designer

blissful trail
#

yea suck his dick

formal meadow
#

omg im reporting

#

nsfw

blissful trail
#

do it

#

dont mind

limpid onyx
#

Bahaha

blissful trail
#

thats so sad hahaha

limpid onyx
#

You are sad too

blissful trail
#

😭

formal meadow
#

done

blissful trail
#

good job

formal meadow
#

to Ciosciaa

blissful trail
#

👍

#

dont even know him hugh

formal meadow
#

telling a minor to suck a non minors dick

blissful trail
#

yessir

#

thats a ban reason definitely

formal meadow
#

yup

blissful trail
#

yup

north hatch
#

...

north hatch
#

thx man

formal meadow
#

you can

#

i just need to find it i deleted it

north hatch
# formal meadow its in the hud_screen file
      {
        "mob_effects_renderer@mob_effects_renderer": {
          "size": [ "100%", "75%" ],
          "offset": [ 0, 24 ],
          "anchor_from": "bottom_right",
          "anchor_to": "bottom_right"
        }
      }

Doesn't work

formal meadow
#

not sure if that’s it

sturdy rock
#

Where is it?

north hatch
#

in the hud_screen file, there are 2 elements containing mob_effect :

"mob_effects_renderer": {
    "type": "custom",
    "renderer": "mob_effects_renderer",
    "layer": 1
  }

And

       {
        "mob_effects_renderer@mob_effects_renderer": {
          "size": [ "100%", "75%" ],
          "offset": [ 0, 24 ],
          "anchor_from": "center",
          "anchor_to": "center"
        }
      }
north hatch
north hatch
light comet
#

Sorry for the absolute clowns above. Clearly some people are yet to mature. I don't usually help ppl but this server is great and I don't want you to get the wrong impression.

I believe the answer to your question would be to edit the anchor and potentially offset points in the mob_effect_screen.json

Let me know if you need any help understanding it.

rough jewel
#

^^ ending an argument by calling sm a clown perfect way

formal meadow
#

not making it any better u can just drop it lol

north hatch
formal meadow
#

could be it

#

not too sure

north hatch
#

" ** " is the text modif

north hatch
# formal meadow try the mob_effect_grid
"mob_effect_grid": {
    "type": "grid",
    **"anchor_from": "bottom_right",**
    **"anchor_to": "bottom_right",**
    "size": [ 300, "default" ],
    "offset": [ "-45% + 175px", 0 ],
    "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"
      }
    ]
  },
#

maybe is not this

#

I will conclude that it is impossible

light comet
#

It's definitely do-able within that file I just don't know what you'd need to change.

north hatch
#

It's been literally 2-3 days that I've been inspecting each value and modifying them to see which one would be the right one and I still can't find it, it's crazy!

light comet
#
  // CONTENT - Right Handed
  //---------------------------------------------------------------------------
  "mob_effect_list_content_panel": {
    "type": "panel",
    "anchor_from": "top_right",
    "anchor_to": "top_right",
    "size": [ "100%", "90% - 4px" ],
    "clips_children": true,
    "offset": [ -4, 4 ],
    "controls": [
      {
        "[email protected]_panel": {
          "size": [ "100%-2px", "100%-2px" ],
          "offset": [ "default", "4px" ],
          "anchor_from": "top_middle",
          "anchor_to": "top_middle",
          "$scrolling_content": "mob_effect.mob_effect_grid_panel",
          "$show_background": false,
          "$scroll_size": [ "8px", "100%" ],
          "$scrolling_pane_size": [ "100%", "100%-2px" ],
          "$scroll_box_mouse_image_control": "common-classic.button_state_default",
          "$always_handle_scrolling": true
        }
      }
    ]
  },
  "[email protected]_pocket_close_button": {
    "anchor_from": "top_right",
    "anchor_to": "top_right",
    "size": [ 18, 18 ],
    "offset": [ "-90% - 3px", 7.5 ],
    "$pressed_button_name": "button.menu_continue"
  },
  "close_button_panel": {
    "type": "panel",
    "controls": [
      { "bg@mob_effect.button_background": { } },
      { "close_button@mob_effect.mob_effect_screen_close_button": { } }
    ]
  },
  "mob_effect_content": {
    "type": "panel",
    "controls": [
      { "bg@mob_effect.main_background": { } },
      { "close_panel@mob_effect.close_button_panel": { } },
      { "content_panel@mob_effect.mob_effect_list_content_panel": { } }
    ]
  },

Take a look at this part of the file

#

Try to mess with all the "offset": ["x","y"]'s. If I was approaching the task that's what I'd do (i.e. seeing if you can move it at all).

north hatch
#

I just changed everything to see 0 changes

cunning glacier
#

Have you first tried whether the code is working correctly? try adding
"ignored":true into mob_effect element in hud_screen.json

#

See if the code is responding

#

probably try adding offset into

    "type": "custom",
    "renderer": "mob_effects_renderer",
    "layer": 1
  },```
#

as "mob_effects_renderer": { "type": "custom", "renderer": "mob_effects_renderer", "layer": 1, "offset": [x,y] }

north hatch
#

i check

#

in hud_screen, there is

        "mob_effects_renderer@mob_effects_renderer": {
          "size": [
            "50%",
            "50%"
          ],
          "offset": [
            0,
            0
          ],
          "anchor_from": "center
",
          "anchor_to": "center"
        }
      },
#

(i have change values)

cunning glacier
#

got to line 380

#

go*

#

370* srry

#

lemme try this myself, i haven't done this before

#

nope it didnt work

cunning glacier
#

idk what is up with mob_effect component

#

Others are working fine

#

I will look onto it tomorrow, its 2 am here gotta take some sleep.

north hatch
#

i find !

#

🥹

#

🕺 🕺

cunning glacier
#

you found it?

#

i mean can you show what you did or i was doing something wrong.

wooden owl
#

Straight to the question, Mob effect indeed is moveable.

#

Mob effect on hud is using custom as element type. I'd say, yeah it kinda does.

Try to modify by following here, since this was what it's referencing.

"mob_effects_renderer": {
    "type": "custom",
    "renderer": "mob_effects_renderer",
    "layer": 1
},```
#

What custom as element type is, just a custom. a hardcode made element renderers.

#

this exists in such as heart, hunger and ton of stuff.

#

also this is how paperdoll works too.

cunning glacier
#

think he already got it

wooden owl
#

honestly that shouldn't be that hard despite just setting the values up in offset property.

#

Effects renderer are forced to set right_middle by default.