DungeonsAndMobs GUIs - Wiki

Jun 16, 2018
DungeonsAndMobs GUIs - Wiki
  • In this page I will explain your how customize the GUIs. First of all, if you don't want to read the full one, here is a quick tutorial to add a new mob in the gui:
    *NOTE: This is applicable also for other GUIs. For example, the potion effects.
    1. The main menu, edit, is where we find every sub-menu. We can notice that there is an item called select_entity_type, which is the one we are interested in. We know that it opens another menu, and the plugin automatically opens a menu, if the clicked item's name is the same as a menu. So, we find a select_entity_type menu, just under the edit one. We need to edit this one to add new mobs.
    2. In the select_entity_type menu, you will already find some items. For example, the zombie
    Code (YAML):
     select_entity_type:
        zombie
    :
          item
    : monster_egg
          custom-name
    : '&2Zombie'
          lore
    :
         - '&7&oA stupid but useful mob.'
          slot
    : 0
    An item is characterized by 5 arguments:
    - the most important, name, which is zombie in this case.
    - item, which is the material used in the GUI.
    - custom-name, the name in the GUI.
    - lore, the lore in the GUI.
    - slot, which is where it will be placed in the GUI, starting from 0.
    In this case, the name has a special function, as the plugin will try to use it to recognize what mobs you want to add. In this example, we can copy the zombie, so we can edit it in an easier way, then:
    Code (YAML):
     select_entity_type:
        zombie
    :
          item
    : monster_egg
          custom-name
    : '&2Zombie'
          lore
    :
         - '&7&oA stupid but useful mob.'
          slot
    : 0
        zombie
    :
          item
    : monster_egg
          custom-name
    : '&2Zombie'
          lore
    :
         - '&7&oA stupid but useful mob.'
          slot
    : 0
    3. Now we'll need to edit the item, I want to add a blaze, so I will use:
    - blaze as name;
    - monster_egg as item, (you can also use other items), which will be replaced with the mob's egg of that entity;
    - custom-name and lore: as I prefer.
    - 1 as slot, so it will be immediately next to the zombie's item.
    Result:
    Code (YAML):
     select_entity_type:
        zombie
    :
          item
    : monster_egg
          custom-name
    : '&2Zombie'
          lore
    :
         - '&7&oA stupid but useful mob.'
          slot
    : 0
        blaze
    :
          item
    : monster_egg
          custom-name
    : '&cBlaze'
          lore
    :
         - '&eHe shoots you fireball!'
          slot
    : 1

    The GUIs contain two types of objects; if an item has a menu name, when clicked, it will automatically open that menu. Otherwise, the item name will have a special function regarding that specific menu; for example, in the entity_types menu, if a clicked item has no other guis' name, they will automatically set that mobs' entity type.

    *Note: Locations and drops menus work a little bit differently as the plugin automatically disposes the items, except for the ones for example the come back and the add new drop items; I suggest you to keep them at the end of the GUI, so they will not get overlaped.
  • Loading...
  • Loading...