Jump to content
Blessings

Programming with Blessings | Episode 1 | Minecraft: Hello World

Recommended Posts

Hello everyone! Today I will be explaining how to make a very simple, hello world Minecraft plugin!
 
 
***I MESSED UP THREE PARTS! PLEASE CHANGE THE FOLLOWING***
 
1. Add extends JavaPlugin and import JavaPlugin.
eC3NMOj.png
 
2. Replace "Hello World!" with HelloWorld
7fA9LrR.png
 
3. Replace "p.getCustomName()" with "p.getName()"
sI6njmX.png
 
Getting Started:
 
1. Head over to HERE and download Eclipse IDE for Java Developers. (This is what we will be using to program our plugins.)
2. Head over to HERE and hit download. This file is an extension to use Minecraft codes.
 
Time to Code:
 
1. Go to File > New > Java Project
Yjy9d1e.png?1
 
2. For this tutorial, Name the project HelloWorld and select Next
 9tWwnSL.png
 
3. Select Libraries > Add External JARs. This is where we import the craftbukkit libraries.
 jbEEfsS.png
 
4. Find your file, Double click it to open and then hit Finish
CYjmvJw.png
 
5. Right click "src" > New > Package
 Qnc0Rb0.png
 
6. Change the Name: to me.yourname.helloworld (You can replace yourname with whatever)
xh3tdeB.png
 
7. Right click on helloworld > New > Class
 1xYiEZp.png
 
8. Change the Name to "Hello" and hit Finish
 EN9gUBe.png
 
9. This is the code for the HelloWorld Plugin. Read the grey to understand. The lines represent the imports it leads to.Vxf5G4l.png
 
10. Right Click on HelloWorld > New > File
 1qCJ3dP.png
 
11. Name the File "plugin.yml" and then hit Finish
 VXXZhSW.png
 
12. Double click plugin.yml and then enter the following: (Remember where it says yourname  is whatever you put.)
 Khxb59E.png
 
13. Right click on the HelloWorld > Export
Z3JT0d3.png
 
14. Select Java > JAR File > Next
wFeuv2j.png
 
15. Check the same boxes and then hit Next
00rVisu.png
 
16. Wherever you place your JAR file, move it into your Minecraft > Plugins folder and then start up your server!
 
17. If you copied correctly, you should see this in this console!
 
sqGxbkn.png
 
18. Once in-game, type /help to see that your plugin is there and /help helloworld to see the commands!
8hlVp6M.png
 
19. Now you are ready! Type in /hello and see your plugin in action!
r7RH6AR.png
 
Hello World Finished!:
 
That comes to the end of this tutorial! If you have any plugin tutorials then please let me know below!]
- I am currently working on Chat Channels.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...