@mcbe/system_server
TypeScript icon, indicating that this package has built-in type declarations

2.0.8 • Public • Published

About this

global system variable that created by @mcbe/system_shared

Example

import { system } from '@mcbe/system_server';

References

const system:IVanillaServerSystem;

/**
 * @param item you can use Identifier with ID.~~
 *          import ID = require('@mcbe/identifier/id');
 */
function createItem(item:Identifier, pos:VectorXYZ):IEntity|null;

// command result time is not sequenced
function command<T extends CommandResult>(command:string):Promise<T>;

// tellraw, display chat without any prefix
function tellraw(name:string, text:string[]):Promise<boolean>;

// tellraw to all
function tellrawAll(text:string[]):Promise<boolean>;

// Command result interface
export interface CommandResult
{
    // 0 when succeeded
    statusCode:number;

    statusMessage:string;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @mcbe/system_server

Weekly Downloads

0

Version

2.0.8

License

ISC

Unpacked Size

4.2 kB

Total Files

4

Last publish

Collaborators

  • karikera