Filled Pillows

Discussion in 'Archived: Plugin Requests' started by rayblon, May 4, 2014.

  1. Offline

    rayblon

    Plugin category: Fun

    Suggested name: King's Landing

    What I want: When someone falls over 7 blocks onto stone, cobblestone, sandstone, obsidian, stonebrick, brick or diamond blocks, an explosion with a blast power of 4 that does not damage blocks(But DOES damage entities) is created where they land(If they have at least 2 gunpowder in their inventory). By default, someone who has the permission has explosive landings disabled until they toggle it.

    When an explosive landing is performed, 2 gunpowder is deducted from the user's inventory. The user that performs an explosive landing should also be immune to any damage during the explosion. Preferably, everything italicized/underlined should be configurable.

    Ideas for commands:
    /Kingslanding toggle - Allows a player to disable explosive landing for themself. (any player with kingslanding.explosive can use this)
    /Kingslanding disable/enable - Turns the plugin on or off. (Any player with kingslanding.admin can use this)

    Ideas for permissions:
    Kingslanding.explosive - Allows a user to use explosive landings
    Kingslanding.admin

    When I'd like it by: May 25th




    I want this plugin made because this would add a whole new dynamic to combat. It incentivizes risk taking, and makes ambushes in PVP all the more epic.

    Sorry for bumping. I noticed that this thread has 40 views though. Is the way I phrased my request confusing?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
    Grendal likes this.
  2. Offline

    fefe2008

    rayblon No its completly fine and I'm sure someone will be interrested to do this at some Point!
    If I could I would do it for you but since i have no experience with coding i can't! I think this is a really good idea because it adds a higher skill cap to the simple combat in Minecraft this would open new possibilities and strategies to dominate your oponents! Just wanted to add that and i hope you find someone to make it soon ! Good luck :)
     
    rayblon likes this.
  3. Offline

    Grendal

    I love this idea, combat is always a bit boring when you're just hitting people with something :p
     
    rayblon likes this.
  4. Offline

    rayblon

    It doesn't give an ambusher an advantage, either, per se. They'd still be taking fall damage and would alert anyone in the viscinity. It's a plugin that balances itself out! :D
     
  5. Offline

    TimJames

    rayblon likes this.
  6. Offline

    rayblon

    TimJames It seems to be working quite well, but I think I need to do some experimenting with the underlined parameters in the OP to figure out what works best for my server. Would it be possible to flesh out the config file in those regards?

    Thanks for taking the time to develop this plugin for me! :D
     
  7. Offline

    TimJames

    Last edited by a moderator: Jun 8, 2016
    rayblon likes this.
  8. Offline

    rayblon

    TimJames
    I did some testing by falling on mobs and I didn't seem to be able to deal any damage(Or knockback) with the explosions. Have you run into this issue or is it just me? .-.

    Thanks again! (And sorry for any inconveniences)

    EDIT: It seems that the actual explosion is quite small. I'm not sure if this is helpful or not, but I found a post that detailed no block damage explosions. It's fairly recent. DOES NOT SPAWN TNT. https://forums.bukkit.org/threads/create-explosion-that-hurts-players-but-no-block-damage.242764/
     
  9. Offline

    Onlineids

    Probably shouldn't have marked this as filled when you still haven't gotten what you wanted...
     
  10. Offline

    rayblon

    Fair enough.
     
  11. Offline

    Crud41

    To any devs looking into this; I would reccomend doing something along the lines of
    Code:
            if (ple.getPlayer().getFallDistance() > 7)
            {
                if (ple.getPlayer().getLocation().getBlock(Block.BRICK)) {
                   
                }
               
            }
     
  12. Offline

    dentych

    rayblon
    Hey. I have made a little test - KingsLanding.jar
    It currently has no configuration options and will trigger on any blocks, as long as you fall at least 7 blocks. The player is not affected by fall damage, nor the explosion damage, but surrounding entities are.

    If you like it, get back to me and I can make it customizable and finish it up for you.
     
    rayblon likes this.
  13. Offline

    rayblon

    That's exactly what I want! I had some last minute ideas for additional configuration options I'd like to see implemented, if that's alright. I'd like to be able to set a flat damage to be dealt to the person that performs a King's Landing (I.E. Player A performs a king's landing and is automatically dealt 3.5 hearts of damage.), and I'd like to be able to configure knockback as well, if at all possible.
     
  14. Offline

    TimJames

    dentych
    I'm not sure how much it will help you, but here is the code for my version. I couldn't work out some of the bugs or stop the explosion from harming the player. But anyways hopefully you can accomplish more with this than me.
    http://pastebin.com/MknxENkA
     
    rayblon likes this.
  15. Offline

    dentych

    TimJames
    Nice! Looks like you got all the commands right. I will probably use some of it and credit you for it :)

    rayblon
    I think Bukkit's setDamage command sets the base damage, so if I set that to 3.5 hearts, they will take less damage if they wear armour. Is that ok?
    And I take it that the knockback is for the players that are hit by the explosion?
     
  16. dentych If he doesn't want armour affecting it, you can use setHealth()
     
  17. Offline

    dentych

    AdamQpzm
    *facepalm* My excuse is that I just got up :D
     
    rayblon and AdamQpzm like this.
  18. Offline

    rayblon

    dentych
    Yeah, the explosion should have configurable knockback. :)

    Mornings though. Bleh.
     
    dentych likes this.
  19. Offline

    dentych

    rayblon
    The plugin is beginning to take shape. However, I won't be adding the knockback thing, as I don't have that much time to spend on it. Everything should be added, though :)

    EDIT:
    The plugin should be done. It should have everything you asked for, except for the knockback thing.
    Permissions are "kingslanding.explosive" to use and "kingslanding.admin" to use /kl reload
    Commands are "/kingslanding toggle" to toggle KL on/off per player. "/kingslanding enable" - Enables the plugin, "/kingslanding disable" - disables the plugin. "/kingslanding reload" - Reloads the config data.
    All commands can be used with "/kl" instead of "/kingslanding".

    First time you load the plugin, it will generate a standard config for you. It has comments. If you use the command to disable/enable the plugin, it will delete the comments. Though, the config should be pretty easy to interpret.

    Download link: KingsLanding.jar
     
  20. Offline

    rayblon

    dentych
    Works great! Do I have permission to modify this later to edit knockback?
     
  21. Offline

    dentych

    rayblon
    Hey again. Yeah, you can do as you please with it :)
     
    rayblon likes this.

Share This Page