@flymeth/datapackjs
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

DatapackJS

A Javascript librairy to create awesome datapacks!

Where did this idea comes from

DatapackJS is the answer of a big datapack that 75% of the code are the same. I really like creating some cool datapacks, and recently I had a big datapack to create for a personnal project, and inside, their was a lot of same commands (like to teleport players). So I asked to me: Isn't there have a solution to avoid this fu**** copy/pasting of same code ? Then I remembered than I've always wanted to create my own programming language and so... that's not what i did! Instead I created a javascript librairy that uses classes to make everything that can be done with datapacks!

Use the library

You can get the librairy and start making your own datapack by following this simples steps:

Create a project

npm init -y

Install the librairy

npm i --s @flymeth/datapackjs

Start using it

const {default: DatapackJS} = require('datapackjs')
const dp = new DatapackJS({
    name: "hello world",
    description: "my first datapack using javascript",
    namespace: "hw",
    version: "1.19"
})
// And so on...

Pro tip: Go to the documentation before start using it!

Package Sidebar

Install

npm i @flymeth/datapackjs

Weekly Downloads

1

Version

1.0.3

License

LSI

Unpacked Size

3.54 MB

Total Files

206

Last publish

Collaborators

  • flymeth