#deluxemenus

1 messages · Page 1 of 1 (latest)

coral galleon
#

i want to make a gui where players can buy upgrades for their box using bentobox and boxed addon how do i make that when 2 players are on the island and if player1 buy upgrade player2 cant buy that upgrade

pine saddle
rustic hawk
#

Also, what exactly is an upgrade? I am not familiar with Boxed and I can't find anything about it on the wiki

coral galleon
rustic hawk
#

Is that what an upgrade is?

#

increased protection range?

coral galleon
#

that tells you what range is your border there is addon for upgrade but its so bad you cant modify it for upgrades i use boxadmin range set <range>

rustic hawk
#

Ok. What I'm trying to understand is exactly what do you mean by an upgrade. When someone upgrades their island, you are basically just increasing the range?

coral galleon
#

yes

rustic hawk
#

Alright. Do you have a menu started so far so I can add an example to it?

coral galleon
#

wait

rustic hawk
# coral galleon

There are a few issues with your menu:

  1. Whatever global_view_requirement is, it does not exist. So that won't do anything
  2. update_interval: 10 goes at the top of the menu, not under an item
  3. type: "!and" does not exist, that view requirement won't do anything
  4. type: "placeholder" does not exist, those requirements won't do anything

and so on. This menu is very very broken and looks AI generated to me.

I am not going to waste my time fixing the bullshit AI generates. What I am going to do, is suggest you go take a look at our wiki: https://wiki.helpch.at/helpchat-plugins/deluxemenus AND, I will give you an example item that you can take and try to addapt to your menu:

  upgrade_1:
    material: dirt
    display_name: "&7UPGRADE to RANGE 2"
    slot: 0
    view_requirement:
      requirements:
        is_less_than_2:
          type: "<"
          input: "%boxed_island_protection_range%"
          output: 2
    click_requirement:
      requirements:
        is_less_than_2:
          type: "<"
          input: "%boxed_island_protection_range%"
          output: 2
        money:
          type: "has money"
          amount: 2500
    click_commands:
      - "[takemoney] 2500"
      - "[console] boxadmin range set %player_name% 2"
      - "[refresh]"
#

This example will do the following:

Upgrade the island range to 2 and take 2500 from the player, only if:

  1. The island range is lower than 2
  2. The player has enough money (2500)\
coral galleon
#

idk if this is ai generated my friend did that gui but thank for the help