Appearance
helix / PlayerFields
Interface: PlayerFields โ
Defined in: core/values/entities.generated.ts:2240
minecraft:player
Extends โ
Omit<LivingFields,"customName"|"customNameVisible">.FallDamageLogicDataFields
Properties โ
abilities? โ
optionalabilities?:AbilitiesFields
Defined in: core/values/entities.generated.ts:2292
Abilities of the player.
absorptionAmount? โ
optionalabsorptionAmount?:number
Defined in: core/values/entities.generated.ts:773
How much absorption health it has.
Inherited from โ
activeEffects? โ
optionalactiveEffects?: readonlyNbtInput[]
Defined in: core/values/entities.generated.ts:792
Active potion effects
Inherited from โ
air? โ
optionalair?:number
Defined in: core/values/entities.generated.ts:35
Ticks of air left.
Inherited from โ
attributes? โ
optionalattributes?: readonlyNbtInput[]
Defined in: core/values/entities.generated.ts:790
Inherited from โ
brain? โ
optionalbrain?:NbtInput
Defined in: core/values/entities.generated.ts:789
Inherited from โ
currentExplosionImpactPos? โ
optionalcurrentExplosionImpactPos?: readonlynumber[]
Defined in: core/values/entities.generated.ts:748
Added mid-air after being hit by an explosion.
Inherited from โ
FallDamageLogicDataFields.currentExplosionImpactPos
currentImpulseContextResetGraceTime? โ
optionalcurrentImpulseContextResetGraceTime?:number
Defined in: core/values/entities.generated.ts:750
Used by fall damage logic. Decreases by 1 every tick.
Inherited from โ
FallDamageLogicDataFields.currentImpulseContextResetGraceTime
customName? โ
optionalcustomName?:NbtInput
Defined in: core/values/entities.generated.ts:2317
customNameVisible? โ
optionalcustomNameVisible?:NbtInput
Defined in: core/values/entities.generated.ts:2318
data? โ
optionaldata?:NbtInput
Defined in: core/values/entities.generated.ts:67
Any stored data
Inherited from โ
dataVersion? โ
optionaldataVersion?:number
Defined in: core/values/entities.generated.ts:2242
Version of the player NBT structure
deathTime? โ
optionaldeathTime?:number
Defined in: core/values/entities.generated.ts:779
Timer since it was marked as dead. Counts down to zero.
Inherited from โ
dimension? โ
optionaldimension?:Dimension
Defined in: core/values/entities.generated.ts:2243
enderItems? โ
optionalenderItems?: readonlyNbtInput[]
Defined in: core/values/entities.generated.ts:2290
The player's enderchest inventory.
enderPearls? โ
optionalenderPearls?: readonlyNbtInput[]
Defined in: core/values/entities.generated.ts:2311
Ender pearls thrown by this player.
enteredNetherPos? โ
optionalenteredNetherPos?: readonlynumber[]
Defined in: core/values/entities.generated.ts:2296
Position that the player entered the nether at.
enteredNetherPosition? โ
optionalenteredNetherPosition?:EnteredNetherPositionFields
Defined in: core/values/entities.generated.ts:2294
Position that the player entered the nether at.
equipment? โ
optionalequipment?:Partial<Record<"chest"|"saddle"|"mainhand"|"offhand"|"head"|"legs"|"feet"|"body",NbtInput|ItemValue>>
Defined in: core/values/entities.generated.ts:2256
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 โ
foodExhaustionLevel? โ
optionalfoodExhaustionLevel?:number
Defined in: core/values/entities.generated.ts:2275
Rate at which the foodSaturationLevel depletes.
foodLevel? โ
optionalfoodLevel?:number
Defined in: core/values/entities.generated.ts:2273
Level of the hunger bar.
foodSaturationLevel? โ
optionalfoodSaturationLevel?:number
Defined in: core/values/entities.generated.ts:2277
Rate at which the hunger bar depletes.
foodTickTimer? โ
optionalfoodTickTimer?:number
Defined in: core/values/entities.generated.ts:2279
Ticks until the player heals or takes starvation damage.
glowing? โ
optionalglowing?:boolean
Defined in: core/values/entities.generated.ts:61
Whether the entity should glow.
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 โ
hurtByTimestamp? โ
optionalhurtByTimestamp?:number
Defined in: core/values/entities.generated.ts:777
Ticks since it was last damaged, from its creation.
Inherited from โ
hurtTime? โ
optionalhurtTime?:number
Defined in: core/values/entities.generated.ts:775
Timer since it has been damaged. Counts down to zero.
Inherited from โ
ignoreFallDamageFromCurrentExplosion? โ
optionalignoreFallDamageFromCurrentExplosion?:boolean
Defined in: core/values/entities.generated.ts:2314
Used by the game for wind charges.
inventory? โ
optionalinventory?: readonlyNbtInput[]
Defined in: core/values/entities.generated.ts:2288
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 โ
lastDeathLocation? โ
optionallastDeathLocation?:NbtInput
Defined in: core/values/entities.generated.ts:2245
Location of the player's last death.
lastExplosionImpactPos? โ
optionallastExplosionImpactPos?: readonlynumber[]
Defined in: core/values/entities.generated.ts:2315
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 โ
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 โ
LivingFields.lastHurtByPlayerMemoryTime
locatorBarIcon? โ
optionallocatorBarIcon?:WaypointIconFields
Defined in: core/values/entities.generated.ts:803
Inherited from โ
motion? โ
optionalmotion?: readonlynumber[]
Defined in: core/values/entities.generated.ts:27
Inherited from โ
noGravity? โ
optionalnoGravity?:boolean
Defined in: core/values/entities.generated.ts:41
Whether the entity should be effected by gravity.
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 โ
playerGameType? โ
optionalplayerGameType?:NbtInput
Defined in: core/values/entities.generated.ts:2247
Game mode that the player is in.
portalCooldown? โ
optionalportalCooldown?:number
Defined in: core/values/entities.generated.ts:47
How long until the entity can go through a nether portal.
Inherited from โ
pos? โ
optionalpos?: readonlynumber[]
Defined in: core/values/entities.generated.ts:26
Inherited from โ
postEffects? โ
optionalpostEffects?: readonlystring[]
Defined in: core/values/entities.generated.ts:2312
previousPlayerGameType? โ
optionalpreviousPlayerGameType?:NbtInput
Defined in: core/values/entities.generated.ts:2249
Previous game mode that the player was in.
raidOmenPosition? โ
optionalraidOmenPosition?: readonlynumber[]
Defined in: core/values/entities.generated.ts:2297
recipeBook? โ
optionalrecipeBook?:RecipeBookFields
Defined in: core/values/entities.generated.ts:2307
Recipes that the player has.
respawn? โ
optionalrespawn?:RespawnFields
Defined in: core/values/entities.generated.ts:2269
rootVehicle? โ
optionalrootVehicle?:RootVehicleFields
Defined in: core/values/entities.generated.ts:2299
Entity that the player is riding.
rotation? โ
optionalrotation?: readonlynumber[]
Defined in: core/values/entities.generated.ts:29
Rotation in [y-rotation, x-rotation]
Inherited from โ
score? โ
optionalscore?:number
Defined in: core/values/entities.generated.ts:2251
Score to display upon death.
seenCredits? โ
optionalseenCredits?:boolean
Defined in: core/values/entities.generated.ts:2305
Whether the player has gone to the overworld after defeating the Ender Dragon.
selectedItem? โ
optionalselectedItem?:NbtInput
Defined in: core/values/entities.generated.ts:2255
Item in the hotbar slot the player has selected.
selectedItemSlot? โ
optionalselectedItemSlot?:number
Defined in: core/values/entities.generated.ts:2253
Hotbar slot the player has selected.
shoulderEntityLeft? โ
optionalshoulderEntityLeft?:AnyEntityFields
Defined in: core/values/entities.generated.ts:2301
Entity that is on the player's left shoulder.
shoulderEntityRight? โ
optionalshoulderEntityRight?:AnyEntityFields
Defined in: core/values/entities.generated.ts:2303
Entity that is on the player's right shoulder.
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 โ
sleepTimer? โ
optionalsleepTimer?:number
Defined in: core/values/entities.generated.ts:2271
Ticks the player has been in bed.
spawnAngle? โ
optionalspawnAngle?:number
Defined in: core/values/entities.generated.ts:2260
The Y-rotation of the player's respawn point.
spawnDimension? โ
optionalspawnDimension?:Dimension
Defined in: core/values/entities.generated.ts:2258
Dimension of the player's respawn point.
spawnExtraParticlesOnFall? โ
optionalspawnExtraParticlesOnFall?:boolean
Defined in: core/values/entities.generated.ts:2316
spawnForced? โ
optionalspawnForced?:boolean
Defined in: core/values/entities.generated.ts:2268
Whether the player must spawn at the spawn point.
spawnX? โ
optionalspawnX?:number
Defined in: core/values/entities.generated.ts:2262
X coordinate of the player's spawn point.
spawnY? โ
optionalspawnY?:number
Defined in: core/values/entities.generated.ts:2264
Y coordinate of the player's spawn point.
spawnZ? โ
optionalspawnZ?:number
Defined in: core/values/entities.generated.ts:2266
Z coordinate of the player's spawn point.
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 โ
LivingFields.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 โ
wardenSpawnTracker? โ
optionalwardenSpawnTracker?:WardenSpawnTrackerFields
Defined in: core/values/entities.generated.ts:2309
Tracking the warden spawning process for this player.
xpLevel? โ
optionalxpLevel?:number
Defined in: core/values/entities.generated.ts:2281
Number of experience levels the player has.
xpP? โ
optionalxpP?:number
Defined in: core/values/entities.generated.ts:2283
Percentage the experience bar is filled up.
xpSeed? โ
optionalxpSeed?:number
Defined in: core/values/entities.generated.ts:2287
Seed for enchantments.
xpTotal? โ
optionalxpTotal?:number
Defined in: core/values/entities.generated.ts:2285
Total experience the player has.