getCase - Simplified Setup icon

getCase - Simplified Setup -----

case, chest, case open



Create your case in 5 minute!

Tutorial: [PL]
[v3 - nowy]

[​IMG]

hologram: https://www.spigotmc.org/resources/decentholograms-1-8-1-20-2-papi-support-no-dependencies.96927/

permissions: getcase.admin:

case type:
- LUCKBLOCK
- LOOTBOX

Code (Text):
lootboxType: "LOOTBOX"
Code (Text):
lootboxType: "LUCKBLOCK"
commands:

  • /getcase reload - reload plugin
  • /getcase setlocation [!] You must look at the block - set block with interact case
  • /getcase create - create case
  • /getcase give [player] [case] [amount] - give player a key
  • /getcase giveall [case] [amount] - give all players keys
  • /getcase edit [name] - edit drop case
  • /getcase removelocation [!] You must look at the block - remove block with chest interact
  • /getcase delete - remove the case
  • /getcase enable * - enable all cases
  • /getcase enable [name] - enable this case
  • /getcase disable * - disable all cases
  • /getcase disable [name] - disable this case

Variables to broadcast:

Code (Text):
broadcastCase:
  enable: true
  messages:
  - "The {player} open the case XYZ"
  - "Drop: {amount} {item}"
Config.yml
Code (Text):
# sound when you don't have a key
# list of sound https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
noKeySound: "ENTITY_VILLAGER_NO"
# sound when you open a preview menu
previewCaseSound: "UI_BUTTON_CLICK"
# sound while spin animation
spinSound: "UI_BUTTON_CLICK"
# sound when you got the reward
winItemSound: "ENTITY_PLAYER_LEVELUP"
# it's responsible for open all loot box by SHIFT + RIGHT_CLICK
quickOpenCase: false
spinData:
  size: 27
  title: "Drawing..."
  animationSlots:
  - 11
  - 12
  - 13
  - 14
  - 15
  itemDecorations:
  - item:
      material: "BLACK_STAINED_GLASS_PANE"
      displayname: " "
      lore: []
      unbreakable: false
      glow: false
      modelData: 0
    slots:
    - 8
    - 7
    - 6
    - 5
    - 4
    - 3
    - 2
    - 1
    - 0
    - 26
    - 25
    - 24
    - 23
    - 22
    - 21
    - 20
    - 19
    - 18
previewWinItem:
  size: 27
  title: "&0You won..."
  itemDecorations:
  - item:
      material: "BLACK_STAINED_GLASS_PANE"
      displayname: " "
      lore: []
      unbreakable: false
      glow: false
      modelData: 0
    slots:
    - 13
    - 12
    - 11
    - 10
    - 9
    - 8
    - 7
    - 6
    - 5
    - 4
    - 3
    - 2
    - 1
    - 0
    - 26
    - 25
    - 24
    - 23
    - 22
    - 21
    - 20
    - 19
    - 18
    - 17
    - 16
    - 15
    - 14
  animationSlots:
  - 16
  noAnimationSlots:
  - 15
  slotWinItem: 13
noAnimationItem:
  material: "LIME_DYE"
  displayname: "&7Open without the animation"
  lore:
  - "&7"
  unbreakable: true
  glow: true
  modelData: 0
animationItem:
  material: "PURPLE_DYE"
  displayname: "&7Open with spin animation"
  lore:
  - "&7"
  unbreakable: true
  glow: false
  modelData: 0
 
Lang.yml
Code (Text):
noKey: "&cNo key!"
caseIsDisable: "&cThis case is disabled!"
noPermission: "&cNo permission! &8(&f{permission}&8)"
usageCommand: "&7Usage: #5eff96{usage}"
usageHelpList:
- "&7"
- "#c4ff5egetCase:"
- "&8» #5eff96/getcase reload #cfffdf- reload plugin"
- "&8» #5eff96/getcase setlocation - set block with interact case"
- "&8» #5eff96/getcase create #cfffdf- create case"
- "&8» #5eff96/getcase give #12ff64[player] [case] [amount] #cfffdf- give player a\
  \ key"
- "&8» #5eff96/getcase giveall #12ff64[case] [amount] #cfffdf- give all players keys"
- "&8» #5eff96/getcase edit #12ff64[name] #cfffdf- edit drop case"
- "&8» #5eff96/getcase removelocation #cfffdf- remove block with chest interact"
- "&8» #5eff96/getcase delete #cfffdf- remove the case"
- "&8» #5eff96/getcase enable #12ff64* #cfffdf- enable all cases"
- "&8» #5eff96/getcase enable #12ff64[name] #cfffdf- enable this case"
- "&8» #5eff96/getcase disable #12ff64* #cfffdf- disable all cases"
- "&8» #5eff96/getcase disable #12ff64[name] #cfffdf- disable this case"
- "&7"
 
example location.yml

Code (Text):
caseLocationData:
- caseHologram:
    hologramKey: "asd_8742fcb6-87d6-42f1-b48f-6c1180672103"
    enable: true
    lines:
    - "&7-----------------"
    - "#eaff4fCase asd"
    - "&7-----------------"
    heightY: 2.1
  location:
    world: "world"
    x: 220.0
    "y": 68.0
    z: -216.0
    pitch: 0.0
    yaw: 0.0
  caseId: "f00babb4-6510-4a0e-8b4f-924d2e9f7e0e"
 
example case:
Code (Text):
lootboxType: "LOOTBOX"
enable: true
caseId: "f00babb4-6510-4a0e-8b4f-924d2e9f7e0e"
sizeInv: 54
titleInv: "&0LootBox asd"
name: "asd"
itemKey:
  material: "TRIPWIRE_HOOK"
  displayname: "#77ff00&lKey asd"
  lore:
  - " "
  unbreakable: true
  glow: true
  modelData: 0
items:
- slot: 1
  chance: 55.0
  itemStack:
    v: 2586
    type: "GRASS_BLOCK"
  extraLore:
  - "&7"
  - "&7Chance: &f{chance}%"
  - "&7"
decorations:
- item:
    material: "BLACK_STAINED_GLASS_PANE"
    displayname: "&7"
    lore:
    - " "
    unbreakable: false
    glow: false
    modelData: 0
  slots:
  - 0
  - 1
  - 2
  - 3
  - 4
  - 5
  - 6
  - 7
  - 8
animation:
  animationType: "SPIN"
  animationSlots:
  - 48
  - 46
  - 47
  noAnimationSlots:
  - 50
  - 51
  - 52
broadcastCase:
  enable: true
  messages: []
 
Discord: https://dc.gether.dev
Resource Information
Author:
----------
Total Downloads: 26,938
First Release: May 21, 2023
Last Update: Aug 18, 2024
Category: ---------------
All-Time Rating:
190 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings