Appearance
helix / VillagerFields
Interface: VillagerFields โ
Defined in: core/values/entities.generated.ts:1609
minecraft:villager
Extends โ
Properties โ
absorptionAmount? โ
optionalabsorptionAmount?:number
Defined in: core/values/entities.generated.ts:773
How much absorption health it has.
Inherited from โ
BreedableFields.absorptionAmount
activeEffects? โ
optionalactiveEffects?: readonlyNbtInput[]
Defined in: core/values/entities.generated.ts:792
Active potion effects
Inherited from โ
age? โ
optionalage?: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 โ
ageLocked? โ
optionalageLocked?:boolean
Defined in: core/values/entities.generated.ts:999
Inherited from โ
air? โ
optionalair?:number
Defined in: core/values/entities.generated.ts:35
Ticks of air left.
Inherited from โ
armorDropChances? โ
optionalarmorDropChances?: readonlynumber[]
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? โ
optionalarmorItems?: readonlyNbtInput[]
Defined in: core/values/entities.generated.ts:838
[feet, legs, body, head]
Inherited from โ
attributes? โ
optionalattributes?: readonlyNbtInput[]
Defined in: core/values/entities.generated.ts:790
Inherited from โ
bodyArmorDropChance? โ
optionalbodyArmorDropChance?:number
Defined in: core/values/entities.generated.ts:844
Chance to drop the item it is wearing.
Inherited from โ
BreedableFields.bodyArmorDropChance
bodyArmorItem? โ
optionalbodyArmorItem?:NbtInput
Defined in: core/values/entities.generated.ts:842
Used for wolf armor & llama carpet decoration.
Inherited from โ
brain? โ
optionalbrain?:NbtInput
Defined in: core/values/entities.generated.ts:789
Inherited from โ
canPickUpLoot? โ
optionalcanPickUpLoot?:boolean
Defined in: core/values/entities.generated.ts:854
Whether it can pick up loot.
Inherited from โ
currentExplosionImpactPos? โ
optionalcurrentExplosionImpactPos?: readonlynumber[]
Defined in: core/values/entities.generated.ts:748
Added mid-air after being hit by an explosion.
Inherited from โ
BreedableFields.currentExplosionImpactPos
currentImpulseContextResetGraceTime? โ
optionalcurrentImpulseContextResetGraceTime?:number
Defined in: core/values/entities.generated.ts:750
Used by fall damage logic. Decreases by 1 every tick.
Inherited from โ
BreedableFields.currentImpulseContextResetGraceTime
customName? โ
optionalcustomName?:TextComponent
Defined in: core/values/entities.generated.ts:53
Inherited from โ
customNameVisible? โ
optionalcustomNameVisible?:boolean
Defined in: core/values/entities.generated.ts:55
Whether the custom name should always be visible.
Inherited from โ
BreedableFields.customNameVisible
data? โ
optionaldata?:NbtInput
Defined in: core/values/entities.generated.ts:67
Any stored data
Inherited from โ
deathLootTable? โ
optionaldeathLootTable?:LootTable
Defined in: core/values/entities.generated.ts:850
Loot table that is dropped when the mob dies.
Inherited from โ
BreedableFields.deathLootTable
deathLootTableSeed? โ
optionaldeathLootTableSeed?:number
Defined in: core/values/entities.generated.ts:852
Seed for generating the death loot table.
Inherited from โ
BreedableFields.deathLootTableSeed
deathTime? โ
optionaldeathTime?:number
Defined in: core/values/entities.generated.ts:779
Timer since it was marked as dead. Counts down to zero.
Inherited from โ
dropChances? โ
optionaldropChances?:NbtInput
Defined in: core/values/entities.generated.ts:848
Chances of the mob dropping an equipment slot on death.
Inherited from โ
equipment? โ
optionalequipment?: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 โ
fallDistance? โ
optionalfallDistance?:number
Defined in: core/values/entities.generated.ts:31
How far the entity has fallen.
Inherited from โ
fallFlying? โ
optionalfallFlying?:boolean
Defined in: core/values/entities.generated.ts:781
Whether it will glide when it falls.
Inherited from โ
fire? โ
optionalfire?: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 โ
foodLevel? โ
optionalfoodLevel?: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? โ
optionalforcedAge?: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 โ
glowing? โ
optionalglowing?:boolean
Defined in: core/values/entities.generated.ts:61
Whether the entity should glow.
Inherited from โ
gossips? โ
optionalgossips?: readonlyNbtInput[]
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? โ
optionalhandDropChances?: readonlynumber[]
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? โ
optionalhandItems?: readonlyNbtInput[]
Defined in: core/values/entities.generated.ts:834
[main hand, offhand]
Inherited from โ
hasVisualFire? โ
optionalhasVisualFire?:boolean
Defined in: core/values/entities.generated.ts:37
Whether the entity has visual fire.
Inherited from โ
health? โ
optionalhealth?:number
Defined in: core/values/entities.generated.ts:771
Inherited from โ
homePos? โ
optionalhomePos?: readonlynumber[]
Defined in: core/values/entities.generated.ts:866
This field will be discarded if home_radius is less than 0.
Inherited from โ
homeRadius? โ
optionalhomeRadius?:number
Defined in: core/values/entities.generated.ts:864
Defaults to -1, which represents "no home".
Inherited from โ
hurtByTimestamp? โ
optionalhurtByTimestamp?:number
Defined in: core/values/entities.generated.ts:777
Ticks since it was last damaged, from its creation.
Inherited from โ
BreedableFields.hurtByTimestamp
hurtTime? โ
optionalhurtTime?:number
Defined in: core/values/entities.generated.ts:775
Timer since it has been damaged. Counts down to zero.
Inherited from โ
inLove? โ
optionalinLove?:number
Defined in: core/values/entities.generated.ts:1012
Ticks until it stops searching for a mate.
Inherited from โ
inventory? โ
optionalinventory?: readonlyNbtInput[]
Defined in: core/values/entities.generated.ts:1583
Slots from 0 to 7.
Inherited from โ
invulnerable? โ
optionalinvulnerable?:boolean
Defined in: core/values/entities.generated.ts:43
Whether the entity is immune to damage.
Inherited from โ
invulnerableTime? โ
optionalinvulnerableTime?: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? โ
optionallastGossipDecay?: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? โ
optionallastHurtByMob?: readonlynumber[]
Defined in: core/values/entities.generated.ts:800
The UUID of the mob that last hurt this entity. Stored for 100 ticks.
Inherited from โ
lastHurtByPlayer? โ
optionallastHurtByPlayer?: readonlynumber[]
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? โ
optionallastHurtByPlayerMemoryTime?: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? โ
optionallastRestock?: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? โ
optionalleash?:NbtInput
Defined in: core/values/entities.generated.ts:862
What the leash is attached to.
Inherited from โ
leftHanded? โ
optionalleftHanded?:boolean
Defined in: core/values/entities.generated.ts:858
Whether it is left handed.
Inherited from โ
locatorBarIcon? โ
optionallocatorBarIcon?:WaypointIconFields
Defined in: core/values/entities.generated.ts:803
Inherited from โ
BreedableFields.locatorBarIcon
loveCause? โ
optionalloveCause?: readonlynumber[]
Defined in: core/values/entities.generated.ts:1018
Player that caused this mob to breed.
Inherited from โ
loveCauseLeast? โ
optionalloveCauseLeast?: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? โ
optionalloveCauseMost?: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 โ
motion? โ
optionalmotion?: readonlynumber[]
Defined in: core/values/entities.generated.ts:27
Inherited from โ
noAI? โ
optionalnoAI?:boolean
Defined in: core/values/entities.generated.ts:860
Whether it should have an AI.
Inherited from โ
noGravity? โ
optionalnoGravity?:boolean
Defined in: core/values/entities.generated.ts:41
Whether the entity should be effected by gravity.
Inherited from โ
offers? โ
optionaloffers?:OffersFields
Defined in: core/values/entities.generated.ts:1585
Trade offers it has.
Inherited from โ
onGround? โ
optionalonGround?:boolean
Defined in: core/values/entities.generated.ts:39
Whether the entity is on the ground.
Inherited from โ
passengers? โ
optionalpassengers?: readonlyNbtInput[]
Defined in: core/values/entities.generated.ts:59
Passengers on the entity.
Inherited from โ
persistenceRequired? โ
optionalpersistenceRequired?:boolean
Defined in: core/values/entities.generated.ts:856
Whether it should not despawn naturally.
Inherited from โ
BreedableFields.persistenceRequired
portalCooldown? โ
optionalportalCooldown?: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? โ
optionalpos?: readonlynumber[]
Defined in: core/values/entities.generated.ts:26
Inherited from โ
restocksToday? โ
optionalrestocksToday?: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? โ
optionalrotation?: readonlynumber[]
Defined in: core/values/entities.generated.ts:29
Rotation in [y-rotation, x-rotation]
Inherited from โ
silent? โ
optionalsilent?:boolean
Defined in: core/values/entities.generated.ts:57
Whether the entity should make any sound.
Inherited from โ
sleepingPos? โ
optionalsleepingPos?: readonlynumber[]
Defined in: core/values/entities.generated.ts:788
Inherited from โ
sleepingX? โ
optionalsleepingX?:number
Defined in: core/values/entities.generated.ts:783
X coordinate of where it is sleeping.
Inherited from โ
sleepingY? โ
optionalsleepingY?:number
Defined in: core/values/entities.generated.ts:785
Y coordinate of where it is sleeping.
Inherited from โ
sleepingZ? โ
optionalsleepingZ?:number
Defined in: core/values/entities.generated.ts:787
Z coordinate of where it is sleeping.
Inherited from โ
tags? โ
optionaltags?: readonlystring[]
Defined in: core/values/entities.generated.ts:63
Labelling tags on the entity.
Inherited from โ
team? โ
optionalteam?:string
Defined in: core/values/entities.generated.ts:794
Team to join when it is spawned.
Inherited from โ
ticksFrozen? โ
optionalticksFrozen?: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 โ
ticksSinceLastHurtByMob? โ
optionalticksSinceLastHurtByMob?: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? โ
optionaluuid?: readonlynumber[]
Defined in: core/values/entities.generated.ts:52
Inherited from โ
uuidLeast? โ
optionaluuidLeast?:number
Defined in: core/values/entities.generated.ts:51
Lower bits of the entity's UUID.
Inherited from โ
uuidMost? โ
optionaluuidMost?:number
Defined in: core/values/entities.generated.ts:49
Upper bits of the entity's UUID.
Inherited from โ
villagerData? โ
optionalvillagerData?:VillagerDataFields
Defined in: core/values/entities.generated.ts:1610
villagerDataFinalized? โ
optionalvillagerDataFinalized?:boolean
Defined in: core/values/entities.generated.ts:1611
xp? โ
optionalxp?: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