▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/3D UI Library
3D UI Library

3D UI Library

Add sliders, click to action and on/off buttons for map making.

164
7

v1.0.0

Release1 г. назад

Список изменений

commands:

Update
function buttons:update

update the display of button

Remove
function buttons:remove

remove the button

Slider
function buttons:summon/slider
  • fields
    • score

      • name : {string} name of the score linked to the slider
      • objective : {string} objective of the score linked to the slider
      • min: {int} minimum value of the score
      • max: {int} maximum value of the score
      • inc: {int} incrementation value of the score
    • bc_box

      • width: {float}: width of the slider
      • height: {float}: height of the slider
      • cursor_width: {float}: width of the slider's cursor
      • style: {string:"block", "flat"} display's type of the button, flat is a rgba 2d display and block a 3d block display
      • block: {string} block id of main display (if style == "block")
      • cursor_block: {string} block id of cursor display (if style == "block")
      • color: {int: rgba int} color of main display (if style == "flat")
      • cursor_color: {int: rgba int} color of cursor display (if style == "flat")
    • text_box

      • text: {Json text} label of the slider
      • size: {float} size scalar of the label
    • Tags : {string array} custom tags added

ex: execute rotated 110 0 run function buttons:summon/slider {score:{name:"leaves.limit",objective:"settings",min:0,max:4,inc:1},bc_box:{style:"flat",color:-495519092,cursor_color:-491520833,width:1.0,height:0.1},text_box:{text:{text:"foliage",color:"green"}},Tags:[]}

CTA
function buttons:summon/cta
  • fields
    • command: {string} command executed when button is clicked

    • bc_box

      • width: {float}: width of the cta
      • height: {float}: height of the cta
      • style: {string:"block", "flat"} display's type of the button, flat is a rgba 2d display and block a 3d block display
      • block: {string} block id of main display (if style == "block")
      • color: {int: rgba int} color of main display (if style == "flat")
    • text_box

      • text: {Json text} label of the cta
      • size: {float} size scalar of the label
    • animation {string: "none", "v_squash", "h_squash", "rotation", "super_rotation"} define the animation when button is clicked

    • Tags : {string array} custom tags added

ex: execute rotated 0 0 run function buttons:summon/cta {command:'say hey',bc_box:{style:"block",block:"white_stained_glass",width:1.0,height:1.0},text_box:{size:0.5,text:{text:"Hello",color:"black"}},Tags:[],animation:"h_squash"}

Binary Switch
function buttons:summon/binary_switch
  • fields
    • score

      • name : {string} name of the score linked to the binary switch
      • objective : {string} objective of the score linked to the binary switch
    • bc_box

      • size: {float}: size of the binary switch
      • block: {string} block id of main display
      • on
        • type : {string: "item", "text"} type of display
        • item : {Json item} item displayed (if type == "item")
        • text : {Json text} text displayed (if type == "text")
      • off
        • type : {string: "item", "text"} type of display
        • item : {Json item} item displayed (if type == "item")
        • text : {Json text} text displayed (if type == "text")
    • text_box

      • text: {Json text} label of the binary switch
      • size: {float} size scalar of the label
    • Tags : {string array} custom tags added

ex: execute rotated -150 0 run function buttons:summon/binary_switch {score:{name:"switch.block",objective:"settings"},bc_box:{block:"white_concrete",size:0.5,on:{type:"item",item:{id:"lime_concrete",count:1}},off:{type:"item",item:{id:"red_concrete",count:1}}},text_box:{text:{text:"Block",color:"red"}},Tags:["block_switch"]}


demo video

Файлы

3d UI librairie.zip(45.27 KiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

1.0.0

Загрузчики

Версии игры

1.21.5

Загрузок

13

Дата публикации

1 г. назад

Загрузил

ID версии

Главная