BukkTuts - Awesome Plugin Tutorials

Discussion in 'Resources' started by drtshock, Apr 6, 2013.

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

    Jake230599

    Awesome, more tutorials! Can't wait :)
     
  2. Offline

    ritipinheiro

    More please :3
     
  3. Offline

    evilmidget38 Retired Staff

    ritipinheiro Jake230599 More are being worked on, I've been writing some outlines for us to do. I'm hoping for at least 2 more videos to be finished this week. We also might experiment around with various video formats and styles, to try and get an idea of what will work best for teaching best practices while using the Bukkit API.
     
    drtshock and gomeow like this.
  4. Offline

    ritipinheiro

    waiting :3
     
  5. Offline

    gomeow

  6. Offline

    Mre30

    I am having trouble calling other plugins with ServiceManager lol.... I suck at this.
     
  7. Offline

    Ugleh

    Im free to help, although I am not a Bukkit staff member like most of the people already involved.
    Here is a video I made on my channel of I guess a refrence
     
  8. Offline

    Rever

    Is the project still alive and is there any new videos or updates that will be posted? Where will these updates and videos be posted?

    Thanks
     
  9. Offline

    drtshock Retired Staff

    I'll update this thread once we get another video out. Finals and other things have been keeping us occupied.
     
  10. Offline

    ritipinheiro

  11. Offline

    Burnett1

    Not really, people are still doing there finals.
     
    drtshock likes this.
  12. Offline

    SgtPunishment

    Thanks to these guys I made my first plugin (Ubercore) just waiting for the files to be approved now.
     
    drtshock likes this.
  13. Offline

    Adriani6

    I have watched the videos. I spotted one mistake in the code (Even though I'm not a Java genius)
    For break class thing you've got
    player.sendMessage(ChatColor.GOLD + "You broke a " + event.getBlock());
    This will return you weird to some text.
    add: .getType());
    which will look like;
    player.sendMessage(ChatColor.GOLD + "You broke a" + event.getBlock().getType());
    Will do it's job correctly :)
     
  14. Offline

    Jake230599

    It may be wrong in the tutorial but in the source code that was posted 2 months ago this it what it had typed:

    Code:
    Player player = event.getPlayer();
    player.sendMessage(ChatColor.GOLD + "You broke a " + event.getBlock().getType());
     
  15. Offline

    ducky299

    Hey guys,

    Thanks a lot of these videos, there nicely done!

    I have a question to ask; you said please upload original content to bukkit dev, well I have some non original ideas the just don't have a working plugin for them at the moment, will I get bad reputation for uploading plugins that I think would be useful that are not currently published?

    Thanks

    ~Joe
     
  16. Offline

    SgtPunishment

    What I think they ment by original code is don't decompile someone else's work and submit it as your own
     
  17. Offline

    gomeow

    ducky299
    All we mean by original content is that you wrote the code, and didn't steal it from anywhere (its been done before, a lot)
    If you wrote it, you can upload it
     
  18. Offline

    ducky299

    Ok thanks, I thought everyone meant original ideas, so for example making a plugin that gives different people permissions for commands wouldn't exactly be original. Making a plugin that sets of TNT upon breaking the block wouldn't be original but there is still no current plugin for it :p
     
  19. Offline

    ducky299

    Please could I make a suggestion?

    How about making a tutorial for spawning in entitys, so for example spawning a primed TNT or shooting arrows from a cow to somewhere else. Maybe even dropping items?
     
  20. Offline

    ducky299


    Sorry for triple posting :S

    Well I don't know if your helping with the tutorials, but your plugin was extremely helpful, I have used it as a template and made so many changes, right now I have made a grenade and am working on a custom texture pack to go with the grenade.

    If you could please make more videos on bukkit plugins, even if there not tutorials just upload the uncut bits so we can see how to make them :p I promise you a video of someone typing code is a lot more encouraging than a quotation a page, and people really like things like explosive arrows! Maybe as a next plugin (if you do make more vids) make a cow rider tutorial, so you could ride cows like pigs but left click and right click to slow down and move to turn?
     
  21. Offline

    SgtPunishment

    Code:java
    1.  
    2. // Creeper
    3. @EventHandler
    4. public void onCreeperDeath(EntityDeathEvent event) {
    5. if (event.getEntity() instanceof Creeper) {
    6. Creeper killed = (Creeper) event.getEntity();
    7. Location location = killed.getLocation();
    8. event.getEntity().getWorld()
    9. .spawnEntity(location, EntityType.PRIMED_TNT);
    10. }
    11. }
    12.  


    When a creeper dies, it spawns some Primed TNT at it's death location (Thought it might help)
     
    ducky299 likes this.
  22. Offline

    Mess48

    Thank you very much for the tutorials, and if there could be more that would be awesome~ Keep up the good work!
     
  23. Offline

    ducky299

    Thanks :p

    I might need a better server after all...

    Let's just say it would be fun to make a few thousand creepers in one room explode at once...
     
  24. Offline

    SgtPunishment

    If you want to have ultimate destructive power use this code instead... it will create an explosion instead of spawning TNT

    Code:java
    1.  
    2. // Creeper
    3. @EventHandler
    4. public void onCreeperDeath(EntityDeathEvent event) {
    5. if (event.getEntity() instanceof Creeper) {
    6. Creeper killed = (Creeper) event.getEntity();
    7. Location location = killed.getLocation();
    8. event.getEntity().getWorld().createExplosion(location, 4F);
    9. }
    10. }
    11.  
     
  25. Offline

    thomasb454

    Hay, this is by far the best tutorial I've seen! Really helped me out.
    So, when is your next video coming out?
     
  26. Offline

    ducky299

    Hmm...

    Another few questions :(

    As far as I know it is completely legal (and ethical) to decompile someones else's plugin and learn from there code (Not copy and paste), please do correct me if I am wrong so I can stop immediately.

    So I have been attempting to recreate a basic grenade plugin with great struggle, I have tried #bukkitdev as well as #bukktuts and not really had much luck, the main issue was that bukkit scheduler was not working properly. I have found out that I was using the line of code incorrectly and several other (small) little things I picked up from outdated sources on the internet where stopping the scheduler from working.

    If others need it this is the code line that now works:
    Code:java
    1. BukkitTask task = new MakeKaboom(this.plugin, grenade).runTaskLater(plugin, 60);


    (MakeKaboom is another class ETC)

    So here is what I am aiming to do with this plugin.


    Code:
    When the player clicks{
    If the player right clicks on a block or in the air{
    If the player is holding Magma Cream{
     
    Drop the Magma cream as if the play pressed "Q"
    Disable the Magma Cream from being picked up (Possible through .setPickupDelay? I couldn't get it working)
     
    After 3 seconds create an explosion where the Magma Cream is
        }
      }
      }
    Please could someone link me or explain the following? I have googled it and decompiled several grenade plugins such as YetAnotherGrenadePlugin and still had trouble.

    - How to "Tag" an item
    - How to get the "Tagged" items location

    Thanks in advance, this has been really confusing me, I have spent several hours attempting to change things and had little luck.

    ~Joe

    PS: Thanks for the .CreateExplosion :p I had been using that. Creepers are no longer my best friend (Say good bye to my house, every creeper killed makes an explosion with a power of 80 and sets fire to everything :S)

    PSS: I didn't put the source code in because I only really need to know how to "Tag" an item and find it's location once it had been dropped, I am aiming to do as much work as I possibly can in Java so I can learn even more. If I don't have to adapt small pieces of code it will take a while to learn :( If you still need the source code just tell me and I will pastebin it ;)
     
  27. Offline

    lramos15

    When is the next tutorial?
     
  28. Offline

    Jake230599

    This seems to have become inactive but don't take my word for it, I'm only making an observation.
     
  29. Offline

    drtshock Retired Staff

    I was bored so I made another video :3 It's a simple heal plugin (I know, I know..) that teaches the basics of commands. I'll be making more tutorials soon, depending on the response I get from this :)

    If you'd like to help out then join #bukktuts on esper irc.

     
  30. Offline

    drtshock Retired Staff

    Added an Introduction to Vault tutorial by stuntguy3000 :) He'll be doing a series on Vault.

    Introduction to Vault (open)


    Just added a video on how to use the basic configuration api. Very simple and I will expand on it later :)

    Let us know what you'd like to see. Be it simple concepts or very complicated ones, we'll do our best to cover it :)

    Plugin configuration (open)


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
    _DSH105_, gomeow and jorisk322 like this.
Thread Status:
Not open for further replies.

Share This Page