Giter VIP home page Giter VIP logo

bedrock-api's Introduction

Bedrock-API

Bedrock API is a library built using Minecraft Bedrock Scripting API. This library will help you keep your code clean and make it easier to interact with the Scripting API, while including a lot of new classes/functions/methods for you to use! and some built-in custom command

Repository · Bug Report · Feature Request


MIT License Discord Server GitHub Releases


Table of Contents

  1. Installation
  2. Usage
  3. Plugin example
  4. Documentations
  5. License
  6. Contact
  7. Supports

Installation

Easy Method

  • Download this zip folder and name it to .mcpack and import it by double clicking on the folder. This method will only work if you have Minecraft Bedrock Edition on the same device you are doing this action on.

Recommended Method

  • Another Method would be to take the zipped folder and unzip/extract it. Take your folder and move it to the folder 'development_behavior_packs', which can be found in a path like PATH/TO/development_behavior_packs. This will make your life way easier, while developing this pack. It will update the content inside your game everytime you make any changes to the script. For the changes to apply you must leave and rejoin your world where the pack is applied at or using command /reload.

Usage

Experimental Toggle

IMPORTANT: If you are going to apply any Scripting related scripts to your world, please make a copy of your world before you do so! I'm not responsible if anything goes wrong-

Create a new world, since Scripting API is still experimental. Make sure in your settings you have Beta API's in Experiments menu. I have some examples on how you can use this library. Specifically on custom commands. Type in the game chat !help or !help [page number] for the list of custom commands or !help [command name] to get information on a specific command!


Plugin example

Custom Command

  • TypeScript
//PATH/plugin/Custom Commands/myCommand.ts

import { Command, CommandRegistration } from "../@modules"

const registration: CommandRegistration = new CommandRegistration()
  .setName("ping")
  .setDescription("Ping command");

Command.BuildCommand(registration, (interaction) => {
  interaction.sender.sendMessage("Pong!");
});
  • JavaScript
//PATH/plugin/Custom Commands/myCommand.js

import { Command, CommandRegistration } from "../@modules"

const registration = new CommandRegistration()
  .setName("ping")
  .setDescription("Ping command");

Command.BuildCommand(registration, (interaction) => {
  interaction.sender.sendMessage("Pong!");
});

Documentations


License

Distributed under the MIT License. See LICENSE for more information.


Contact

Discord Profile


Supports

Trakteer


Star

Star History Chart

bedrock-api's People

Contributors

justskydev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

au12jp

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.