Specialprice Wiki Guide

This Minecraft tutorial explains all about the NBT tag called specialPrice in Minecraft Java Edition (PC/Mac).

img-responsive

What does the specialPrice tag do?

In Minecraft Java Edition, the specialPrice NBT tag allows you to set a special price adjustment that is applied to the first buy item when the Villager Trade Menu is opened for the first time (it then disappears and is not available for the 2nd, 3rd, 4th, etc time you access the Villager Trade menu).

If you use a negative value for the specialPrice, the price of the first buy item will be reduced by that amount ONLY the first time that the Trade Menu is opened. If you use a positive value for the specialPrice, the price of the first buy item will be increased ONLY the first time that the Trade Menu is opened.

TIP: The specialPrice NBT tag can not reduce the price of the first buy item to lower than 1 or higher than the stack size of the item. The game will automatically enforce these price limits.

Which entities use the specialPrice tag?

The specialPrice tag is used by the following entities in Minecraft:

Entity Description
(Minecraft Entity Value)
img-responsive Villager
(minecraft:villager)

Example

Let’s take a look at an example of how to use the specialPrice tag in Minecraft Java Edition 1.18.

In this example, we are going to summon a villager that will buy 7 emeralds and sell 3 gold blocks, with a specialPrice of -2:

/summon villager ~ ~1 ~ {VillagerData:{profession:farmer,level:2,type:plains},
Offers:{Recipes:[{buy:{id:emerald,Count:7},sell:{id:gold_block,Count:3},specialPrice:-2}]}}

This is what you would see when you open the Villager Trade menu:

First Time the Trade Menu is opened

img-responsive

Second, Third, Fourth Time, etc.

img-responsive

As you can see, the first buy item which is the 7 emeralds is reduced by 2 (7-2=5 emeralds) only the first time that the trade menu is opened. Each subsequent time the trade menu is opened (ie: 2nd, 3rd, 4th, etc), the price of the first buy item is back at its original price of 7 emeralds.

specialPrice does not affect the second buy item!

Just to demonstrate that only the first buy item (and not the BuyB item) is affected by the specialPrice, let’s create a trade with 2 buy items (7 emeralds and 7 diamonds) and 1 sell item (3 gold blocks) with a specialPrice of -2:

/summon villager ~ ~1 ~ {VillagerData:{profession:farmer,level:2,type:plains},
Offers:{Recipes:[{buy:{id:emerald,Count:7},buyB:{id:diamond,Count:7},
sell:{id:gold_block,Count:3},specialPrice:-2}]}}

This is what you would see when you open the Villager Trade menu:

First Time the Trade Menu is opened

img-responsive

Second, Third, Fourth Time, etc.

img-responsive

As you can see, the specialPrice of -2 only affects the first buy item. It reduces the required emeralds by 2 (7-2=5 emeralds) but it does not affect the amount of diamonds required for the trade to complete. The amount of diamonds required is always 7 every time you open the trade menu.

Mods

1.19.4 Mods

1.19.3 Mods

1.19.2 Mods

1.18.2 Mods

1.16.5 Mods

1.15.2 Mods

1.12.2 Mods

1.8.9 Mods

1.7.10 Mods

1.18.1 Mods

1.17.1 Mods

1.14.4 Mods

1.13.2 Mods

1.11.2 Mods

1.10.2 Mods

1.9.4 Mods

Minecraft Modpacks

1.19.4 Modpacks

1.19.3 Modpacks

1.19.2 Modpacks

1.18.2 Modpacks

1.16.5 Modpacks

1.12.2 Modpacks

1.7.10 Modpacks

Forge Mods

Fabric Mods

Quilt Mods

Resource Packs

1.19.4 Resource Packs

1.19.3 Resource Packs

1.19.2 Resource Packs

1.18.2 Resource Packs

1.16.5 Resource Packs

1.15.2 Resource Packs

1.12.2 Resource Packs

1.8.9 Resource Packs

1.7.10 Resource Packs

1.18.1 Resource Packs

1.17.1 Resource Packs

1.14.4 Resource Packs

1.13.2 Resource Packs

1.11.2 Resource Packs

1.10.2 Resource Packs

1.9.4 Resource Packs

Shaders

1.19.4 Shaders

1.19.3 Shaders

1.19.2 Shaders

1.18.2 Shaders

1.17.1 Shaders

1.16.5 Shaders

Maps

1.19.4 Maps

1.19.3 Maps

1.19.2 Maps

1.18.2 Maps

1.16.5 Maps

1.15.2 Maps

1.12.2 Maps

1.8.9 Maps

1.7.10 Maps

1.18.1 Maps

1.17.1 Maps

1.14.4 Maps

1.13.2 Maps

1.11.2 Maps

1.10.2 Maps

1.9.4 Maps

Data Packs

1.19.4 Data Packs

1.19.3 Data Packs

1.19.2 Data Packs

1.18.2 Data Packs

1.16.5 Data Packs

1.15.2 Data Packs

1.18.1 Data Packs

1.17.1 Data Packs

1.14.4 Data Packs

1.13.2 Data Packs

MCPE/Bedrock

Mods & Addons

MCPE 1.19 Add-ons

MCPE 1.19 Mods

Texture Packs

MCPE 1.19 Texture Packs

MCPE 1.19 Resource Packs

Maps

MCPE 1.19 Maps

Clients

MCPE 1.19 Clients

Mod Menu Clients

Shaders

MCPE 1.19 Shaders

Render Dragon Shaders

Launchers

Skin Packs

Clients

1.19.4 Clients

1.19.3 Clients

1.19.2 Clients

1.18.2 Clients

1.16.5 Clients

1.12.2 Clients

1.8.9 Clients

Launchers

1.19.4 Launchers

1.19.3 Launchers

1.19.2 Launchers

1.18.2 Launchers

1.16.5 Launchers

1.12.2 Launchers

1.7.10 Launchers

Seeds

1.19.4 Seeds

1.19.3 Seeds

1.19.2 Seeds

1.18.2 Seeds

Skins

Plugins

Bukkit Plugins

Spigot Plugins

Paper Plugins

Tutorials

Installation Guide

Mobs Wiki Guide

Seeds Wiki Guide

Biomes Wiki Guide

Status Effects Wiki Guide

Enchantments Wiki Guide

Materials Wiki Guide

Command Blocks

Versions

Backlinks