Coder Social home page Coder Social logo

lucienhh / mbcore-gametest-module Goto Github PK

View Code? Open in Web Editor NEW

This project forked from majestikbutter/mbcore-gametest-module

0.0 0.0 0.0 685 KB

A set of scripts aimed to make some things easier with the GameTest Framework.

Home Page: https://majestikbutter.github.io/MBCore-GameTest-Module/

TypeScript 100.00%

mbcore-gametest-module's Introduction

MBCore-GameTest-Module

A set of classes aimed to make some things easier with the Minecraft Bedrock GameTest Framework.

If you're just starting out with the GameTest Framework, there's a neat Starter Pack available.

Pre-requisites

Dependencies

Docs

Docs generated by Type Doc can be found here

Installation

  • Download latest release using npm i mbcore-gametest

Example

Script:

import { EventEmitter } from 'mbcore-gametest';

const events = new EventEmitter();

events.on('example', (msg) => {
  console.log(msg);
})

events.emit('example', 'Hello');
// Output: Hello

events.emit('example', 'World');
// Output: World

Regolith Config:

{
  "name": "example",
  "author": "example",
  "packs": {
    "behaviorPack": "./packs/BP",
    "resourcePack": "./packs/RP"
  },
  "regolith": {
    "profiles": {
      "dev": {
        "unsafe": false,
        "filters": [
          {
            "url": "github.com/ShiCheng-Lu/Regolith-Filters/module_importer"
          },
          {
            "url": "github.com/MajestikButter/Regolith-Filters/ts_transpiler",
            "settings": {
              "removeTS": true,
              "compilerOptions": {
                "module": "ES2020",
                "moduleResolution": "node",
                "allowSyntheticDefaultImports": true,
                "target": "ES2020",
                "noImplicitAny": true,
                "removeComments": true,
                "preserveConstEnums": true,
                "sourceMap": false
              }
            }
          }
        ],
        "export": {
          "target": "development"
        },
        "dataPath": "./packs/data"
      }
    }
  }
}

mbcore-gametest-module's People

Contributors

majestikbutter avatar shicheng-lu avatar lucienhh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.