- Supports TypeScript, but is not required
- ES6 features, like arrow functions, default arguments and much more
- Importing other files for a clean project structure.
- A few premade utilities in
src/lib/
- Clone this repo. It is recommended to clone this to your local development world:
.minecraft/saves/WorldName/customnpcs/scripts - Run
npm install
Done! You have set up the workspace!
- Create a new script inside
src/. It is recommended to keep a nice structure by separating by script type: npcs/players/items/blocks/forge. - Run
npm run watch - The result will come in
ecmascript/folder - If you followed the recommended clone location, you can just do
/noppes script reloadin-game immediately!
Please check src/npcs/my_npc_one.js and src/npcs/my_npc_two.js for examples