Giter Site home page Giter Site logo

combat-items-beh's Introduction

JavaScript-Template

这是PowerNukkitX的JavaScript插件模板仓库,您可以从此仓库创建您自己的插件。

此仓库中的d.ts定义文件会定期更新,请您留意更新您的插件仓库中的定义文件。

使用方法

登录github账号,点击上方绿色的Use this template按钮,在Repository name中输入你的插件的名称,并在Description中输入你插件的简短描述, 然后点击绿色的Create repository from template按钮,即可创建你自己的插件仓库。

//clone此厂库请使用下命令
git clone --recursive https://github.com/PowerNukkitX/JavaScript-Template

//也可以使用以下命令来初始化.header
git submodule update --init

//更新.header
git submodule update --remote

我该如何开发插件?

您可以在 PNX文档 中了解更多。

插件开发完成,我该如何在服务器上测试?

  1. 在PNX服务器的plugins文件夹里面新建一个名称为@加上你的插件的名字的文件夹。 例如,插件名字叫HelloWorld,那么名字应该是@HelloWorld
  2. 将项目文件夹下面所有的文件都复制到刚刚新建的文件夹里面。注意不要再多嵌套一层文件夹

一个正确的安装示例:

└─服务器根目录
    ├─PowerNukkitX.jar
    ├─......
    └─plugins
        └─@HelloWorld
            ├─plugin.yml
            ├─index.js
            └─......

combat-items-beh's People

Contributors

reallygoodbaker avatar

Stargazers

luoleyan avatar

Watchers

 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.