Sueta

Pockets

v1.1.5

Add pockets to items - Very configurable - Storage within storage is possible

·Config

Pockets

- Add pockets to items
- Highly Configurable
- Storage within storage is possible
- No DB
- No external Files

Version 1.0.0
YouTube

Version 1.0.9
YouTube

Step 1: Craft a pocket ( Recipe is configurable )

Step 2: Craft with pocket ( Items configurable, recipe shape is not )

Step 3: Fill your pocket ( Sizes are configurable as well as "pocket-in-pocket ability" )

Random Facts:
1: You can put pockets in place-able blocks like pumpkins. The items will spill out when placed. If the block is re-broken before a server restart, the pocket will still be attached to the block

2: You can place items with pockets in item frames.

3: You can put pockets on a saddle and you can put that saddle on a horse!

4: No data is lost.

5: All data is saved within the item's data in the world file (invisible lore for versions 1.0.7 and under, and NBT tags for versions 1.0.8 and up). That means there is no need for a DB and no need for external files.

6: Pumpkins, Saddles and Carpets can store other items which also have non-empty pockets (i.e. storage within storage). This can be disabled by configuration.

Version 1.0.5 and up:

Lore/Enchantment Transfer:
When crafting a pocket into an existing item, if that item had any lore or enchantments or a custom name, that data will be transferred to the newly crafted item. Remember that the item needs to be fully repaired before you can craft with it.

Dynamic language for Pocket Name:
The word "Pocket" is now controlled by the player's language settings. German, Russian and English are supported in default config file for the pocket recipe, but you can add your own as well.

The pocket item and the word "Pocket" on the gear can dynamically change to the correct language when items are added or removed. So if a Russian loots a German's chest piece, the word "Pocket" will dynamically change once the Russian interacts with the pocket.

Version 1.1.0 and up:
The following commands will all open an inventory showing your pockets.
The pockets are displayed in ascending order of how full they are.

commands:
  pockets:
    description: Opens an inventory showing your pockets.
  taschen:
    description: Öffnet ein Inventar, das Ihre Taschen anzeigt.
  bolsillos:
    description: Abre un inventario que muestra sus bolsillos.
  poches:
    description: Ouvre un inventaire qui affiche vos poches.
  карманы:
    description: Открывает перечень, который отображает ваши карманы.



Config:

###############################################
############## POCKETS ########################
###############################################

locale: en
debug: false
log.recipes.enable: false

# from org.bukkit.event.inventory.ClickType
open-pocket-action: RIGHT


materials-which-can-have-pockets:
- LEATHER_HELMET
- LEATHER_CHESTPLATE
- LEATHER_LEGGINGS
- LEATHER_BOOTS
- CHAINMAIL_HELMET
- CHAINMAIL_CHESTPLATE
- CHAINMAIL_LEGGINGS
- CHAINMAIL_BOOTS
- IRON_HELMET
- IRON_CHESTPLATE
- IRON_LEGGINGS
- IRON_BOOTS
- DIAMOND_HELMET
- DIAMOND_CHESTPLATE
- DIAMOND_LEGGINGS
- DIAMOND_BOOTS
- DIAMOND_BARDING
- GOLD_HELMET
- GOLD_CHESTPLATE
- GOLD_LEGGINGS
- GOLD_BOOTS
- SADDLE
- CARPET
- PUMPKIN

default-pocket-size-limit: 6
default-allow-pocket-in-pocket: false

require-permissions-general-pocket-use: false
permissions-for-general-pocket-use: pockets.general

require-permissions-pocket-in-pocket-use: false
permissions-for-pocket-in-pocket-use: pockets.pocket-in-pocket
[/SIZE]

material-settings:
  LEATHER_HELMET:
    limit: 1
    allow-pocket-in-pocket: false
  LEATHER_CHESTPLATE:
    limit: 4
    allow-pocket-in-pocket: false
  LEATHER_LEGGINGS:
    limit: 8
    allow-pocket-in-pocket: false
  LEATHER_BOOTS:
    limit: 2
    allow-pocket-in-pocket: false
  CHAINMAIL_HELMET:
    limit: 1
    allow-pocket-in-pocket: false
  CHAINMAIL_CHESTPLATE:
    limit: 4
    allow-pocket-in-pocket: true
  CHAINMAIL_LEGGINGS:
    limit: 8
    allow-pocket-in-pocket: false
  CHAINMAIL_BOOTS:
    limit: 2
    allow-pocket-in-pocket: false
  IRON_HELMET:
    limit: 1
    allow-pocket-in-pocket: false
  IRON_CHESTPLATE:
    limit: 4
    allow-pocket-in-pocket: false
  IRON_LEGGINGS:
    limit: 8
    allow-pocket-in-pocket: false
  IRON_BOOTS:
    limit: 2
    allow-pocket-in-pocket: false
  DIAMOND_HELMET:
    limit: 2
    allow-pocket-in-pocket: false
  DIAMOND_CHESTPLATE:
    limit: 6
    allow-pocket-in-pocket: false
  DIAMOND_LEGGINGS:
    limit: 10
    allow-pocket-in-pocket: false
  DIAMOND_BOOTS:
    limit: 4
    allow-pocket-in-pocket: false
  DIAMOND_BARDING:
    limit: 4
    allow-pocket-in-pocket: false
  GOLD_HELMET:
    limit: 2
    allow-pocket-in-pocket: false
  GOLD_CHESTPLATE:
    limit: 5
    allow-pocket-in-pocket: false
  GOLD_LEGGINGS:
    limit: 9
    allow-pocket-in-pocket: false
  GOLD_BOOTS:
    limit: 3
    allow-pocket-in-pocket: false
  SADDLE:
    limit: 16
    allow-pocket-in-pocket: true
  CARPET:
    limit: 16
    allow-pocket-in-pocket: true
  PUMPKIN:
    limit: 12
    allow-pocket-in-pocket: true



############## RECIPES ############
recipes:
  - pocket



################## BEGIN Pocket ############
recipe.pocket.name: Pocket
recipe.pocket.rows:
  - III
  - RRR
  - RRR
recipe.pocket.mats:
  - R=RABBIT_HIDE
  - I=IRON_INGOT
recipe.pocket.output: FLOWER_POT_ITEM



Code: https://github.com/spaarkimus/Pockets

Similar projects

Config →