Inactive [MECH] Stackable 0.5.1 - Control the stackability of any item [766]

Discussion in 'Inactive/Unsupported Plugins' started by DjDCH, Jan 18, 2011.

  1. Offline

    DjDCH

    Hello everybody,

    Since I started this topic to request a plugin who make sign stackable, I decide to make this plugin it myself. So, this is it!

    Stackable - Version 0.5.1

    This plugin provide you the ability to choose the stack size of any item in the game. You have the possibility to increase a stack size, reduce it or even disable it. Also, set a stack size to zero removed completely any stack of this item from the inventory.

    How to install:
    The only thing you need to do is download the zip containing the jar and unzip it in the plugins directory.

    How to configure:
    If you want to configure this plugin, edit the stackable.properties inside the directory Stackable, which is inside the plugins directory. You may want to remove or add item. Just use the enum name (from the class Material of Bukkit) or the item ID for the property name and the stack size for the property value. Any undefined item in the configuration file will use its default stack size value. For the items group, they are all listed in the default config file. You may want to remove it or edit the stack size value of any items group. Notice that define a item stack size who is contains in a items group will overwrite the value of the items group.

    How to use:
    While the proper events that I need are not implemented yet, you will need to use the command /stackable (or the aliases /s or /stack) to rebuild your item stacks (automatically rebuild inside your inventory) or the rebuild the chest content that you are aiming at. If your inventory or the chest become filled at any moment during the process, all supplementary item will be dropped in front of you/chest.

    Stack Protection feature:
    DeNarr make me notice that stacked item can be lost when using it. This is applying to item that is normally unstackable. In fact, these items weren't design to be used when stacked. So, I have come with this idea, to make something to protect stacks from being lost. This feature will split any stack of tools, weapons, buckets and soup when they are used. Notice that buckets will always be drop since a minecraft bug prevent me from adding the splited stack to the inventory. Notice also that the Stack Protection will not always working for tools and weapons when damaging a entity.

    Pickup event rebuilded:
    With this new update, the pickup event is now properly handled. When you will pickup an item, it will be added to any existent stack while respecting the stack size values from the config file.

    Todo:
    * Todo, etc. on my redmine
    * Add a configuration file
    * Re-organize configuration file
    * Re-organize source code
    * Implement all event hooks
    * Improve server log
    * Add sources and Javadoc
    * Add items group
    * Add Stack Protection feature

    Default configuration file:
    Code:
    # Enable debug print in game
    enable-debug-print=false
    
    # Tools items group. (Shovels, Pickaxes, Axes, Hoes and Fishing Rod)
    @tools=1
    
    # Weapons items group. (Swords and Bow)
    @weapons=1
    
    # Armors items group. (Helmets, Chestplates, Leggings and Boots)
    @armors=64
    
    # Foods items group. (Apple, Mushroom Soup, Bread, Raw Porkchop, Cooked Porkchop, Golden Apple, Raw Fish, Cooked Fish and Cake)
    @foods=32
    
    # Vehicles items group. (Boat and Minecarts)
    @vehicles=32
    
    # Sign
    sign=64
    
    # Wooden Door and Iron Door
    wood_door=64
    iron_door=64
    
    # Wool
    wool=32
    
    # Empty bucket
    bucket=16
    
    # Storage Minecart and Powered Minecart
    storage_minecart=16
    powered_minecart=16
    

    Changelog:
    See changelog (open)
    Code:
    Stackable - Version 0.5.1
    ----------------------------
        * Build with Bukkit #681
        * Tested with CraftBukkit #766
        
        Minor features changes
        -----------------------
        * Armors is now the stacks group for armor-like items and will replace amors stacks group
        * Amors stacks group now is deprecated and will be remove permantly in the next version
        
        Bug fixes/development issues
        -----------------------------
        * Fix code for the new Bukkit version
        
        Know bug
        ---------
        * Double chest are not supported
        * When using a bucket on a triggerable block, both event are execute
        * Mushroom Soup: http://getsatisfaction.com/mojang/topics/no_bowl_from_mushroom_soup
    
    Stackable - Version 0.5
    ----------------------------
        * Build with Bukkit #652
        * Tested with CraftBukkit #670
        
        Major features changes
        -----------------------
        * Pickup event rebuilded
        * Chest inventory can be rebuilded by aiming it when using the /stackable command
        
        Minor features changes
        -----------------------
        * Add aliases /s and /stack for /stackable
        
        Bug fixes/development issues
        -----------------------------
        * Fix code for the new Bukkit version
        
        Know bug
        ---------
        * Double chest are not supported
        * When using a bucket on a triggerable block, both event are execute
        * Mushroom Soup: http://getsatisfaction.com/mojang/topics/no_bowl_from_mushroom_soup
    
    Stackable - Version 0.4.6
    ----------------------------
        * Build with Bukkit #417
        * Tested with CraftBukkit #455
        
        Bug fixes/development issues
        -----------------------------
        * Fix code for the new Bukkit version
        
        Know bug
        ---------
        * Mushroom Soup: http://getsatisfaction.com/mojang/topics/no_bowl_from_mushroom_soup
    
    Stackable - Version 0.4.5
    ----------------------------
        * Build with Bukkit #412
        * Tested with CraftBukkit #432
        
        Bug fixes/development issues
        -----------------------------
        * A lot of fix code for the new Bukkit version
        
        Know bug
        ---------
        * Mushroom Soup: http://getsatisfaction.com/mojang/topics/no_bowl_from_mushroom_soup
    
    Stackable - Version 0.4.4
    ----------------------------
        * Build with Bukkit #144
        * Tested with CraftBukkit #323
        
        Major features changes
        -----------------------
        * Added Stack Protection feature
        
        Minor features changes
        -----------------------
        * Switch to new onCommand method
        * Property enable-short-command is now unused
        
        Bug fixes/development issues
        -----------------------------
        * Fix code for the new Bukkit version
        
        Know bug
        ---------
        * Mushroom Soup: http://getsatisfaction.com/mojang/topics/no_bowl_from_mushroom_soup
        * Stack protection is sometime buggin
    
    Stackable - Version 0.4.3
    ----------------------------
        * Build with Bukkit #102
        * Tested with CraftBukkit #210
        
        Bug fixes/development issues
        -----------------------------
        * Fix code for the new Bukkit version
    
    Stackable - Version 0.4.2
    ----------------------------
        * Build with Bukkit #82
        * Tested with CraftBukkit #161
        
        Minor features changes
        -----------------------
        * Code design improved
        
        Bug fixes/development issues
        -----------------------------
        * Forgot to add bow to the weapon items group
    
    Stackable - Version 0.4.1
    ----------------------------
        * Build with Bukkit #71
        * Tested with CraftBukkit #135
        
        Bug fixes/development issues
        -----------------------------
        * Properly disable the plugin when initialization error occurred
        * Forgot to add fish to the food items group
    
    Stackable - Version 0.4
    ----------------------------
        * Build with Bukkit #68
        * Tested with CraftBukkit #128
        
        Major features changes
        -----------------------
        * Add five general items group
        * Sources now available.
        
        Minor features changes
        -----------------------
        * Default configuration file update
        * Javadoc added to all source files
        
        Bug fixes/development issues
        -----------------------------
        * Made damaged tools unestackable to avoid auto repared tools
        * MaterialData is now keep for Wools and Dyes
    
    Stackable - Version 0.3.1
    ----------------------------
        * Build with Bukkit #57
        * Tested with CraftBukkit #89
        
        Bug fixes/development issues
        -----------------------------
        * Forgot to update the default configuration file
    
    Stackable - Version 0.3
    ----------------------------
        * Build with Bukkit #57
        * Tested with CraftBukkit #89
        
        Major features changes
        -----------------------
        * Configuration file completely redesigned
        * Possibility to choose the stack size
        * Possibility to limit the stackability of already stackable item
        * Item groups removed
        
        Minor features changes
        -----------------------
        * Server log improved
        * Code design improved
        
        Bug fixes/development issues
        -----------------------------
        * Stability improved
    
    Stackable - Version 0.2
    ----------------------------
        * Build with Bukkit #56
        * Tested with CraftBukkit #86
        
        Major features changes
        -----------------------
        * Added configuration file 
        * Added groups of item stack
        
        Minor features changes
        -----------------------
        * Server log improved
    
    Stackable - Version 0.1
    ----------------------------
        * First release
        * Build with Bukkit #56
        * Tested with CraftBukkit #80
        
        Major features changes
        -----------------------
        * Added /stackable command
        * Sign, Wooden door and Iron door are now stackable

    Download Stackable Version 0.5.1 (zip)
    Download Stackable sources version 0.5.1
    Thanks to you for supporting my plugin ! ;P
     
    wassilij, Jef Elrod, harakiwi and 2 others like this.
  2. Offline

    ShadowDrakken

    the client doesn't let you manually sack unstackables... you have to use /s or /stack while not facing a container... then any new ones picked off the ground auto-stack as well
     
  3. Offline

    Freezy

    Found an item duplication bug where in combination with MyWolf, my wolf's inventory would pick up some raw porkchops and instead of picking up all 6, he picked up 6 stacks each containing one more then the previous stack: 1,2,3,4,5 and 6 raw porkchops.

    This might also occur on other plugins that have other types of storage container affecting plugins (like auto-gather, auto-mine, auto-harvest and auto-forest plugins).
     
  4. Offline

    Celtic Minstrel

    Actually, it sort of does.
     
  5. Offline

    tinytiny123

    doesn't work for me... :(
    nothing happens if i install this plugin...
     
  6. Offline

    Scandragon

    Is it possible to have a version without the stack protection feature?
    We've used stacked tools on my server since the beginning.. Without any of the problems you mention.. But now the stack is split when used
     
  7. Offline

    Scipione

    does it work with 1.6 ?
     
  8. Offline

    christley

    0.5.1 creates stacks higher than 64. but when you log out it will not save that so its 64 again while losing items.
    can you do so it creates a new stack when 64 is reached?
     
  9. Offline

    Hitman4Hire

    818 support?
     
  10. Getting this error on bukkit #861

    06-11 05:18:29 [WARNING] Stackable: Group amors is DEPRECATED, use armors instead.
    2011-06-11 05:18:29 [INFO] Stackable: Configuration file loaded.
    2011-06-11 05:18:29 [INFO] Stackable: Version 0.5.1 enable.

    Still works I guess - just for info.
    [Edit]
    Sorry - my fault - just needed to edit my stackable.properties file.
     
  11. Offline

    christley

    Works with b860
     
  12. Offline

    Fogbear

    Works please b860
     
  13. Offline

    RebornSheep

    What is the permission code for this plugin?
    My players can't use the command /stack, they don't have the permissions to do that.


    Thank you.
     
  14. Offline

    iFreZzAx

    Broke with latest RB ? :(
     
  15. Offline

    Motumbo

    can we please get an update on this for 928?
     
    hofec likes this.
  16. Offline

    hofec

    i think DjDCH is trying to hook some new events from Affo's BukkitContrib, right ?

    anyway, good luck with it ! We love your plugin.. :D [diamond]
     
  17. Offline

    Toxik

    I hope these two statements are related, because to me the plugin is simply not done as long as we're still expected to use commands. Fingers crossed for this awesome plugin. It's a shame we can't stack items like signs, beds or food in the base game.
     
  18. Offline

    Xordaii

    Don't forget buckets. I am sorry, but while you shouldn't be able to stack full buckets, have you ever seen someone with a ton of them NOT stack buckets? Who in their right mind carries one bucket at a time?
     
  19. Offline

    Leemur

    does not work with 928
     
  20. Offline

    DjDCH

    Exactly.

    Acknowledge.
     
  21. Offline

    tiga05

    I have the same Problem. My User get the message "You dont have Permission to use that command" with Permissions v2.7.3 . But i thought permissions is not supportetd:eek:.
     
  22. you should use permissions 2.7.4 , most (about all) plugins work with them, unlike 2.7.3 most wont work with this.

    also does this work out with 928?
     
  23. Offline

    ssechaud

    Confirmed working on CB 935!
     
  24. Offline

    killraven

    ETA on 928 compatibility?
     
  25. Offline

    DjDCH

  26. this doesnt work my friends server and he got 935 bukkit
     
  27. Offline

    mrdeadlocked

  28. this doesnt work my friends server and he got 935 bukkit
     
  29. Offline

    Xordaii

    Not cool to quote yourself.

    Running 935, works fine here :) Maybe post an error log from console, config file, and exactly what part isn't working (what he expected it to do, what happened instead). Use the quote tabs in the editor, and put "spoiler" where it says "quote".
     
  30. Offline

    thegofa

    I have a little server going for the family, all the plugins run fine but we need a way
    to stack our food etc. I downloaded this mod, put the jar into the plugin folder, but
    when the server is started nothing stacks? Quite new to this so be gentle please :)

    Cheers,
    TG [diamond]
     
  31. Offline

    Xordaii

    How did you test? Try dropping a pile of food then picking it up? Does it restack everything in piles for you? Some things you have to edit the pile size in the config for, but I seem to remember food stacked already.
     

Share This Page