Player

Player

class

Local player controller

Functions

Player.get()

The local player, nil outside a game session

returns Player Local player

Player:hotbar_has(item)

Whether an item stands in a hotbar slot of any modifier row

item StaticItem Item to look for

returns boolean True when a slot holds the item

Player:cell()

Block cell the player is in

returns Vec3i Player position in block cells

Inherited from Actor (2)
Inherited from Object (5)