How to make a Plugin??? :D

Discussion in 'Plugin Development' started by Spears, Jan 14, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Spears

    I'm sure it is painfully complicated, and maybe harder to answer as 1.2 is out now and I and I'm sure others are failing to get hMod or bukkit to work.

    but...
    how???
    where to start??? (link to good tutorials)
    would I have to learn some java script???
    ideas on finding someone to help??? offers???
    I am a determined person and I'm think/hope ;) I'm smart enough to do something like this.

    so yeah just where to start???
     
  2. Offline

    PrivateAlpha

    too many ???s but ok well as you should know bukkit and suck are not finished and there is almost no docs for it.
    so if you want to start:
    https://github.com/Bukkit/

    here is a sample plugin:
    https://github.com/Bukkit/SamplePlugin/tree/master/src/main/java/com/dinnerbone/bukkit/sample

    the javadocs:
    http://bamboo.lukegb.com/
    --- merged: Jan 14, 2011 2:05 PM ---
    oh and check out the howto make a plugin wiki here:
    http://wiki.bukkit.org/Programming_A_Plugin

    install guide here:
    http://forums.bukkit.org/threads/how-to-install-bukkit-newb-friendly.245/page-4#post-3820
     
  3. Offline

    Archelaus

    I would recommend learning some Java (not javascript) first. Use the IDE from PrivateAlpha's link (http://wiki.bukkit.org/Programming_A_Plugin) it features an IDE. Starting out without one would be painful for a starter.


    This is just my opinion, but perhaps start with a "Hello, World" or perhaps even calculator before trying to make a mod. Unless you know another language (C++ I've heard to be an easy language to come from)
     
  4. Offline

    nossr50

    You'll want a basic understanding of Java before working on a plugin, it will help a lot.
    I recommend using an IDE like eclipse or netbeans, makes things much easier.
    There are many free books on google that can help you learn Java.
    Once you're familiar with the Java programming language, take a look at the bukkit wiki.
     
  5. Offline

    Bigglesworth

    I would like to learn how as well. I hate the bukkit /give system, and I wnat to devloupe a plugin that will read a items.txt and spawn from that.
     
  6. Offline

    Plague

    General plugin does that for you...

    But I learned from the video that is somewhere on this forum and from wiki.
     
  7. Offline

    MindCode

    Why I get these errors here?

    [​IMG]
     
  8. That means you don't know the eclipse/java basics..
     
  9. Offline

    MindCode

    i just want to write a small plugin to show server rules with /rules
     
  10. Well, none of the code in your screenshot is going to do that. So throw away everything you have so far, and start here.
    http://wiki.bukkit.org/Programming_A_Plugin
     
  11. Offline

    Lycake

    Hmm you are in the package com.bukkit.mindcode.sample and on top of the SampleBlockListener you can see a com.dinnerbone.bukkit.sample.. i REALLY think there is something wrong here ;)
    But serious guy. Install an existing plugin or learn java first.

    greetz,
    Cake
     
  12. Offline

    MindCode

    quantum, i know, this is just a sample plugin i downloaded from dinnerborn , but i get those errors even if i do it just like in the tutorial..
    i get the same errors Oo
    --- merged: Jan 17, 2011 7:21 PM ---
    learning by doing ;)

    and it wont solve:

    The import org.bukkit.Block cannot be resolved

    at
    import org.bukkit.Block;
     
  13. Could you post the code you made from the tutorial?
    --- merged: Jan 17, 2011 7:24 PM ---
    All Block stuff has been moved into the block package, so that needs to be changed to
    Code:
    org.bukkit.block.Block
     
  14. Offline

    Lycake

    I appreciate this. Thats why I told you where the bug in your code is. But it's easier to do a simple Java for beginners tutorial. (1 hour tutorial will save you lots of hours of "try and error" maybe ;) )
     
  15. Offline

    Marco van Dijk

    Hey, i don't know if it's okay to revive this thread, but i was wondering the same thing.
    I already know some C#, and i made a simple script for worldedit. (It fills the dispenser with item or itemid you tell to fill it with) But now i want to convert it into an seperate plugin.

    I hope someone can help me with this, if you want to see the code you can ask me.
     
  16. Offline

    Bobbertly

    bump.

    I'd like to learn java too, but I can't seem to find a good tutorial or something. Anyone have any suggestions? (BTW, I have no coding experience whatsoever.)
     
  17. Offline

    MadMonkeyCo

    NO GOOD TUTORIAL? Here are some sites that are good for searching: www.google.com ; www.bing.com ; www.yahoo.com
    You can also go to a library or a book store and buy a Beginning Java Programming by <author name>. Plus you can go on the Sun (Oracle) website, you know where you downloaded Java.
    Seriously how is it possible NOT to find a single good tutorial on an entire programming language?
     
  18. Offline

    IceReaper

    i learned it by reading other plugin sourcecode. and then understand what it does. then try to create own. first with copy & paste of 1-2 functions, copied a listener etc. and then started writing on my own. was about 3 days till i was in it.
     
  19. Offline

    MadMonkeyCo

    Yes it really is simple once you start understanding the once-gibberish like: int, char, String, long, void, Classes, Constructors and Methods/functions
     
  20. Offline

    killgoblen

    I would recommend Java for Dummies. It is extremely helpful for people new to Java.

    (Lol, thread necromancy much?)
     
  21. Offline

    lilkoopa

    http://www.youtube.com/view_play_list?p=84A56BC7F4A1F852
    Recorded lectures from Stanford, very good lectures targeted to people with little programming background.

    http://wiki.bukkit.org/Developing_a_Plugin
    The wiki has got some good links.

    Start by learning java and then you might want to try looking at plugin source code and the bukkit javadoc.
    http://javadoc.lukegb.com/Bukkit/

    also

    http://java.decompiler.free.fr/?q=jdgui
    with that little tool you can look at the code of an already compiled .jar file.
     
  22. Offline

    Bobbertly

    Buying things... LOL, im poor and ive spent a good chunk of my life searching google for it, i need something FREE, and something english... too many tutorials with foreign people in them
     
  23. Offline

    MadMonkeyCo

    Oracle's website, thenewboston on YouTube. Lots more just on YouTube, sounds like to me that you did not do a thorough enough search.
     
  24. Offline

    ItsHarry

  25. Offline

    desht

    I personally found this site extremely useful for getting to grips with Eclipse (I was a Java novice when I read it, but already had plenty of C/Perl experience - Java's not a huge leap from that):

    http://eclipsetutorial.sourceforge.net/totalbeginner.html

    I wouldn't even consider trying to do any programming without an IDE, and your free choices are either Eclipse or NetBeans. I like Eclipse, not familiar with NetBeans.

    You will also need to bookmark the Java API reference: http://download.oracle.com/javase/6/docs/api/overview-summary.html

    And the Bukkit javadocs: http://jd.bukkit.org/apidocs/

    And then go through the tutorial http://wiki.bukkit.org/HUGE_Plugin_Tutorial and look at other people's plugins. Most people provide the source to their plugins, and it's absolutely invaluable.
     
  26. Offline

    TheTrixsta

    You need basic java knowledge, look at thenewboston's tutorials on youtube for java
     
  27. Offline

    rex48

    I also want to make a plugin but I don't know how to make a plugin that creates NPC's and items.

    Edit: I won't put the name 'cause then you steal my idea.
     
  28. Offline

    bleachisback

    You can't create items and blocks with a server mod, at least without a client side mod, too.
     
  29. Offline

    rex48

    Then can you tell me what a client side mod is?
     
Thread Status:
Not open for further replies.

Share This Page