Appearance
helix / Path
Variable: Path โ
constPath:object
Defined in: core/values/paths.ts:97
Common NBT paths by holder: Path.Entity.Health, Path.Player.SelectedItem, Path.Block.Items.
Type Declaration โ
Block โ
readonlyBlock:object
Block.CustomName โ
readonlyCustomName:NbtPathValue="CustomName"
Block.id โ
readonlyid:NbtPathValue="id"
Block.Items โ
readonlyItems:NbtPathValue="Items"
Block.Lock โ
readonlyLock:NbtPathValue="Lock"
Block.LootTable โ
readonlyLootTable:NbtPathValue="LootTable"
Block.LootTableSeed โ
readonlyLootTableSeed:NbtPathValue="LootTableSeed"
Entity โ
readonlyEntity:object
Entity.Air โ
readonlyAir:NbtPathValue="Air"
Entity.ArmorItems โ
readonlyArmorItems:NbtPathValue="ArmorItems"
Entity.Attributes โ
readonlyAttributes:NbtPathValue="Attributes"
Entity.CustomName โ
readonlyCustomName:NbtPathValue="CustomName"
Entity.CustomNameVisible โ
readonlyCustomNameVisible:NbtPathValue="CustomNameVisible"
Entity.DeathTime โ
readonlyDeathTime:NbtPathValue="DeathTime"
Entity.FallDistance โ
readonlyFallDistance:NbtPathValue="FallDistance"
Entity.Fire โ
readonlyFire:NbtPathValue="Fire"
Entity.Glowing โ
readonlyGlowing:NbtPathValue="Glowing"
Entity.HandItems โ
readonlyHandItems:NbtPathValue="HandItems"
Entity.Health โ
readonlyHealth:NbtPathValue="Health"
Entity.HurtTime โ
readonlyHurtTime:NbtPathValue="HurtTime"
Entity.Invulnerable โ
readonlyInvulnerable:NbtPathValue="Invulnerable"
Entity.Motion โ
readonlyMotion:NbtPathValue="Motion"
Entity.NoGravity โ
readonlyNoGravity:NbtPathValue="NoGravity"
Entity.OnGround โ
readonlyOnGround:NbtPathValue="OnGround"
Entity.PortalCooldown โ
readonlyPortalCooldown:NbtPathValue="PortalCooldown"
Entity.Pos โ
readonlyPos:NbtPathValue="Pos"
Entity.Rotation โ
readonlyRotation:NbtPathValue="Rotation"
Entity.Silent โ
readonlySilent:NbtPathValue="Silent"
Entity.Tags โ
readonlyTags:NbtPathValue="Tags"
Entity.UUID โ
readonlyUUID:NbtPathValue="UUID"
Player โ
readonlyPlayer:object
Player.abilities โ
readonlyabilities:NbtPathValue="abilities"
Player.EnderItems โ
readonlyEnderItems:NbtPathValue="EnderItems"
Player.foodLevel โ
readonlyfoodLevel:NbtPathValue="foodLevel"
Player.foodSaturationLevel โ
readonlyfoodSaturationLevel:NbtPathValue="foodSaturationLevel"
Player.held โ
held: (
slot) =>NbtPathValue
A player's item in slot (1.21.5+): SelectedItem for the main hand, equipment.<slot> otherwise. Path.Player.held(Slot.OFFHAND).child("components") reads the off-hand item's components.
Parameters โ
slot โ
Returns โ
Player.Inventory โ
readonlyInventory:NbtPathValue="Inventory"
Player.playerGameType โ
readonlyplayerGameType:NbtPathValue="playerGameType"
Player.Score โ
readonlyScore:NbtPathValue="Score"
Player.SelectedItem โ
readonlySelectedItem:NbtPathValue="SelectedItem"
Player.SelectedItemSlot โ
readonlySelectedItemSlot:NbtPathValue="SelectedItemSlot"
Player.SpawnX โ
readonlySpawnX:NbtPathValue="SpawnX"
Player.SpawnY โ
readonlySpawnY:NbtPathValue="SpawnY"
Player.SpawnZ โ
readonlySpawnZ:NbtPathValue="SpawnZ"
Player.XpLevel โ
readonlyXpLevel:NbtPathValue="XpLevel"
Player.XpP โ
readonlyXpP:NbtPathValue="XpP"
Player.XpTotal โ
readonlyXpTotal:NbtPathValue="XpTotal"
Projectile โ
readonlyProjectile:object
Projectile.item โ
readonlyitem:NbtPathValue="item"
The stack it was fired as, and the one picked up.
Projectile.Owner โ
readonlyOwner:NbtPathValue="Owner"
Projectile.weapon โ
readonlyweapon:NbtPathValue="weapon"
The weapon that fired it; damage enchantments read it.