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

helix / Path

Variable: Path โ€‹

const Path: 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 โ€‹

readonly Block: object

Block.CustomName โ€‹

readonly CustomName: NbtPathValue = "CustomName"

Block.id โ€‹

readonly id: NbtPathValue = "id"

Block.Items โ€‹

readonly Items: NbtPathValue = "Items"

Block.Lock โ€‹

readonly Lock: NbtPathValue = "Lock"

Block.LootTable โ€‹

readonly LootTable: NbtPathValue = "LootTable"

Block.LootTableSeed โ€‹

readonly LootTableSeed: NbtPathValue = "LootTableSeed"

Entity โ€‹

readonly Entity: object

Entity.Air โ€‹

readonly Air: NbtPathValue = "Air"

Entity.ArmorItems โ€‹

readonly ArmorItems: NbtPathValue = "ArmorItems"

Entity.Attributes โ€‹

readonly Attributes: NbtPathValue = "Attributes"

Entity.CustomName โ€‹

readonly CustomName: NbtPathValue = "CustomName"

Entity.CustomNameVisible โ€‹

readonly CustomNameVisible: NbtPathValue = "CustomNameVisible"

Entity.DeathTime โ€‹

readonly DeathTime: NbtPathValue = "DeathTime"

Entity.FallDistance โ€‹

readonly FallDistance: NbtPathValue = "FallDistance"

Entity.Fire โ€‹

readonly Fire: NbtPathValue = "Fire"

Entity.Glowing โ€‹

readonly Glowing: NbtPathValue = "Glowing"

Entity.HandItems โ€‹

readonly HandItems: NbtPathValue = "HandItems"

Entity.Health โ€‹

readonly Health: NbtPathValue = "Health"

Entity.HurtTime โ€‹

readonly HurtTime: NbtPathValue = "HurtTime"

Entity.Invulnerable โ€‹

readonly Invulnerable: NbtPathValue = "Invulnerable"

Entity.Motion โ€‹

readonly Motion: NbtPathValue = "Motion"

Entity.NoGravity โ€‹

readonly NoGravity: NbtPathValue = "NoGravity"

Entity.OnGround โ€‹

readonly OnGround: NbtPathValue = "OnGround"

Entity.PortalCooldown โ€‹

readonly PortalCooldown: NbtPathValue = "PortalCooldown"

Entity.Pos โ€‹

readonly Pos: NbtPathValue = "Pos"

Entity.Rotation โ€‹

readonly Rotation: NbtPathValue = "Rotation"

Entity.Silent โ€‹

readonly Silent: NbtPathValue = "Silent"

Entity.Tags โ€‹

readonly Tags: NbtPathValue = "Tags"

Entity.UUID โ€‹

readonly UUID: NbtPathValue = "UUID"

Player โ€‹

readonly Player: object

Player.abilities โ€‹

readonly abilities: NbtPathValue = "abilities"

Player.EnderItems โ€‹

readonly EnderItems: NbtPathValue = "EnderItems"

Player.foodLevel โ€‹

readonly foodLevel: NbtPathValue = "foodLevel"

Player.foodSaturationLevel โ€‹

readonly foodSaturationLevel: 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 โ€‹

EquipmentSlot

Returns โ€‹

NbtPathValue

Player.Inventory โ€‹

readonly Inventory: NbtPathValue = "Inventory"

Player.playerGameType โ€‹

readonly playerGameType: NbtPathValue = "playerGameType"

Player.Score โ€‹

readonly Score: NbtPathValue = "Score"

Player.SelectedItem โ€‹

readonly SelectedItem: NbtPathValue = "SelectedItem"

Player.SelectedItemSlot โ€‹

readonly SelectedItemSlot: NbtPathValue = "SelectedItemSlot"

Player.SpawnX โ€‹

readonly SpawnX: NbtPathValue = "SpawnX"

Player.SpawnY โ€‹

readonly SpawnY: NbtPathValue = "SpawnY"

Player.SpawnZ โ€‹

readonly SpawnZ: NbtPathValue = "SpawnZ"

Player.XpLevel โ€‹

readonly XpLevel: NbtPathValue = "XpLevel"

Player.XpP โ€‹

readonly XpP: NbtPathValue = "XpP"

Player.XpTotal โ€‹

readonly XpTotal: NbtPathValue = "XpTotal"

Projectile โ€‹

readonly Projectile: object

Projectile.item โ€‹

readonly item: NbtPathValue = "item"

The stack it was fired as, and the one picked up.

Projectile.Owner โ€‹

readonly Owner: NbtPathValue = "Owner"

Projectile.weapon โ€‹

readonly weapon: NbtPathValue = "weapon"

The weapon that fired it; damage enchantments read it.

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