COWMODSКаталог модов

HyphaShop

An ultra-customizable and high-performance shop plugin featuring a powerful custom scripting system.

Автор: YK_DZ4221обновлён 24 янв. 2026 г.
ЭкономикаМеханики игрыУправление

Описание

Note: Until this plugin's version number exits the Beta stage, it is not recommended for production use. Additionally, an English Wiki will not be provided prior to that point. Please treat it as a trial. If you encounter any issues while testing the plugin, feel free to report them on Discord or GitHub Issues.

Official Document: https://ykdz.github.io/HyphaDocs/

HyphaShop

A highly dynamic, script-assisted, high-performance shop plugin.

Features

  • Progressive — advanced features are optional
  • Random product pricing
  • Random product quantity
  • Conditional product listing
  • Product stock
  • Reusable product configurations (no need to repeat setups)
  • Product rarity
  • Bundle products
  • Basic attribute support (Skull, Flag, Trim, Potion Effect, Custom Model Data)
  • Automatic translation of Vanilla item names
  • Merchant mode for shops
  • Trade logging
  • Unified cart-based transactions
  • Fully translatable content
  • Comprehensive GUI system
  • JavaScript-like scripting system

Progressive

If you only need a simple shop plugin to sell vanilla items, you can follow the configuration example in product/wools.yml.

All advanced features are completely optional and won’t consume extra cpu if unused.

Random Product Pricing

Add the following configuration to enable random pricing like shown in the image:

default-configs:
  buy-price:
    mean: 80
    dev: 10
    round: true
  sell-price:
    mean: 5
    dev: 2

Random Price

Random Product Quantity

Product quantity can accept a script string as a value. It can also adjust pricing based on quantity automatically.

default-configs:
  item:
    amount: 8 + nextUniform(8, 16)
  buy-price:
    formula: base * (1 + (Math.random() * 2 - 1) * buy_range) * product_amount
  sell-price:
    formula: base * (1 + (Math.random() * 2 - 1) * sell_range) * product_amount

products:
  GOLD_ORE:
    item:
      base: gold_ore
    buy-price:
      context: const base = 200
    sell-price:
      context: const base = 70

Random Amount

Conditional Product Listing

Scripts can participate in plugin logic at various hooks, including controlling whether a product is listed.

default-configs:
  actions:
    on-before-list:
      - |
        const timeStr = papi("%world_time_world%").split(":");
        const hours = timeStr[0];
        number(hours) >= 20 || number(hours) < 6;
      - total_history_bought_amount <= 64

Product Stock

Products can have their own inventory. Once stock is depleted, they can no longer be purchased.

default-configs:
  stock:
    global:
      size: 1024
      replenish: true
      overflow: true
      inherit: true

Stock

Reusable Product Configurations

For similar products (e.g., all colors of wool), you can reuse default configurations. This greatly reduces setup complexity.

default-configs:
  item:
    amount: 16
  buy-price:
    mean: 80
    dev: 10
    round: true
  sell-price:
    mean: 5
    dev: 2
  rarity: uncommon
  cacheable: true

products:
  LIGHT_BLUE_WOOL:
    item:
      base: light_blue_wool

  YELLOW_WOOL:
    item:
      base: yellow_wool

  LIME_WOOL:
    item:
      base: lime_wool

Default Configs

Product Rarity

You can assign a rarity level to each product. This affects the probability of random listing and can also serve as decoration.

rarities:
  common:
    name: "<gray>Common"
    weight: 100
  uncommon:
    name: "<white>Uncommon"
    weight: 80
  rare:
    name: "<dark_purple>Rare"
    weight: 60

Bundle Products

Products can be bundles that contain multiple other products.

When calculating a bundle’s price, the total price of its contents is available as a context variable.

products:
  WARM_COLOR_WOOL_BUNDLE:
    icon:
      base: barrel
      amount: 1
      name: "<white>Warm toned wool bundle"
      lore:
        - "<gray>A bundle that contains all"
        - "<gold>warm toned<gray>wool."
    buy-price:
      formula: bundle_total_new * 0.8
    sell-price:
      disable: true
    bundle-contents:
      - YELLOW_WOOL
      - BROWN_WOOL
      - MAGIC_ORANGE_WOOL
      - RED_WOOL:3
    rarity: rare

