Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / VillagerFields

Interface: VillagerFields โ€‹

Defined in: core/values/entities.generated.ts:1609

minecraft:villager

Extends โ€‹

Properties โ€‹

absorptionAmount? โ€‹

optional absorptionAmount?: number

Defined in: core/values/entities.generated.ts:773

How much absorption health it has.

Inherited from โ€‹

BreedableFields.absorptionAmount


activeEffects? โ€‹

optional activeEffects?: readonly NbtInput[]

Defined in: core/values/entities.generated.ts:792

Active potion effects

Inherited from โ€‹

BreedableFields.activeEffects


age? โ€‹

optional age?: number

Defined in: core/values/entities.generated.ts:996

The age of the mob in ticks. When negative, the mob is a baby. When 0 or above, the mob is an adult. If this mob is breedable, when 0 or above, represents the number of ticks before it can breed again.

Inherited from โ€‹

BreedableFields.age


ageLocked? โ€‹

optional ageLocked?: boolean

Defined in: core/values/entities.generated.ts:999

Inherited from โ€‹

BreedableFields.ageLocked


air? โ€‹

optional air?: number

Defined in: core/values/entities.generated.ts:35

Ticks of air left.

Inherited from โ€‹

BreedableFields.air


armorDropChances? โ€‹

optional armorDropChances?: readonly number[]

Defined in: core/values/entities.generated.ts:840

Chance to drop the items it is wearing, in [feet, legs, body, head]. 0.0 is hardcoded to be unaffected by enchantments. \ Values between 0.0 and 1.0 (inclusive) randomizes durability of the dropped item.

Inherited from โ€‹

BreedableFields.armorDropChances


armorItems? โ€‹

optional armorItems?: readonly NbtInput[]

Defined in: core/values/entities.generated.ts:838

[feet, legs, body, head]

Inherited from โ€‹

BreedableFields.armorItems


attributes? โ€‹

optional attributes?: readonly NbtInput[]

Defined in: core/values/entities.generated.ts:790

Inherited from โ€‹

BreedableFields.attributes


bodyArmorDropChance? โ€‹

optional bodyArmorDropChance?: number

Defined in: core/values/entities.generated.ts:844

Chance to drop the item it is wearing.

Inherited from โ€‹

BreedableFields.bodyArmorDropChance


bodyArmorItem? โ€‹

optional bodyArmorItem?: NbtInput

Defined in: core/values/entities.generated.ts:842

Used for wolf armor & llama carpet decoration.

Inherited from โ€‹

BreedableFields.bodyArmorItem


brain? โ€‹

optional brain?: NbtInput

Defined in: core/values/entities.generated.ts:789

Inherited from โ€‹

BreedableFields.brain


canPickUpLoot? โ€‹

optional canPickUpLoot?: boolean

Defined in: core/values/entities.generated.ts:854

Whether it can pick up loot.

Inherited from โ€‹

BreedableFields.canPickUpLoot


currentExplosionImpactPos? โ€‹

optional currentExplosionImpactPos?: readonly number[]

Defined in: core/values/entities.generated.ts:748

Added mid-air after being hit by an explosion.

Inherited from โ€‹

BreedableFields.currentExplosionImpactPos


currentImpulseContextResetGraceTime? โ€‹

optional currentImpulseContextResetGraceTime?: number

Defined in: core/values/entities.generated.ts:750

Used by fall damage logic. Decreases by 1 every tick.

Inherited from โ€‹

BreedableFields.currentImpulseContextResetGraceTime


customName? โ€‹

optional customName?: TextComponent

Defined in: core/values/entities.generated.ts:53

Inherited from โ€‹

BreedableFields.customName


customNameVisible? โ€‹

optional customNameVisible?: boolean

Defined in: core/values/entities.generated.ts:55

Whether the custom name should always be visible.

Inherited from โ€‹

BreedableFields.customNameVisible


data? โ€‹

optional data?: NbtInput

Defined in: core/values/entities.generated.ts:67

Any stored data

Inherited from โ€‹

BreedableFields.data


deathLootTable? โ€‹

optional deathLootTable?: LootTable

Defined in: core/values/entities.generated.ts:850

Loot table that is dropped when the mob dies.

Inherited from โ€‹

BreedableFields.deathLootTable


deathLootTableSeed? โ€‹

optional deathLootTableSeed?: number

Defined in: core/values/entities.generated.ts:852

Seed for generating the death loot table.

Inherited from โ€‹

BreedableFields.deathLootTableSeed


deathTime? โ€‹

optional deathTime?: number

Defined in: core/values/entities.generated.ts:779

