Default Shop

The base file with an empty shop

Empty Shop
{
  "defaultShop": []
}

Category

Empty Category
{
  "defaultShop": [
    {
      "Category Name": []
    }
  ]
}
Multiple Categories
{
  "defaultShop": [
    {
      "Category Name": []
    },
    {
      "Other Category": []
    },
    {
      "3rd Category": []
    }
  ]
}

Offer

Item

Simple Item Offer
{
  "defaultShop": [
    {
      "Category Name": [
        {
          "item": "minecraft:stick",
          "price": 50
        }
      ]
    }
  ]
}
  • "price": can be any number

  • "price": "2k" = "price": 2000

  • If the number value contains letters, it must be in "


Tag

Simple Tag Offer
{
  "defaultShop": [
    {
      "Category Name": [
        {
          "tag": "#minecraft:logs",
          "price": 50
        }
      ]
    }
  ]
}
  • "tag": can be any Item Tag (vanilla & modded tags)

  • Example of modded tag: "#cobblemon:apricorns"

  • The prefix # is optional


Component

Item with Components
{
  "defaultShop": [
    {
      "Category Name": [
        {
          "item": "minecraft:stick",
          "price": 50,
          "components": {
            "minecraft:rarity": "rare",
            "minecraft:max_stack_size": 1,
            "minecraft:enchantments": {
              "minecraft:knockback": 10
            }
          }
        }
      ]
    }
  ]
}
  • "components": can contain any Component (vanilla & modded)

  • In this example, the shop sells a Stick with ->

    • Rarity of Rare

    • Stackable to a max of 1

    • The enchantment Knockback level 10

Last updated