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

    gustebeast

    i am having trouble in the installation, i unzipped the file and now i have a folder with a meta-inf, a plugin.yml, a com folder and 2 text files. I cant find a .jar file for the server and i cant find the config file
     
  3. Offline

    erdrickk

    That's because you uncompressed the actual .Jar file LOL.........just download it and drop it in to your plugins folder....
     
  4. Offline

    thegofa

    It loads in the Bukket window along with everything else, but when I take 10 pork chops
    from the chest, throw them on the ground and pick them up they dont stack.

    I dont need to edit the properties file as it says food = 32. Not sure why its not working :(

    Cheers,
    TG [diamond]
     
  5. it doesnt work in newest bukkits. Ive noticed this long time ago and there is no other plugins ? :O
     
  6. Offline

    wassilij

    Update? ;)
     
  7. Offline

    thegofa

    Ah ok, many thanks for the info.

    Cheers,
    TG [diamond]
     
  8. Offline

    killraven

  9. Offline

    mrdeadlocked

    This addon works fine here on the newest bukkit. Showcase dev fixed some of his code.
     
  10. Offline

    DjDCH

    Currently working on something. Hope to release that soon. Even if not totally perfect.
     
    wassilij likes this.
  11. Offline

    tinogripe

    im getting an error on the /stack command it says that i dont have permission to do that?
     
  12. Offline

    wassilij

    @tinogripe: If you have WorldGuard .. there is a /stack command too ..
     
  13. this does not stack TOOLS which id like to have stacked
    does this stack food?
     
  14. Offline

    wassilij

    i mean if he want to use the /stack command and if he have worldguard he know now where he can search the permissions ;)
     
  15. Offline

    noahwhygodwhy

    this does stack unused tools if you set it up in the config, and it does stack food
     
  16. what i must set up in config?
    when i go to plugins/worldguard and open the config.yml
    the only thing i find about STACKING is
    protection:
    enforce-single-session: true
    item-durability: true
    remove-infinite-stacks: false

    so what the hell? where i get to change these?
     
  17. Offline

    Draconicus

    Update or mark as inactive?
     
  18. Offline

    noahwhygodwhy

    umm, i changed them in config in the the stackable folder in your plugins folder
     
  19. i dont get folder for stackable when i got the jar file in plugins. it wont load it or something
     
  20. Offline

    noahwhygodwhy

    you did restart your server...right?
     
  21. of course i did, thats the odd thing
     
  22. Offline

    noahwhygodwhy

    hmm, download a new jar, you are using a pc? or are you using a mac, or linux, cause in that case i can't help you, but i'm sure someone else can, HINT HINT REST OF FORUM I"M KINDA LOST HINT HINT...sry, caps stuck
     
  23. i use PC and it works now, i dont understand why it did not last time work.. :D
     
  24. Offline

    noahwhygodwhy

    lol, can't remember how many times that's happened for me. oh well. glad that it's working now
     
  25. Offline

    elexier909

    Like the plugin, although I have a small issue with it, I have a plugin called scanner, this enables single chests to pick up items depending on whats in the chest, however I find that is doesnt stack certain things within the chest, apples being one of them. Yes the stack size is set to 64, and they do stack if i walk over them. Just aheads up.
     
  26. Offline

    Clucky

    Is there a glitch with this stacking items with different data values in the same pile, or is it just me? Because mine is stacking Sandstone slabs in with Stone Slabs (its turning Sandstone Slabs into stone slabs when dropped on the ground).

    PS: you may or may not have to have stone slabs already in your inventory, I haven't tested it without.
     
  27. Offline

    matejdro

    Can you add furnace support? If you want to cook stack of food, it will only cook 1 food and leave the rest (since by default only 1 food can fit into result box)

    Also, I don't get how to use /stackable on chest. If i have my mouse on chest, it will stack items in my inventory, not chest.
     
  28. Offline

    MisanthropX

    @DjDCH

    I need this really bad, however: the stackability is still odd.
    cant you change it to the original minecraft behaviour? So I can stack with click/right click?
    single items wont stack together within the inventory with clicks D:

    please!
     
  29. Offline

    matejdro

    I think that is not possible without client mods.
     
  30. Offline

    noahwhygodwhy

    hmm, b766? have to remove it from my server, crashes it, please update. This was really useful
     
  31. Offline

    Ragor

    update it plz, the arrows can,t be stacked!:(
     

Share This Page