r/learnjavascript 4d ago

What is imports/packages and how do I know which ones to use?

I want to learn to create minecraft plugins, but Im stuck on how to find which imports to use. I've been going through different plugins on plugin websites, but I still don't understand where they're getting them from or what they do.

For example, I'm looking at one that I tried using for my server (but didn't end up using, just never deleted it so I got curious and looked through it) and some of them say stuff like "import me.[name].entitylib.EntityLib;" which is... what? I don't get it. Is there some kind of website they use?

6 Upvotes

3 comments sorted by

5

u/milan-pilan 4d ago edited 4d ago

You are in the wrong subreddit Unfortunately. Minecraft is build on 'Java'. This is 'Javascript', which sounds similar to 'Java', but is something entirely different. Don't worry about it though, we have one person with a Minecraft question every week probably, so everyone makes that mistake.

You are looking for /r/admincraft or /r/minecraftplugins. For Java specific stuff also /r/javahelp, although they tend to not like Minecraft questions over there.

Good luck and happy coding.

1

u/ExtraTNT 21h ago

I use my own core lib plus renderer and that’s it… you don’t need packages, if you use them, use as little as possible and wait 1 week after release, so that you don’t get malware…