From 41f4f830d18df94921282337f8f77da83c30188f Mon Sep 17 00:00:00 2001 From: lucian929 Date: Fri, 8 Jul 2022 20:22:50 -0400 Subject: [PATCH] Update default configs --- common/src/main/resources/config.yml | 3 + common/src/main/resources/items.yml | 28 +++ common/src/main/resources/menus/main.yml | 34 ++- common/src/main/resources/menus/test-menu.yml | 193 ------------------ 4 files changed, 59 insertions(+), 199 deletions(-) create mode 100644 common/src/main/resources/items.yml delete mode 100644 common/src/main/resources/menus/test-menu.yml diff --git a/common/src/main/resources/config.yml b/common/src/main/resources/config.yml index b3fa9f98..945c418e 100644 --- a/common/src/main/resources/config.yml +++ b/common/src/main/resources/config.yml @@ -5,6 +5,9 @@ cosmetic-settings: require-empty-chest-plate: false require-empty-pants: false require-empty-boots: false + # Disable if you don't want to use the first person backpack system + # See the wiki for more information + first-person-backpack-mode: true # The pitch the player must look down for the backpack to be removed # Set to -1 for no removal diff --git a/common/src/main/resources/items.yml b/common/src/main/resources/items.yml new file mode 100644 index 00000000..dd175f0a --- /dev/null +++ b/common/src/main/resources/items.yml @@ -0,0 +1,28 @@ +1: + material: PAPER + name: "Backpack" + lore: + - "" + - "Enabled: <#6D9DC5>%enabled%" + - "Allowed: <#6D9DC5>%allowed%" + locked-lore: + - "You do not own this item!" + amount: 1 + model-data: 8 + type: SELF_BACKPACK + permission: "" + id: backpack_self +2: + material: PAPER + name: "Future Wings" + lore: + - "" + - "Enabled: <#6D9DC5>%enabled%" + - "Allowed: <#6D9DC5>%allowed%" + locked-lore: + - "You do not own this item!" + amount: 1 + model-data: 10 + type: SELF_BACKPACK + permission: "" + id: future_wings_self \ No newline at end of file diff --git a/common/src/main/resources/menus/main.yml b/common/src/main/resources/menus/main.yml index 58b38764..e808b289 100644 --- a/common/src/main/resources/menus/main.yml +++ b/common/src/main/resources/menus/main.yml @@ -11,7 +11,7 @@ items: locked-lore: # Lore displayed when the player does not have the correct permission. - "You do not own this item!" applied-lore: # Lore displayed when the player has the cosmetic in their inventory. - - "My awesome Colorful Hat!" + - "My awesome Colorful Hat!" amount: 1 model-data: 2 # CustomModelData Number type: HAT @@ -36,10 +36,32 @@ items: - "You do not own this item!" amount: 1 model-data: 4 + action: + equip: + any: + set-cosmetics: backpack_self type: BACKPACK permission: "" id: backpack 3: + material: PAPER + name: "<#d24c9f>Future Wings" + lore: + - "" + - "Enabled: <#6D9DC5>%enabled%" + - "Allowed: <#6D9DC5>%allowed%" + locked-lore: + - "You do not own this item!" + amount: 1 + model-data: 9 + action: + equip: + any: + set-cosmetics: future_wings_self + type: BACKPACK + permission: "" + id: future_wings + 4: material: PAPER name: "Lantern Cosmetic" lore: @@ -53,7 +75,7 @@ items: type: OFF_HAND permission: "" id: lantern_cosmetic - 4: + 5: material: PAPER name: "Baseball Hat" lore: @@ -67,7 +89,7 @@ items: type: HAT permission: "" id: baseball_hat - 5: + 6: material: DIAMOND_CHESTPLATE name: "Cosmetic Chestplate" lore: @@ -80,7 +102,7 @@ items: type: CHEST_PLATE permission: "" id: chestplate - 6: + 7: material: DIAMOND_LEGGINGS name: "Cosmetic Leggings" lore: @@ -93,7 +115,7 @@ items: type: PANTS permission: "" id: pants - 7: + 10: material: DIAMOND_BOOTS name: "Cosmetic Boots" lore: @@ -106,7 +128,7 @@ items: type: BOOTS permission: "" id: boots - 10: + 11: material: PAPER name: "Balloon" lore: diff --git a/common/src/main/resources/menus/test-menu.yml b/common/src/main/resources/menus/test-menu.yml deleted file mode 100644 index 9c026b91..00000000 --- a/common/src/main/resources/menus/test-menu.yml +++ /dev/null @@ -1,193 +0,0 @@ -title: "" # GUI Title -rows: 5 # Rows in the GUI -items: - 1: # GUI Slot number - material: LEATHER_HORSE_ARMOR # Also supports Oraxen items! Format: "oraxen:item_name" - name: "Colorful Hat" - lore: # Lore displayed when the player owns the item - - "" - - "Enabled: <#6D9DC5>%enabled%" - - "Allowed: <#6D9DC5>%allowed%" - locked-lore: # Lore displayed when the player does not have the correct permission. - - "You do not own this item!" - amount: 1 - model-data: 2 # CustomModelData Number - type: HAT - dyeable: true # Enables dyeable item feature - color: # Sets default color for item. Uses RGB format. - red: 5 - green: 230 - blue: 100 - action: # See how the action system works on the wiki - any: - open-menu: dye-menu - permission: "cosmetics.colorful_hat" # Can be anything you want. - id: colorful_hat # Internal identifier. Can be anything you want. - 2: - material: PAPER - name: "Backpack" - lore: - - "" - - "Enabled: <#6D9DC5>%enabled%" - - "Allowed: <#6D9DC5>%allowed%" - locked-lore: - - "You do not own this item!" - amount: 1 - model-data: 4 - type: BACKPACK - permission: "" - id: backpack - action: - # when the action should be run - # equip = when a cosmetic is equipped - # remove = when a cosmetic is removed - # any all = default, does not need to be specified - equip: - # click type - any: - send-message: "on equip" - remove: - any: - send-message: "on-remove" - any: - # send a message - send-message: "Test first message" - # send a command, format is - # senders can be player or console - send-command: "player:give %player% diamond" - # list of messages - send-messages: - - "Message 1" - - "Message 2" - # list of commands - send-commands: - - "player:help" - - "console:give %player% gold_ingot" - # set items in the specified slots in the inventory - # works with all actions - # sets items in the next inventory if open-menu is specified - set-items: - 12: - material: PAPER - name: "Backpack" - lore: - - "" - - "Enabled: <#6D9DC5>%enabled%" - - "Allowed: <#6D9DC5>%allowed%" - locked-lore: - - "You do not own this item!" - amount: 1 - model-data: 4 - type: BACKPACK - permission: "" - id: backpack - action: - any: - send-message: "It worked?" - set-items: - 12: - material: PAPER - name: "Backpack" - lore: - - "" - - "Enabled: <#6D9DC5>%enabled%" - - "Allowed: <#6D9DC5>%allowed%" - locked-lore: - - "You do not own this item!" - amount: 1 - model-data: 4 - type: BACKPACK - permission: "" - id: backpack - - 3: - material: PAPER - name: "Lantern Cosmetic" - lore: - - "" - - "Enabled: <#6D9DC5>%enabled%" - - "Allowed: <#6D9DC5>%allowed%" - locked-lore: - - "You do not own this item!" - amount: 1 - model-data: 5 - type: OFF_HAND - permission: "" - id: lantern_cosmetic - 4: - material: PAPER - name: "Baseball Hat" - lore: - - "" - - "Enabled: <#6D9DC5>%enabled%" - - "Allowed: <#6D9DC5>%allowed%" - locked-lore: - - "You do not own this item!" - amount: 1 - model-data: 6 - type: HAT - permission: "" - id: baseball_hat - 5: - material: DIAMOND_CHESTPLATE - name: "Cosmetic Chestplate" - lore: - - "" - - "Enabled: <#6D9DC5>%enabled%" - - "Allowed: <#6D9DC5>%allowed%" - locked-lore: - - "You do not own this item!" - amount: 1 - type: CHEST_PLATE - permission: "" - id: chestplate - 6: - material: DIAMOND_LEGGINGS - name: "Cosmetic Leggings" - lore: - - "" - - "Enabled: <#6D9DC5>%enabled%" - - "Allowed: <#6D9DC5>%allowed%" - locked-lore: - - "You do not own this item!" - amount: 1 - type: PANTS - permission: "" - id: pants - 7: - material: DIAMOND_BOOTS - name: "Cosmetic Boots" - lore: - - "" - - "Enabled: <#6D9DC5>%enabled%" - - "Allowed: <#6D9DC5>%allowed%" - locked-lore: - - "You do not own this item!" - amount: 1 - type: BOOTS - permission: "" - id: boots - 37: - material: PAPER - name: "<#40B7D6>Previous Page" - amount: 1 - model-data: 1 - action: - any: - open-menu: menu-2 - 40: - material: PAPER - name: "Customization Menu" - amount: 1 - model-data: 3 - action: - any: - open-menu: dye-menu - 43: - material: PAPER - name: "<#40B7D6>Next Page" - amount: 1 - model-data: 2 - action: - any: - open-menu: menu-2 \ No newline at end of file