Cobbled Market - Configuration
All of the configuration files for Cobbled Market are located in the <game_directory>/config/cobbled_market/ directory.
Configuration files:
permissions.toml- This file contains the permission nodes for Cobbled Market. You can use this file to change the permission nodes for the commands and features of the mod.server.toml- This file contains the server-side configuration for Cobbled Market. You can use this file to change the default settings for the mod, such as the default level cap and scaling method.
Permissions Configuration
Section titled “Permissions Configuration”[permissions] [permissions.command] market = "CHEAT_COMMANDS_AND_COMMAND_BLOCKS" market_shop = "CHEAT_COMMANDS_AND_COMMAND_BLOCKS" market_reload = "ALL_COMMANDS"Command Permission Levels
Section titled “Command Permission Levels”Available permission levels for commands are as follows:
NONE- No permission.SPAWN_PROTECTION_BYPASS- Bypass spawn protection.CHEAT_COMMANDS_AND_COMMAND_BLOCKS- Access to cheat commands and command blocks.MULTIPLAYER_MANAGEMENT- Manage multiplayer settings.ALL_COMMANDS- Access to all commands.
market
Section titled “market”Permission level for the /market command, which opens the shop directory.
- Type:
enum - Default:
CHEAT_COMMANDS_AND_COMMAND_BLOCKS
market_shop
Section titled “market_shop”Permission level for the /market <shopId> command, which opens a specific shop.
- Type:
enum - Default:
CHEAT_COMMANDS_AND_COMMAND_BLOCKS
market_reload
Section titled “market_reload”Permission level for the /market reload command, which reloads the configuration files.
- Type:
enum - Default:
ALL_COMMANDS
Server Configuration
Section titled “Server Configuration”[server] currencyProvider = "IMPACTOR" currencyId = "impactor:dollars" currencyDisplayName = "Dollars"
[server.menu] backgroundItemId = "minecraft:gray_stained_glass_pane" pageIndicatorItemId = "minecraft:paper" navNextItemId = "minecraft:arrow" navPrevItemId = "minecraft:arrow" navBackItemId = "minecraft:barrier" pageIndicatorText = "Page %current%/%total%" navBackText = "Back to Market" navPrevText = "Previous" navNextText = "Next" shopLoreLn1_single = "item" shopLoreLn1_multiple = "items" shopLoreLn2 = "Click to browse" shopItemLoreLn1 = "Quantity: %quantity%" shopItemLoreLn2 = "Price: %price% %currency%" shopItemLoreLn3 = "Click to purchase" errorNoShopsConfigured = "There are no shops configured." errorUnknownShop = "Unknown shop: %shopId%"
[server.messages] notEnoughFunds = "You do not have enough %s to purchase this item. You need %d %s." withdrawError = "An error occurred while processing your purchase. Please try again later." purchaseSuccess = "You have purchased %d x %s for %d %s." purchaseFailure = "An error occurred while processing the purchase. Please try again later." reloadConfig = "Cobbled Market configuration reloaded successfully. Reloaded %d shops."
[[server.shops]] shopName = "Example Shop" shopIcon = "minecraft:chest" shopId = "example_shop" [[server.shops.entries]] itemId = "minecraft:stone" price = 10 quantity = 64 [[server.shops.entries]] itemId = "minecraft:dirt" price = 5 quantity = 64currencyProvider
Section titled “currencyProvider”Set the currency provider for the market NPCs.
- Type:
enum - Allowed Values:
ITEM- Use an item as currency.IMPACTOR- Use Impactor’s currency system.COBBLEDOLLARS- Use CobbleDollars as currency.
- Default:
IMPACTOR
currencyId
Section titled “currencyId”Set the currency ID for the market NPCs. This is used to identify the currency item or system.
- Type:
string - Default:
impactor:dollars
currencyDisplayName
Section titled “currencyDisplayName”Set the display name for the currency used in the market NPCs. This is used in messages and menus to refer to the currency.
- Type:
string - Default:
Dollars
Menu Configuration
Section titled “Menu Configuration”Allows you to customize the appearance and text of the market menu.
backgroundItemId
Section titled “backgroundItemId”Set the item ID for the background item in the market menu.
- Type:
string - Default:
minecraft:gray_stained_glass_pane
pageIndicatorItemId
Section titled “pageIndicatorItemId”Set the item ID for the page indicator in the market menu.
- Type:
string - Default:
minecraft:paper
navNextItemId
Section titled “navNextItemId”Set the item ID for the “Next” navigation button in the market menu.
- Type:
string - Default:
minecraft:arrow
navPrevItemId
Section titled “navPrevItemId”Set the item ID for the “Previous” navigation button in the market menu.
- Type:
string - Default:
minecraft:arrow
navBackItemId
Section titled “navBackItemId”Set the item ID for the “Back” navigation button in the market menu.
- Type:
string - Default:
minecraft:barrier
pageIndicatorText
Section titled “pageIndicatorText”Set the text for the page indicator in the market menu. Use %current% for the current page and %total% for the total number of pages.
- Type:
string - Default:
Page %current%/%total%
navBackText
Section titled “navBackText”Set the text for the “Back” navigation button in the market menu.
- Type:
string - Default:
Back to Market
navPrevText
Section titled “navPrevText”Set the text for the “Previous” navigation button in the market menu.
- Type:
string - Default:
Previous
navNextText
Section titled “navNextText”Set the text for the “Next” navigation button in the market menu.
- Type:
string - Default:
Next
shopLoreLn1_single
Section titled “shopLoreLn1_single”Set the text for the first line of lore for a shop entry with a single item.
- Type:
string - Default:
item
shopLoreLn1_multiple
Section titled “shopLoreLn1_multiple”Set the text for the first line of lore for a shop entry with multiple items.
- Type:
string - Default:
items
shopLoreLn2
Section titled “shopLoreLn2”Set the text for the second line of lore for a shop entry.
- Type:
string - Default:
Click to browse
shopItemLoreLn1
Section titled “shopItemLoreLn1”Set the text for the first line of lore for a shop item entry. Use %quantity% for the quantity of the item.
- Type:
string - Default:
Quantity: %quantity%
shopItemLoreLn2
Section titled “shopItemLoreLn2”Set the text for the second line of lore for a shop item entry. Use %price% for the price of the item and %currency% for the currency name.
- Type:
string - Default:
Price: %price% %currency%
shopItemLoreLn3
Section titled “shopItemLoreLn3”Set the text for the third line of lore for a shop item entry.
- Type:
string - Default:
Click to purchase
errorNoShopsConfigured
Section titled “errorNoShopsConfigured”Set the error message displayed when there are no shops configured.
- Type:
string - Default:
There are no shops configured.
errorUnknownShop
Section titled “errorUnknownShop”Set the error message displayed when an unknown shop ID is accessed. Use %shopId% for the unknown shop ID.
- Type:
string - Default:
Unknown shop: %shopId%
Messages Configuration
Section titled “Messages Configuration”Allows you to customize the messages displayed to players when interacting with the market NPCs.
notEnoughFunds
Section titled “notEnoughFunds”Set the message displayed when a player does not have enough funds to make a purchase. Use %s for the currency name and %d for the amount needed.
- Type:
string - Default:
You do not have enough %s to purchase this item. You need %d %s.
withdrawError
Section titled “withdrawError”Set the message displayed when there is an error processing a purchase.
- Type:
string - Default:
An error occurred while processing your purchase. Please try again later.
purchaseSuccess
Section titled “purchaseSuccess”Set the message displayed when a player successfully makes a purchase. Use %d for the quantity purchased, %s for the item name, and %s for the currency name.
- Type:
string - Default:
You have purchased %d x %s for %d %s.
purchaseFailure
Section titled “purchaseFailure”Set the message displayed when a purchase fails for any reason.
- Type:
string - Default:
An error occurred while processing the purchase. Please try again later.
reloadConfig
Section titled “reloadConfig”Set the message displayed when the configuration files are reloaded. Use %d for the number of shops reloaded.
- Type:
string - Default:
Cobbled Market configuration reloaded successfully. Reloaded %d shops.
Shops Configuration
Section titled “Shops Configuration”Shops are defined in the server.toml configuration file. Shops are stored as an Array of entries. Each shop has a unique ID, name, icon, and a list of entries (items for sale).
[[server.shops]] shopName = "Example Shop" # The display name of the shop. shopIcon = "minecraft:chest" # The item ID used as the icon for the shop. shopId = "example_shop" # The unique ID of the shop. [[server.shops.entries]] itemId = "minecraft:stone" # The item ID of the item for sale. price = 10 # The price of the item. quantity = 64 # The quantity of the item for sale. [[server.shops.entries]] itemId = "minecraft:dirt" # The item ID of the item for sale. price = 5 # The price of the item. quantity = 64 # The quantity of the item for sale.