UNPKG

jsdatapack

Version:

Make minecraft datapacks in javascript.

32 lines (21 loc) 866 B
# JsDatapack JsDatapack is a npm package made to create Minecraft Datapacks in Javascript ### Details I made this because I didn't now how to calculate a random number in a datapack. You wont be able to do use Javascript functions to say make a random number, so if you have any ideas for functions for this join the [discord](https://discord.gg/QSA34dJb4J) and request it. More features coming soon like making scoreboards, using other commands and multiplayer commands! ### Usage ```js const { Base } = require('jsdatapack'); // Base takes in to params. A datapack name and a datapack description const dp = new Base("NewDataPack", "This is a test datapack!"); // This will save the datapack to a zip file. dp.save(); ``` ### Features Version 1.0.0: - Create a datapack - Save datapack More features coming soon! Discord: https://discord.gg/QSA34dJb4J