[MECH] UndroppableDroppables V1.16 [16/06/2011] - make building and rebuilding easier [1000]

Discussion in 'Inactive/Unsupported Plugins' started by icomeinpieces, May 25, 2011.

?

Does this plugin seem usefull to you

  1. Yes it does and is going/is on my servr

    51 vote(s)
    50.0%
  2. It does seem useful but is lacking a feature I require

    7 vote(s)
    6.9%
  3. It does seem useful but is causing errors on my server

    1 vote(s)
    1.0%
  4. it looks good, keep up the good work but my users are happy without it

    32 vote(s)
    31.4%
  5. nope seemed like it was a worst of your time

    11 vote(s)
    10.8%
  1. Offline

    icomeinpieces

    UndroppableDroppables
    Version: v1.16 <-- Next version will have a wget friendly link, stayed tuned I can not find a good place to host files that will allow me to update files and retain the link AND as well track the amount of downloads. (p.s. i tried the downloads feature of github, however despite meeting my needs feature wise, the site requires an absurd amount of time to update the link to the new file) any suggestions post here or pm me

    REQUEST: please, submit comments, bugs(wither it be stack errors or weird glitches I have not mentioned yet), constructive criticism, feature requests, or well anything else you can think of to mention. Made a video using custom settings that you think is interesting/humorous? Great post it and I'll make a note of it in my videos section.

    Ever find it annoying how you are making a awesome creation only to find out you messed up the staircase royally? All those stairs now need to be broken, remade, and replaced, causing a (sometime significant) drain on resources and time. Well my plugin aims to remedy situations like that by removing the remaking part. My plugin takes blocks such as stairs or glass and makes them drop themselves when broken instead of something else or nothing and respects build rules from Permissions and WorldGuard. Something I found with similar plugins was that there seemed to be not one plugin that handled more than one or two of the blocks out of the blocks my plugin handles, forcing me to check and update 4 plugins. Plus none of the plugins I found respected WorldGuard or Permissions’s antibuild setting allowing my users to break Glowstone when they had no permission from their user group or from a region. So I made this simple and easy to use plugin, just pop it in your plugins folder and it will handle the rest, no config files or any weird in game setup, just plug and play :)

    Config Instructions

    Show Spoiler
    * The config file is written to upon server shutdown. save your changes to the config file after a server shutdown or saves your changes before server shutdown, use the udreload command then preform a server shutdown (if needed to begin with)
    * When the plugin is run for the first time it will generate a config file under [SERVER DIRECTORY]/plugins/UndroppableDroppables/UndroppableDroppables.cfg
    * the available setting options are written in the config file, which are 0, 1, and 2
    * use option 0 to disable UndroppableDroppables influence on a given block
    * use option 1 to enable UndroppableDroppables influence on a given block
    * use option 2 to enable modified behavior such as option 2 on a bookcase would give back the resources that made that bookcase or glass which would give back one sand. all option 2 settings are explained in the config file.




    Permission nodes

    Show Spoiler
    assign a node to drop a specified block in accordance to what is set in the config file
    without the permission the drops are back to minecraft default.
    permission nodes will show up in the config file for reference after a server shutdown with versions 1.11 and above installed.
    * ud.drop.* to allow all drops
    * ud.drop.bookcase
    * ud.drop.woodenstairs
    * ud.drop.cobblestonestairs
    * ud.drop.glowstone
    * ud.drop.glass
    * ud.drop.ice
    * ud.drop.grass
    * ud.drop.boat
    * ud.admin.reload <-- for the udreload command




    Command

    Show Spoiler
    * udreload - for use ingame or through console, this command will reload the config file without the need to restart the server.




    Upgrade instructions <-- please read.
    * In most cases if there is to be a new "something" in the config file simply install the new update start the server and shut it down and the config file will update. i'll post the new "something"s in the change log in case you wish to input the values manually.

    Full list of blocks what they used to drop and what they now drop with the use of my plugin.
    Show Spoiler
    Item in question – what they used to drop – what my plugin makes them drop with option 1 enabled


    Wooden Stairs - Wooden planks - Wooden stairs
    Cobblestone Stairs - Cobblestone block - Cobblestone stairs
    Glowstone - Glowstone dust - Glowstone item
    Glass - nothing - Glass item
    Bookcase - nothing - Bookcase item
    Ice - nothing(unless you include water) - Ice item
    Grass - Dirt item - Grass item
    Boat - 3 wooden planks and 2 sticks - Boat


    Features
    * ingame/console command refer to commands section
    * Permissions support <-- not required, reverts to OP for admin nodes and everyone for drop nodes. I recommend the 3.x version

    * Creates a drop out of the following items: Wooden Stairs, Cobblestone Stairs, Glowstone, Glass, Bookcase, Ice, Grass(not Dirt), boats
    * Respects the anti-build setting of Permissions
    * Respects WorldGuard regions
    * A config file now generates upon first run. This will allow disabling certain drops if you wish or select the 3rd option for a different kind of behavior.

    download Link <Edit by Moderator: Redacted mediafire url>

    Coffee and food helps me code faster.
    [​IMG]

    Bugs/Issues
    * breaking a either type of stairs with signs on them does not give back the proper item.
    * boats will default to normal behavior if you crash into something and break the boat that way. I can not find any hooks to detect that scenario :(

    * possible issue with inf loot from Magic Carpet plugin, using UndroppableDroppables 1.14 and Magic Carpet 1.5.5 I have been unable to produce this bug, but has been reported, people please confirm this? <-- i could not reproduce this bug with 1.15 of my plugin, solved?

    * with option 1 or 2 for glowstone in the config will allow a player to still get a drop wither a player holds a pick axe or not, unlike the new default behavior that notch implemented in 1.6.6 which now requires a pickaxe to receive resources.
    * item dupe dug <-- introduced in 1.14
    * Big Brother issue not registering block breaks properly


    TODO

    * add multi world config - med
    * add option to change mining speed for certain block (ie. stairs) - low
    * commands for adjusting settings in game or console - med
    * permission support to allow setting options via permissions instead of using the global values present in the config - low

    * leaves drop when hacked <-- in minecraft now as of 1.7, use shears :)
    * allow snow slabs and blocks? yes i got this idea from Juze's DropPlugin or rather a friend brought it to my attention. - high

    * command control to reload plugin without server restart
    * add boats <-- partial, check bugs/issues
    * permissions support for fine grain control?
    * add config file

    Changelog
    1.16
    * added backup code in case permissions 2.7.4 is installed, not permissions 3.x <-- optional update if you already use permissions 3.x. nothing new otherwise.

    Old News



    Show Spoiler
    1.15
    * upgraded permissions support to permissions 3.x
    * fixed Big Brother block break detection, for good this time.
    * fixed item dupe bug from 1.14
    * some code cleanups and a small optimization.
    * cleaned up some permission bugs that seemed to crop up from time to time
    * made the plugin default to OP when permissions is not present for admin permission nodes and everyone for drops.
    * changed behavior of grass drops with option 2, it will now drop a seed and a dirt block instead of just seed (made sense to me, comment if you hate this change)

    1.14
    * fixed the bug that was preventing big brother from properly detecting blocks that were broken (namely ice that kept rolling back to water)
    * improved how my plugin handles the water that tries to spawn from breaking ice.

    1.13
    * added the command (for ingame and console control) "/udreload". this allows for reloading the config file without the need of a server restart. the permission node for this command is "ud.admin.reload"

    1.12
    * fixed a bug that when a player didn't have a build permission due to permissions or worldguard, the plugin would spam console messages

    1.11
    * added permissions support (refer to permissions section for details)
    * loads of code clean up (figured out how to do something differently)
    * fixed a bug that was still dropping one glowstone dust with option 0 despite the new way notch has reprogrammed glowstone to drop more (option 0 properly reverts to minecraft defaults now)

    1.10
    * added options for boats. option 0: default behavior, option 1: drops a boat, option 2: drops 5 wooden planks to use right away type boat=[option 0,1, or 2]

    1.09
    * added a config file for additional configurations

    1.08
    * Fixed the bug preventing UndroppableDroppables from starting if WorldGuard or Permissions were not present. The plugin should now work properly wither or not WorldGuard or Permissions is present.

    1.07
    * Added checks to disable plugin in the event the required permissions and worldedit are not present, a bug introduced in the last 2 versions

    1.06
    * Introduced permissions integration so that UndroppableDroppable listed blocks are now properly protected via he build permissions

    1.05
    * Introduced WorldGuard integration so that UndroppableDroppable listed blocks are now properly protected via regions

    1.04
    * Added dropping grass blocks not dirt when grass is broken

    1.03
    * Fixed (hopefully) the spawning water problem and some code clean up

    1.02
    * Added dropping Ice

    1.01
    * Added dropping Glowstone
    * Added dropping Wooden/Cobblestone Stairs
    * Added dropping Glass

    1.00
    * Initial release - supported dropping Bookcases only



    sorry for my poll looking the way it does, i accidentally submitted the thread before i could proof read the poll Q&A and now i can't figure out how to fix it.

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

    fireb33

    great plugin!

    Could you add a simple config file for disable a item drop?
     
    chokladio likes this.
  3. Offline

    Juze

  4. Offline

    icomeinpieces

    i can give it a try.

    weird your plugin never came up in my searches.
    however programing this simple plugin gave me some practice coding in java.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  5. Offline

    Rick

    no permissions? :(
     
  6. Offline

    AFakeman

    Well, staircase drop... wait for it... it's coming... staircase! And w/o any plugins.
     
  7. Offline

    icomeinpieces

    try a vanilla version of the your game client and server and try it again, otherwise please don't come in here saying my plugin is fake.

    in my tests, default behavior results in either 1 wooden plank or 1 cobblestone (depending on the type of stairs you broke)

    no permission nodes, this plugin checks to make sure a person is part of a group that can build or not but that is about it right now.

    this is a config file now i just updated my plugin. you can disable any one type of drop or choose a second option
    I'm updating my OP right now to include the update and instructions for config file.

    Is this sufficient? or are you looking to restrict who can get drops and who doesn't?

    if it's the latter then I'll add it to my todo list.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  8. Thanks for putting the last-update date in the title, i wish more people did this.
     
  9. Offline

    icomeinpieces

    I agree, it not a huge thing but just really nice to have. and your welcome :)

    i'm trying to test my plugin with a new feature against the new CB814 build. however anyone who has experimented with this version or even the vanilla version of 1.6.4 minecraft server may have noticed the incredible lag and horrible lag holes. ssoooo i guess till notch fixes the server side of things this plugin is on hold. i will build it against the last RB on CB and i might release that so we will see how things play out.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
    AS1LV3RN1NJA likes this.
  10. Offline

    Travis_Hironak

    Nice plugin, but I have an issue with the config file, I edit it and save it but when I start/reload my server the config file is overwritten and all options are resetted to 1.

    No error in the console. CB 803.


    Edit : It works now, I don't know why. I just restarted the server one more time and it worked. Thanks for this plugin, it's very useful.
     
  11. Offline

    icomeinpieces

    the plugin writes to the config file on server shutdown. so just make sure you make your edits after shutdown and before startup
     
  12. Offline

    Travis_Hironak

    Ok, thanks.
     
  13. Would like Permissions support indeed. A single node would do.
     
  14. Offline

    icomeinpieces

    i'll be tackling permissions today. (hopefully will have it done in the next few hours). there will be a node for each type of drop and of course a node like UD.drop.* for all drops.

    single drops will prolly be like UD..drop.glowstone and UD.drop.boat. that sorta deal.
    at this point i'm sure enough that is what it will be so that if you (or anyone for that matter) want, you can set up your permissions now in time for the release sometime today and be ready to go right away.

    if there is a BIG interest in setting permission nodes (ex. player 1 gets a boat, while player 2 only get 5 wooden planks), i might implement something like that (probably useful for RPG style servers mostly), but as it will stand for today the nodes will effect a yes or no type permission to the drops, not a setting option.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  15. Offline

    icomeinpieces

    permissions supported now enjoy
     
  16. Plugin is spamming these:

    [INFO] Something went wrong with WorldGuard or Permissions detection, please advise author
     
  17. Offline

    icomeinpieces

    what version of CB, world guard, permissions, and undroppableDroppables are you using?

    @Joy nevermind i know where the error is. I'll have an update in a few minutes

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  18. Offline

    icomeinpieces

    NOTICE: i discovered a bug, it's seems BigBrother antigriefing plugin is not catching blocks that break under this plugin.
    I'm working on it now to fix the problem, not sure when i will have it out.

    shortly after I posted my notice above i managed to correct the problem. however i discovered that the BigBrother plugin was not registering ice breaking properly due to the way i was handling the after effects of ice. I have figured out a rough hack at accomplishing how i was preventing water from going everywhere for my new version (not yet released), however water will tend to spread at least one block from where ice is broken before disappearing. I'm still looking into this issue, however if no one feels this is an issue compared to not having the ability to roll back changes, let me know and i'll put up my next version sooner rather then later, otherwise it will probably be a couple of days (maybe more) before my next release of this plugin.

    also I'm thinking i might implement mining creature spawners however the downside is there is no way to easily preserve the type based on how i've coded my plugin thus far. if this is not a problem i can implement easily enough, just let me know this is what you would like. keep in mind there is another plugin call creaturebox that handles creature spawners rather well in that it retains the creature spawner type after being mined.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  19. Offline

    icomeinpieces

    EDIT: this post was about how insomnia allowed me to make 1.14 of my plugin earlier then i thought i was going to be able to do. how ever it had glaring bugs that in my normal frame of mind i would not have allowed to get released. so don't use it, new version since is available.
     
  20. Offline

    solarcloud7

    Right now there is a problem with duping glass and lightstone from the Magic Carpet plugin. Shame there is no open source for this. I would love to help submit a fix. Anyway, it would greatly be appreciated because we love this plugin, but we cant use it to its full potential.
     
  21. Offline

    icomeinpieces

    what version of the two plugins are you using as well as your CB version? i just downloaded the latest magic carpet to test against my posted 1.14 version of UndroppableDroppables and CB 818 and I can't seem to trigger this dupping problem you speak of. in fact with both plugin active I don't even get glass from the carpet which i assume is intended.

    my only guess is my fix for the Big brother issues from 1.13 and before and fixed as of 1.14 has solved this issue as well.
     
  22. Offline

    solarcloud7

    Very nice. updated and that was the fix. Thanks icomeinpieces!
     
  23. Offline

    icomeinpieces

    your welcome, do you use Big Brother on your server for administration purposes?
    If so the 1.14 version of my plugin is suppose to fix issues with Big Brother not working right with my plugin, i have tested it a fair bit with Big Brother on my server but perhaps you can test it out for me as well? the major area of concern was ice, my previous attempts at preventing water spawn was causing most of the issues as it kept rolling back broken ice blocks to water.
     
  24. Running MC 1.5.5
    Undroppables 1.14

    If do /mc, whack some glass, glass pops out lootable and all :S
     
  25. Nice, I already have a simiar plugin that works just fine (that's because I don't restrict people to build/destroy).

    But something that would be really usefull would be to destroy stairs as fast as their respective blocks, because they're a pain to destroy aswell.... fences too :}
     
  26. Offline

    icomeinpieces

    i could maybe add changing the speed not sure, it would be as low priority though it's kinda outside the purpose of this plugin though, it's just suppose to make things drop not drop faster.

    you sure you using those two plugins at those versions i ran my 1.14 versions and MC 1.5.5 on my test server and the only glass i could look was glass not connected to the carpet. maybe your running another plugin that is conflicting? check your console output to confirm the versions of said plugins.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  27. Well, from your thread description and title, I understood that this plugin's purpose is to ease building and rebuilding :p
    But there are plugins that already alter speed of harvest, there's a simple one for mining obsidian faster/slower, you could look into that code :p
     
  28. Offline

    icomeinpieces

    well i'll look into it, however the description was meant to imply that you might have to remine/gather stuff that was lost lol. I'm not wanting to much jammed into this simple plugin that might conflict with other plugins though so this will go on my todo list as low priority
     
  29. Offline

    maino

    When I break glass, grass or one of the others, then i get for example as grass, 1 grass and one dirt...
     
  30. Offline

    icomeinpieces

    are you asking what drop?
    if so then if you play on default settings then you can refer to the what blocks in my OP:
    I'll include it here for you as well
    Show Spoiler

    Item in question – what they used to drop – what my plugin makes them drop with option 1 enabled

    Wooden Stairs - Wooden planks - Wooden stairs
    Cobblestone Stairs - Cobblestone block - Cobblestone stairs
    Glowstone - Glowstone dust - Glowstone item
    Glass - nothing - Glass item
    Bookcase - nothing - Bookcase item
    Ice - nothing(unless you include water) - Ice item
    Grass - Dirt item - Grass item
    Boat - 3 wooden planks and 2 sticks - Boat

    of course this is what drops with option 1 enabled in the config file.
    Did that help solve your question?
     

Share This Page