ScriptCraft icon indicating copy to clipboard operation
ScriptCraft copied to clipboard

Is it possible to use npm packages in script craft?

Open ali-kingX opened this issue 3 years ago • 3 comments

Could you download npm packages (example discord.js)? I would like to do this so i could make something like DiscordSRV.

ali-kingX avatar Dec 12 '22 01:12 ali-kingX

If you are wanting to use node, you should look at PrismarineJS/mineflayer github.com/PrismarineJS/mineflayer

tiredoftry avatar Dec 12 '22 03:12 tiredoftry

ive used mineflayer in the past but i want to make a mc plugin

ali-kingX avatar Dec 12 '22 12:12 ali-kingX

Could you download npm packages (example discord.js)? I would like to do this so i could make something like DiscordSRV.

You can probably use some of them using a bundler, but some wont work (such as ones that rely on node only apis, or native apis)

andriemc avatar Jul 26 '24 12:07 andriemc