Giter VIP home page Giter VIP logo

scriptapi's Introduction

ScriptAPI Samples

This repository is filled with community driven script samples for Minecraft Bedrock Script API.

Script Samples

  • Community driven scripts that use Script API to do all kinds of crazy stuff in Minecraft.

    ⚠️ Some scripts might use @minecraft/server-net and @minecraft/server-admin module, which the modules are only available in Bedrock Dedicated Servers and cannot be used on Minecraft clients.

  • Basic usage of manipulating Script API features within @minecraft/server module

  • Basic usage of creating GameTests or spawning a simulated player using @minecraft/server-gametest module

  • Basic usage of manipulating server forms available in @minecraft/server-ui module

  • Basic usage of loading secrets and variables from @minecraft/server-admin module

  • Basic usage of executing HTTP-based requests using @minecraft/server-net module

Contributing

Please contribute to this repository if you can.

To create a new script package, create a folder structure based on the following:

JaylyDev/ScriptAPI (root)
└───scripts
    └───my-package
          index.js
          index.ts (optional)
          LICENSE (optional)
          tests.js
          tests.ts (optional)
          README.md (optional)

In the example new-package is the package name, you must include

  • a main file (e.g. index.js or index.ts)
  • a test file (e.g. tests.js or tests.ts).

Script modules version

The script samples are intended to be used with the latest beta module of script modules in latest version of Minecraft Preview, and the latest version of Minecraft, this depends on the scale of changes happens in Scripting API in Minecraft Preview.

For submitting or updating script samples, we recommend upload scripts that uses the latest version of Script API modules. For more infomation please visit here.

Acknowledgements

When you submit a new package and you want to publicly declare your work, you are allowed to insert credits under the following files:

  • LICENSE file with the license and your name
  • Adding your name to the end of the line, like // Author: JaylyDev <https://github.com/JaylyDev>.
  • Add your name in README.md file in the package

Script status

This repository uses TypeScript compiler to test script files by validing with declaration files of Script API modules, making sure they are up-to-date when using in the latest Minecraft versions.

Most of the time the checks succeed, which means scripts inside should not have any syntax errors when using in stable version of Minecraft.

If the check failed, it's worth creating a bug report if a fix is not implemented, or a pull request if you may find a solution to a fix to the problem.

scriptapi's People

Contributors

jaylydev avatar bot174 avatar jayly-bot avatar dependabot[bot] avatar worldwidebrine avatar frankyray avatar glitchyturtle avatar tutinoko2048 avatar iblqzed 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.