Timer since it was marked as dead. Counts down to zero.

Inherited from โ€‹

BreedableFields.deathTime


dropChances? โ€‹

optional dropChances?: NbtInput

Defined in: core/values/entities.generated.ts:848

Chances of the mob dropping an equipment slot on death.

Inherited from โ€‹

BreedableFields.dropChances


equipment? โ€‹

optional equipment?: Partial<Record<"chest" | "saddle" | "mainhand" | "offhand" | "head" | "legs" | "feet" | "body", NbtInput | ItemValue>>

Defined in: core/values/entities.generated.ts:846

The equipment items of the mob, such as armor or weapons.

Inherited from โ€‹

BreedableFields.equipment


fallDistance? โ€‹

optional fallDistance?: number

Defined in: core/values/entities.generated.ts:31

How far the entity has fallen.

Inherited from โ€‹

BreedableFields.fallDistance


fallFlying? โ€‹

optional fallFlying?: boolean

Defined in: core/values/entities.generated.ts:781

Whether it will glide when it falls.

Inherited from โ€‹

BreedableFields.fallFlying


fire? โ€‹

optional fire?: number

Defined in: core/values/entities.generated.ts:33

Ticks of fire left, or if negative, ticks until the entity starts to burn.

Inherited from โ€‹

BreedableFields.fire


foodLevel? โ€‹

optional foodLevel?: number

Defined in: core/values/entities.generated.ts:1613

Determines whether the villager will be available to reproduce. When the value is 12 the villager can reproduce. After reproducing, the value is reset to 0. To increase this value villagers will pick up food that is in range. Foods: Potatoes, Carrots, & Beetroots increase the level by 1. Bread increases the level by 4.


forcedAge? โ€‹

optional forcedAge?: number

Defined in: core/values/entities.generated.ts:998

A value of age assigned to this mob when it grows up. Incremented when a baby mob is fed.

Inherited from โ€‹

BreedableFields.forcedAge


glowing? โ€‹

optional glowing?: boolean

Defined in: core/values/entities.generated.ts:61

Whether the entity should glow.

Inherited from โ€‹

BreedableFields.glowing


gossips? โ€‹

optional gossips?: readonly NbtInput[]

Defined in: core/values/entities.generated.ts:1615

Affects per-player reputation which affects trade offer pricing and iron golem behavior. Reputation is assembled through events the villager has witnessed (within 16 blocks) or heard about from other villagers through gossip. All reputation parts decay over time except major_positive which is only ever increased (when the villager is cured). Decay occurs every 24k ticks (20 minutes), tracked by LastGossipDecay. Once a reputation part decays to zero it is removed from the list.


handDropChances? โ€‹

optional handDropChances?: readonly number[]

Defined in: core/values/entities.generated.ts:836

Chance to drop the items it is holding, in [main hand, offhand]. 0.0 is hardcoded to be unaffected by enchantments. \ Values between 0.0 and 1.0 (inclusive) randomizes durability of the dropped item.

Inherited from โ€‹

BreedableFields.handDropChances


handItems? โ€‹

optional handItems?: readonly NbtInput[]

Defined in: core/values/entities.generated.ts:834

[main hand, offhand]

Inherited from โ€‹

BreedableFields.handItems


hasVisualFire? โ€‹

optional hasVisualFire?: boolean

Defined in: core/values/entities.generated.ts:37

Whether the entity has visual fire.

Inherited from โ€‹

BreedableFields.hasVisualFire


health? โ€‹

optional health?: number

Defined in: core/values/entities.generated.ts:771

Inherited from โ€‹

BreedableFields.health


homePos? โ€‹

optional homePos?: readonly number[]

Defined in: core/values/entities.generated.ts:866

This field will be discarded if home_radius is less than 0.

Inherited from โ€‹

BreedableFields.homePos


homeRadius? โ€‹

optional homeRadius?: number

Defined in: core/values/entities.generated.ts:864

Defaults to -1, which represents "no home".

Inherited from โ€‹

BreedableFields.homeRadius


hurtByTimestamp? โ€‹

optional hurtByTimestamp?: number

Defined in: core/values/entities.generated.ts:777

Ticks since it was last damaged, from its creation.

Inherited from โ€‹

BreedableFields.hurtByTimestamp


hurtTime? โ€‹

optional hurtTime?: number

Defined in: core/values/entities.generated.ts:775

Timer since it has been damaged. Counts down to zero.

Inherited from โ€‹

BreedableFields.hurtTime


inLove? โ€‹

optional inLove?: number

Defined in: core/values/entities.generated.ts:1012

