#Question regarding a large number of ARGS in the GUI

1 messages · Page 1 of 1 (latest)

lost vapor
#

I’ve built a slightly advanced GUI for MMOItems crafting based on ARGS, and I’ve got a question:
Can having this many ARGS in a single GUI cause lag, errors, or other issues?
Or is it generally fine to use this number of ARGS in one menu? Or does anyone have any ideas on how to optimize this?
https://mclo.gs/qe49RM1

menu_title: ":offset_-48:&f%img_1testowycrafting%"
open_command: test
register_command: true
update_interval: 1
args:
  - mmoitemstype
  - itemcraft
  - item1
  - item1_amount
  - item2
  - item2_amount
  - item3
  - item3_amount
  - item4
  - item4_amount
  - item5
  - item5_amount
  - item6
  - item6_amount
  - rccrafting
args_usage_message: "/test mmoitemstype itemcraft item1 0 item2 0 item3 0 item4 0 item5 0 item6 0 rccrafting"
size: 54
update_interval: 1
items:
  'itemcraft-mmoitems':
    material: DIAMOND
    material: mmoitems-{mmoitemstype}:{itemcraft}
    slot: 15
    lore_append_mode: bottom
  'item1':
    material: mmoitems-MATERIAL:{item1}
    slot: 32
    dynamic_amount: '{item1_amount}'
  'item2':
    material: mmoitems-MATERIAL:{item2}
    dynamic_amount: '{item2_amount}'
    slot: 33
  'item3':
    material: mmoitems-MATERIAL:{item3}
    dynamic_amount: '{item3_amount}'
    slot: 34
  'item4':
    material: mmoitems-MATERIAL:{item4}
    dynamic_amount: '{item4_amount}'
    slot: 41
  'item5':
    material: mmoitems-MATERIAL:{item5}
    dynamic_amount: '{item5_amount}'
    slot: 42
  'item6':
    material: mmoitems-MATERIAL:{item6}
    slot: 43
    dynamic_amount: '{item6_amount}'
  'itemcrafting':
    material: DIAMOND
    model_data: 1602
    slot: 0
    display_name: "&fCrafting Szarfa"
    click_commands:
    - "[openguimenu] test SZARFA SZARFA_PROSTA DELIKATNE_SUKNO 10 OZDOBA_SLONIA 4 NOTHING 0 NOTHING 0 NOTHING 0 NOTHING 0 theowahdan_szarfa"
  'button-craft':
    material: DIAMOND
    model_data: 153
    slots:
    - 50
    - 51
    - 52
    display_name: " Stwórz "
    click_commands:
    - "[console] rcpoints crafting %player_name% {rccrafting} 1"
  'debug':
    material: DIAMOND
    model_data: 603
    slot: 48
    display_name: "DEBUG ARG"
    lore:
    - '{mmoitemstype} MMOITEMS TYPE'
    - '{item0} CRAFTED ITEM'
    - '{item1} = {item1_amount}'
    - '{item2} = {item2_amount}'
    - '{item3} = {item3_amount}'
    - '{item4} = {item4_amount}'
    - '{item5} = {item5_amount}'
    - '{item6} = {item6_amount}'
    click_commands:
    - "[console] rcpoints crafting %player_name% {rccrafting} 1"
thick sierra
#

should be completely fine

#

I'm pretty sure no amount of arguments could cause issues

#

unless you have like 2 million

lost vapor
# thick sierra should be completely fine

One more question. Is it possible to set an argument as optional? I mean, can I specify, for example, 5/10 arguments? Without specifying all of them from the args list.

thick sierra
#

I think you can as long as you don't specify an argument_usage_message, though that makes all of them optional

lost vapor