This package has been deprecated

Author message:

use event_client instead

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

1.0.2 • Public • Published

About this

global system variable that created by @mcbe/system_shared

Example

import ruacore from '@mcbe/ruacore_client';

ruacore.initialize.on(()=>{ /* on initialize */ });
ruacore.shutdown.on(()=>{ /* on shutdown */ });
ruacore.update.on(()=>{ /* on update */ });

ruacore.broadcast.DisplayChat({message:' message '}); // broadcast minecraft:display_chat event
ruacore.listen.ClientEnteredWorld(ev=>{ // listen minecraft:client_enter_world event
    ev.player; // IEntity
});

@mcbe/ruacore_server dependency

ruacore_server will freeze system object to prevent modifiying initialize update shutdown functions.

// please use
ruacore.initialize.on(()=>{ /* codes */ });
ruacore.update.on(()=>{ /* codes */ });
ruacore.shutdown.on(()=>{ /* codes */ });
// instead of 
system.initialize = ()=>{ /* codes */ };
system.update = ()=>{ /* codes */ };
system.shutdown = ()=>{ /* codes */ };

Readme

Keywords

none

Package Sidebar

Install

npm i @mcbe/ruacore_client

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

5.22 kB

Total Files

4

Last publish

Collaborators

  • karikera