Hi Gamepedia users and contributors! Please complete this survey to help us learn how to better meet your needs in the future. We have one for editors and readers. This should only take about 7 minutes!

Villager/ED

From Minecraft Wiki
Jump to: navigation, search
  • Entity data
    • Tags common to all entities see Template:Nbt inherit/entity/template
    • Tags common to all mobs see Template:Nbt inherit/mob/template
    • Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
    •  Willing: 1 or 0 (true/false) - true if the villager is willing to mate. Becomes true after certain trades (those that would cause offers to be refreshed), and false after mating.
    •  VillagerData: Information about the villager’s type, profession, and level.
      •  level: The current xp level of this villager's profession. Influences the trading options generated by the villager. If it is greater than their profession's maximum level, no new offers are generated. Increments when the villager fills his trading xp bar. Also used for badge rendering.
      •  profession: A namespaced ID value indicating the villager's profession.
      •  type: A namespaced ID value indicating the villager's type.
    •  Gossips: Pieces of gossip that can be exchanged between villagers when they meet.
      • A piece of gossip.
        •  Type: An ID value indicating the type of gossip. The possible values are major_negative, minor_negative, major_positive, minor_positive, and trading.
        •  Value: The strength of the gossip.
        •  TargetMost The most significant half of the target's UUID. Joined with TargetLeast to form the full UUID. The target is the player who caused the gossip.
        •  TargetLeast The least significant half of the target's UUID. Joined with TargetMost to form the full UUID.
    •  LastRestock: The last tick the villager went to their job site block to resupply their trades.
    •  LastGossipDecay: The last tick all gossip of the villager has decreased strength naturally.
    •  RestocksToday: The number of restocks a villager has done in 10 minutes from the last restock, or 0 if the villager has not restocked in the last 10 minutes. When a villager has restocked twice in less than 10 minutes, it waits at least 10 minutes for another restock.
    •  Xp: How much experience the villager currently has, increases with trading in various amounts.
    •  Inventory: Each compound tag in this list is an item in the villager's inventory, up to a maximum of 8 slots. Items in two or more slots that can be stacked together are automatically be condensed into one slot. If there are more than 8 slots, the last slot is removed until the total is 8. If there are 9 slots but two previous slots can be condensed, the last slot returns after the two other slots are combined.
    •  Offers: Is generated when the trading menu is opened for the first time.
      •  Recipes: List of trade options.
        • A trade option.
          •  rewardExp: 1 or 0 (true/false) - Whether this trade provides XP orb drops. All trades from naturally-generated villagers in Java Edition reward XP orbs.
          •  maxUses: The maximum number of times this trade can be used before it is disabled. Increases by a random amount from 2 to 12 when offers are refreshed.
          •  uses: The number of times this trade has been used. The trade becomes disabled when this is greater or equal to maxUses.
          •  buy: The first 'cost' item, without the Slot tag.
          •  buyB: Optional. The second 'cost' item, without the Slot tag.
          •  sell: The item being sold for each set of cost items, without the Slot tag.
          •  xp: How much experience the villager gets from this trade.
          •  priceMultiplier: The multiplier on the  demand price adjuster; the final adjusted price is added to the first 'cost' item's price.
          •  specialPrice: A modifier added to the original price of the first 'cost' item.
          •  demand: The price adjuster of the first 'cost' item based on demand. Updated when a villager resupply.

Villager type

[edit]

Villager profession

[edit]