Ticks until it stops searching for a mate.

Inherited from โ€‹

BreedableFields.inLove


inventory? โ€‹

optional inventory?: readonly NbtInput[]

Defined in: core/values/entities.generated.ts:1583

Slots from 0 to 7.

Inherited from โ€‹

VillagerBaseFields.inventory


invulnerable? โ€‹

optional invulnerable?: boolean

Defined in: core/values/entities.generated.ts:43

Whether the entity is immune to damage.

Inherited from โ€‹

BreedableFields.invulnerable


invulnerableTime? โ€‹

optional invulnerableTime?: number

Defined in: core/values/entities.generated.ts:45

Temporary immunity duration of the entity, in ticks. \ The entity is immune to damage if invulnerable_time > 0 or Invulnerable is true.

Inherited from โ€‹

BreedableFields.invulnerableTime


lastGossipDecay? โ€‹

optional lastGossipDecay?: number

Defined in: core/values/entities.generated.ts:1617

Last game-tick every gossip significance Value could have decayed. Once this reaches 24k (20 minutes) less than the current game tick a decay occurs again.


lastHurtByMob? โ€‹

optional lastHurtByMob?: readonly number[]

Defined in: core/values/entities.generated.ts:800

The UUID of the mob that last hurt this entity. Stored for 100 ticks.

Inherited from โ€‹

BreedableFields.lastHurtByMob


lastHurtByPlayer? โ€‹

optional lastHurtByPlayer?: readonly number[]

Defined in: core/values/entities.generated.ts:796

The UUID of the player that last hurt this entity. Stored for 100 ticks.

Inherited from โ€‹

BreedableFields.lastHurtByPlayer


lastHurtByPlayerMemoryTime? โ€‹

optional lastHurtByPlayerMemoryTime?: number

Defined in: core/values/entities.generated.ts:798

Amount of ticks that this entity will remember the player that last hurt this entity. Counts down from 100 to 0.

Inherited from โ€‹

BreedableFields.lastHurtByPlayerMemoryTime


lastRestock? โ€‹

optional lastRestock?: number

Defined in: core/values/entities.generated.ts:1619

Last game-tick it removed uses & updated demand of every trade offer by going to its job_site.


leash? โ€‹

optional leash?: NbtInput

Defined in: core/values/entities.generated.ts:862

What the leash is attached to.

Inherited from โ€‹

BreedableFields.leash


leftHanded? โ€‹

optional leftHanded?: boolean

Defined in: core/values/entities.generated.ts:858

Whether it is left handed.

Inherited from โ€‹

BreedableFields.leftHanded


locatorBarIcon? โ€‹

optional locatorBarIcon?: WaypointIconFields

Defined in: core/values/entities.generated.ts:803

Inherited from โ€‹

BreedableFields.locatorBarIcon


loveCause? โ€‹

optional loveCause?: readonly number[]

Defined in: core/values/entities.generated.ts:1018

Player that caused this mob to breed.

Inherited from โ€‹

BreedableFields.loveCause


loveCauseLeast? โ€‹

optional loveCauseLeast?: number

Defined in: core/values/entities.generated.ts:1014

Lower bits of the UUID of the player that caused this mob to breed.

Inherited from โ€‹

BreedableFields.loveCauseLeast


loveCauseMost? โ€‹

optional loveCauseMost?: number

Defined in: core/values/entities.generated.ts:1016

Upper bits of the UUID of the player that caused this mob to breed.

Inherited from โ€‹

BreedableFields.loveCauseMost


motion? โ€‹

optional motion?: readonly number[]

Defined in: core/values/entities.generated.ts:27

Inherited from โ€‹

BreedableFields.motion


noAI? โ€‹

optional noAI?: boolean

Defined in: core/values/entities.generated.ts:860

Whether it should have an AI.

Inherited from โ€‹

BreedableFields.noAI


noGravity? โ€‹

optional noGravity?: boolean

Defined in: core/values/entities.generated.ts:41

Whether the entity should be effected by gravity.

Inherited from โ€‹

BreedableFields.noGravity


offers? โ€‹

optional offers?: OffersFields

Defined in: core/values/entities.generated.ts:1585

Trade offers it has.

Inherited from โ€‹

VillagerBaseFields.offers


onGround? โ€‹

optional onGround?: boolean

Defined in: core/values/entities.generated.ts:39

Whether the entity is on the ground.

Inherited from โ€‹

BreedableFields.onGround


passengers? โ€‹

optional passengers?: readonly NbtInput[]

Defined in: core/values/entities.generated.ts:59

Passengers on the entity.

Inherited from โ€‹

