Giter VIP home page Giter VIP logo

serein's Introduction

Serein

logo

license npm download minecraft

Serein is a scaffolding project developed for the Minecraft: Bedrock Edition Script API to help developers create and manage projects efficiently and elegantly.

View this document in 简体中文 | English

Serein is unofficial and not from Minecraft or approved by Minecraft.
"Minecraft" is a trademark of Mojang Synergies AB

  • 🚀 Create and manage projects efficiently
  • 🛠️ Support JavaScript / TypeScript
  • 📦 Automatically packaging mcpack
  • 🎛️ Automatically cross-platform (Windows/Linux/Android) deployment with Hot Reload
  • 💡 Build with esbuild and support for npm modules
  • 🪐 Random pack_icon generator
  • 🔌 Support for embedding into existing projects

asciicast

Getting Started

Go to Serein Document for details.

Contributing to Serein

Serein still has many issues and features yet to be implemented, and the main maintainer (@Lampese) is still high school student with very limited time.

If you have questions or suggestions for improvements, feel free to create an issue or send an email to [email protected].

If you wish to contribute to the project, we welcome Pull Requests, even if it may be initially wrong.

Special Thanks

  • Thanks to @MeowShe for providing the CDN service.
  • Thanks to cowsay for contributing a cow to this project.

serein's People

Contributors

caimeox avatar happytigerv avatar lampese avatar meowshe avatar shannon-github-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

happytigerv

serein's Issues

Build failed on Windows

PS B:\mc\2024.2\Only Solution> serein build
(node:5252) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
[17:13:03] Using gulpfile B:\mc\2024.2\Only Solution\gulpfile.js
[17:13:03] Starting 'build'...
[17:13:03] Starting '<anonymous>'...
[17:13:03] Finished '<anonymous>' after 33 ms
[17:13:03] Starting 'copy_behavior_packs'...
[17:13:03] Starting 'copy_resource_packs'...
[17:13:03] Finished 'copy_behavior_packs' after 109 ms
[17:13:03] Finished 'copy_resource_packs' after 144 ms
[17:13:03] Starting 'compile_scripts'...
[17:13:04] Finished 'compile_scripts' after 1.22 s
[17:13:04] Starting 'esbuild_system'...
[17:13:04] 'esbuild_system' errored after 3.89 ms
[17:13:04] Error: File not found with singular glob: B:/mc/2024.2/Only Solution/build\scripts\main.js (if this was purposeful, use `allowEmpty` option)
    at Glob.<anonymous> (B:\mc\2024.2\Only Solution\node_modules\glob-stream\readable.js:84:17)
    at Object.onceWrapper (node:events:633:26)
    at Glob.emit (node:events:518:28)
    at Glob.emit (node:domain:488:12)
    at Glob._finish (B:\mc\2024.2\Only Solution\node_modules\glob\glob.js:194:8)
    at done (B:\mc\2024.2\Only Solution\node_modules\glob\glob.js:179:14)
    at Glob._processSimple2 (B:\mc\2024.2\Only Solution\node_modules\glob\glob.js:688:12)
    at B:\mc\2024.2\Only Solution\node_modules\glob\glob.js:676:10
    at Glob._stat2 (B:\mc\2024.2\Only Solution\node_modules\glob\glob.js:772:12)
    at lstatcb_ (B:\mc\2024.2\Only Solution\node_modules\glob\glob.js:764:12)
[17:13:04] 'build' errored after 1.41 s
node:internal/errors:932
  const err = new Error(message);
              ^

Error: Command failed: gulp build
    at checkExecSyncError (node:child_process:890:11)
    at execSync (node:child_process:962:15)
    at Object.exec (file:///C:/Users/ts187/AppData/Roaming/npm/node_modules/@pureeval/serein/src/base/io.js:33:16)
    at Command.<anonymous> (file:///C:/Users/ts187/AppData/Roaming/npm/node_modules/@pureeval/serein/src/executer/cli.js:46:19)       
    at Command.listener [as _actionHandler] (C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:494:17)
    at C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\commandb\command.js:1296:65
    at Command._chainOrCall (C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:1193:12)
    at Command._parseCommand (C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:1296:27)
    at C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:1082:27 {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 20756,
  stdout: null,
  stderr: null
}

Node.js v20.11.1

Version info could not be downloaded

网站 serein.shannon.science 不可用,这导致需要从这个网站获取信息的操作,比如初始化项目,没有办法完成。

run command failed

>> serein build
SyntaxError: Unexpected identifier
    at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:139:18)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:236:14)
    at async link (node:internal/modules/esm/module_job:67:21)
node:child_process:826
    err = new Error(msg);
          ^

Error: Command failed: gulp build
    at checkExecSyncError (node:child_process:826:11)
    at execSync (node:child_process:900:15)
    at Object.exec (file:///C:/Users/ts187/AppData/Roaming/npm/node_modules/@pureeval/serein/src/base/io.js:33:16)
    at Command.<anonymous> (file:///C:/Users/ts187/AppData/Roaming/npm/node_modules/@pureeval/serein/src/executer/cli.js:46:19)
    at Command.listener [as _actionHandler] (C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:494:17)
    at C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:1296:65
    at Command._chainOrCall (C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:1193:12)
    at Command._parseCommand (C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:1296:27)
    at C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:1082:27
    at Command._chainOrCall (C:\Users\ts187\AppData\Roaming\npm\node_modules\@pureeval\serein\node_modules\.store\[email protected]\node_modules\commander\lib\command.js:1193:12) {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 11444,
  stdout: null,
  stderr: null
}

@minecraft/server的版本问题

安装的.d.ts的版本是stable,但是manifest.json中是beta
需要修改模板里的package.json中依赖项@minecraft/server模块的版本

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.