Bundle

Basic Attribute Support

Thanks to high-version Data Component features, the plugin supports basic attributes for items.

Armor Trim Potion Effect

Automatic Translation of Vanilla Item Names

Using the Adventure API's Translatable Component mechanism, vanilla item names are automatically translated with no need of manual configuration or downloading language files.

products:
  LIME_WOOL:
    item:
      base: lime_wool

Vanilla Name Translation

Merchant Mode

Shops can have their own virtual balance. Once depleted, they can no longer buy products from players.

settings:
  merchant:
    balance: 1000
    replenish: true
    overflow: true
    inherit: true

Merchant

Trade Logging

Each player’s transactions are recorded in a database for review by themselves or server administrators.

Log

Cart-Based Transactions

In addition to traditional direct purchases, players can add multiple products to a cart and purchase them all at once.

Cart

Comprehensive GUI System

Beyond the shop menu, you can use the same GUI configuration logic to create custom GUIs.

JavaScript-Like Scripting System

This plugin includes a built-in scripting system with syntax similar to JavaScript (simplified for function calls), offering high configurability.

Последние версии

Все версии →
beta

0.5.1-Beta

0.5.1-Beta
24 янв. 2026 г.103Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11folia, paper, purpur
Скачать
Что нового
### Added - ### Changed - Bump deps ### Fixed - Fix ItemsAdder integration
beta

0.5.0-Beta

0.5.0-Beta
7 дек. 2025 г.37Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10folia, paper, purpur
Скачать
Что нового
### Added - **This update may be destructive to the plugin’s existing database data. If you are not a new user, the best option is to delete all previous configurations and allow the plugin to generate a new default configuration automatically.** - Multi currency - Balance overhaul - Message overhaul - Official Document: <https://ykdz.github.io/HyphaDocs> ### Changed - Bump HS to v0.2.1-Beta - No hard dep to Vault now - Shop name now HS string ### Fixed - Default config changed
beta

0.4.7-Beta

0.4.7-Beta
27 нояб. 2025 г.22Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10folia, paper, purpur
Скачать
Что нового
### Added - Bump `HyphaScript` to `0.1.3-Beta`, fix multiple issue - Add dialog support, default config also updated ### Changed - ### Fixed -
beta

0.4.6-Beta

0.4.6-Beta
26 нояб. 2025 г.24Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10folia, paper, purpur
Скачать
Что нового
### Added - Bump `HyphaScript` to `0.1.2-Beta`, remove the need of semicolon, add more bitwise operator and fix `Future`. Default config also updated - Auto publish API to maven central ### Changed - ### Fixed -
beta

0.4.5-Beta

0.4.5-Beta
21 нояб. 2025 г.27Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10folia, paper, purpur
Скачать
Что нового
### Added - Bump deps - `back()` function to return to previously opened gui, default config also updated ### Changed - ### Fixed - DB Provider init order
beta

0.4.4-Beta

0.4.4-Beta
20 окт. 2025 г.38Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10folia, paper, purpur
Скачать
Что нового
### Added - Bump deps ### Changed - ### Fixed - DB Provider init order
beta

HyphaShop 0.4.3-Beta

0.4.3-Beta
9 авг. 2025 г.71Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8folia, paper, purpur
Скачать
Что нового
- Bump deps - Use JetBrains maven cdn
beta

HyphaShop 0.4.2-Beta

0.4.2-Beta
23 июл. 2025 г.41Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8folia, paper, purpur
Скачать
Что нового
Use Flyway to replace self-hosted db migrations
beta

HyphaShop 0.4.1-Beta

0.4.1-Beta
22 июл. 2025 г.21Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8folia, paper, purpur
Скачать
Что нового
Support 1.21.8
beta

HyphaShop 0.4.0-Beta

0.4.0-Beta
15 июл. 2025 г.37Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7folia, paper, purpur
Скачать
Что нового
First Release in modrinth