Preparing search index...
The search index is not available DatapackJs
Properties
inventory
inventory
: { clear
: ( ( item
?: string | gameTag , max
?: number ) => string ) ; give
: ( ( item
: string , count
?: number , itemsData
?: NBTData ) => string ) ; place
: ( ( slot
: number , item
: string , count
?: number ) => string ) } = ...
Type declaration
clear: ( ( item?: string | gameTag , max?: number ) => string )
( item?: string | gameTag , max?: number ) : string
Parameters
Optional
item: string | gameTag
Optional
max: number
Returns string
give: ( ( item: string , count?: number , itemsData?: NBTData ) => string )
( item: string , count?: number , itemsData?: NBTData ) : string
Parameters
item: string
Optional
count: number
Optional
itemsData: NBTData
Returns string
place: ( ( slot: number , item: string , count?: number ) => string )
( slot: number , item: string , count?: number ) : string
Parameters
slot: number
item: string
Optional
count: number
Returns string
nbt
nbt
: { get
: ( ( path
?: NBTPath , scale
?: number ) => string ) ; set
: ( ( value
: string | number | NBTData , path
?: NBTPath ) => string ) ; store
: ( ( path
: NBTPath , type
: "success" | "result" , scale
: number , from
: string ) => string ) } = ...
Type declaration
get: ( ( path?: NBTPath , scale?: number ) => string )
( path?: NBTPath , scale?: number ) : string
Parameters
Optional
path: NBTPath
Optional
scale: number
Returns string
set: ( ( value: string | number | NBTData , path?: NBTPath ) => string )
( value: string | number | NBTData , path?: NBTPath ) : string
Returns string
store: ( ( path: NBTPath , type: "success" | "result" , scale: number , from: string ) => string )
( path: NBTPath , type: "success" | "result" , scale: number , from: string ) : string
Parameters
type: "success" | "result"
scale: number
from: string
Returns string
tags
tags
: { add
: ( ( ... names
: string [] ) => Commands ) ; remove
: ( ( ... names
: string [] ) => Commands ) ; replace
: ( ( from
: string , to
: string ) => Commands ) } = ...
Type declaration
add: ( ( ... names: string [] ) => Commands )
remove: ( ( ... names: string [] ) => Commands )
replace: ( ( from: string , to: string ) => Commands )
Methods
add Effect
add Effect( effect: Effect ) : string
Returns string
Private
advance Selector
advance Selector( ) : string
Returns string
align
align( x: boolean , y: boolean , z: boolean , command: string ) : string
Parameters
x: boolean
y: boolean
z: boolean
command: string
Returns string
execute
execute( at: boolean , executor: ( ( e: Entity ) => Commands ) ) : string []
Returns string []
is Multiple Entities
is Multiple Entities( ) : boolean
Returns boolean
is Player Type
is Player Type( ) : undefined | string
Returns undefined | string
kill
kill( ) : string
Returns string
letter Selector
letter Selector( ) : "e" | "a" | "p" | "r" | "s"
Returns "e" | "a" | "p" | "r" | "s"
remove Effect
remove Effect( effect: Effect ) : string
Returns string
remove Effects
remove Effects( ) : string
Returns string
render
render( ) : string
Returns string
spawn
spawn( position: Block , nbt?: NBTData ) : string
Returns string
teleport
teleport( location: coordonate | Entity | "self" , entity?: Entity , facing?: { entity: Entity ; face?: "eyes" | "feet" } | { value: [ string | number | Position , string | number | Position ] } ) : string
Parameters
Optional
entity: Entity
Optional
facing: { entity: Entity ; face?: "eyes" | "feet" } | { value: [ string | number | Position , string | number | Position ] }
Returns string
Represent an world's entity