walterhiggins / ScriptCraft

Write Minecraft Plugins in JavaScript.
MIT License
1.84k stars 380 forks source link

Is it possible to use npm packages in script craft? #465

Open ali-kingX opened 1 year ago

ali-kingX commented 1 year ago

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

tiredoftry commented 1 year ago

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

ali-kingX commented 1 year ago

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

andriemc commented 3 months ago

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)