This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
ScriptCraft/examples/typescript
TheBrokenRail 5e176a84fa
All checks were successful
ScriptCraft/pipeline/head This commit looks good
Add Note
2020-05-04 20:40:06 -04:00
..
src/main Add Note 2020-05-04 20:40:06 -04:00
.gitignore Use Self-Hosted Maven 2020-04-29 14:56:51 -04:00
build.gradle Update Versioning 2020-04-29 15:41:58 -04:00
gradle Use Self-Hosted Maven 2020-04-29 14:56:51 -04:00
gradle.properties Use Self-Hosted Maven 2020-04-29 14:56:51 -04:00
gradlew Use Self-Hosted Maven 2020-04-29 14:56:51 -04:00
gradlew.bat Use Self-Hosted Maven 2020-04-29 14:56:51 -04:00
README.md Add Note 2020-05-04 20:40:06 -04:00
settings.gradle Use Self-Hosted Maven 2020-04-29 14:56:51 -04:00
typescript.build.gradle Finish Examples 2020-04-29 20:32:07 -04:00

TypeScript Example

This is an example of a Minecraft mod made in TypeScript using ScriptCraft.

Files

  • src/main/ts: Contains TypeScript Code
  • src/main/java: Contains Bootstrap Java Code

Notes

  • When updating the Minecraft version, make sure to update it in the src/main/ts/package.json file as well
  • This will also work with JavaScript if you set compilerOptions.allowJs and optionally compilerOptions.checkJs in src/main/ts/tsconfig.json to true
  • NPM dependencies are not bundled