BreedableFields.passengers


persistenceRequired? โ€‹

optional persistenceRequired?: boolean

Defined in: core/values/entities.generated.ts:856

Whether it should not despawn naturally.

Inherited from โ€‹

BreedableFields.persistenceRequired


portalCooldown? โ€‹

optional portalCooldown?: number

Defined in: core/values/entities.generated.ts:47

How long until the entity can go through a nether portal.

Inherited from โ€‹

BreedableFields.portalCooldown


pos? โ€‹

optional pos?: readonly number[]

Defined in: core/values/entities.generated.ts:26

Inherited from โ€‹

BreedableFields.pos


restocksToday? โ€‹

optional restocksToday?: number

Defined in: core/values/entities.generated.ts:1621

Times it has reset the uses & updated demand of every trade offer by going to its job_site in the past 12k ticks (10 minutes). Time is tracked by LastRestock. When two restocks have occurred, another restock (and reset of this value to 0) will only occur after 10 minutes.


rotation? โ€‹

optional rotation?: readonly number[]

Defined in: core/values/entities.generated.ts:29

Rotation in [y-rotation, x-rotation]

Inherited from โ€‹

BreedableFields.rotation


silent? โ€‹

optional silent?: boolean

Defined in: core/values/entities.generated.ts:57

Whether the entity should make any sound.

Inherited from โ€‹

BreedableFields.silent


sleepingPos? โ€‹

optional sleepingPos?: readonly number[]

Defined in: core/values/entities.generated.ts:788

Inherited from โ€‹

BreedableFields.sleepingPos


sleepingX? โ€‹

optional sleepingX?: number

Defined in: core/values/entities.generated.ts:783

X coordinate of where it is sleeping.

Inherited from โ€‹

BreedableFields.sleepingX


sleepingY? โ€‹

optional sleepingY?: number

Defined in: core/values/entities.generated.ts:785

Y coordinate of where it is sleeping.

Inherited from โ€‹

BreedableFields.sleepingY


sleepingZ? โ€‹

optional sleepingZ?: number

Defined in: core/values/entities.generated.ts:787

Z coordinate of where it is sleeping.

Inherited from โ€‹

BreedableFields.sleepingZ


tags? โ€‹

optional tags?: readonly string[]

Defined in: core/values/entities.generated.ts:63

Labelling tags on the entity.

Inherited from โ€‹

BreedableFields.tags


team? โ€‹

optional team?: string

Defined in: core/values/entities.generated.ts:794

Team to join when it is spawned.

Inherited from โ€‹

BreedableFields.team


ticksFrozen? โ€‹

optional ticksFrozen?: number

Defined in: core/values/entities.generated.ts:69

Ticks that this entity has been freezing. Although this tag is defined for all entities, it is actually only used by mobs that are not in the freeze_immune_entity_types entity type tag. This increases by one every tick the entity is in powdered snow, and decreases by two when it's out of it.

Inherited from โ€‹

BreedableFields.ticksFrozen


ticksSinceLastHurtByMob? โ€‹

optional ticksSinceLastHurtByMob?: number

Defined in: core/values/entities.generated.ts:802

Amount of ticks since this entity was last hurt by a mob. Counts up from 0 to 100.

Inherited from โ€‹

BreedableFields.ticksSinceLastHurtByMob


uuid? โ€‹

optional uuid?: readonly number[]

Defined in: core/values/entities.generated.ts:52

Inherited from โ€‹

BreedableFields.uuid


uuidLeast? โ€‹

optional uuidLeast?: number

Defined in: core/values/entities.generated.ts:51

Lower bits of the entity's UUID.

Inherited from โ€‹

BreedableFields.uuidLeast


uuidMost? โ€‹

optional uuidMost?: number

Defined in: core/values/entities.generated.ts:49

Upper bits of the entity's UUID.

Inherited from โ€‹

BreedableFields.uuidMost


villagerData? โ€‹

optional villagerData?: VillagerDataFields

Defined in: core/values/entities.generated.ts:1610


villagerDataFinalized? โ€‹

optional villagerDataFinalized?: boolean

Defined in: core/values/entities.generated.ts:1611


xp? โ€‹

optional xp?: number

Defined in: core/values/entities.generated.ts:1623

XP it has, increases when trades are used by each trade offer's xp value. After 250 the XP will continue to increase, but will do nothing more. Trade tiers: - 0..9 - Tier 1: Novice - 10..69 - Tier 2: Apprentice - 70..149 - Tier 3: Journeyman - 150..249 - Tier 4: Expert - 250.. - Tier 5: Master

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.