[INACTIVE][MECH] PaintBucket 1.2 - Change All Adjacent Blocks At Once (Permissions 2.5.5) [740]

Discussion in 'Inactive/Unsupported Plugins' started by weasel5i2, Apr 4, 2011.

  1. Offline


    PaintBucket - Change All Adjacent Blocks At Once
    Version: v1.2

    Just like the paint bucket tool in graphics editing software, you can now change a whole set of adjacent blocks of the same type using Paint Bucket. It implements Permissions 2.5.5. Beware, this tool can eat your entire world if you're not careful! You can remove blocks entirely by replacing them with air.

    ** For a command-based version of this plugin which is actually more useful, see my other plugin, Zap - it can do the paint bucket effect specifically on walls, ceilings, and floors! **

    To start, you must first set your paint bucket block type using the /paintbucket or /pb commands (see below).​

    Once set, when you right-click any block with a paint bucket, that block and all adjacent blocks of the same type will be changed into the block type you set using the command.​

    To disable the paint bucket, you can use /paintbucket disable and it will become a normal bucket for scooping/pouring water or lava. To change it back into a paint bucket, simply issue the /paintbucket enable command.​

    If, by some chance, you accidentally initiate a paint bucket block-change and it begins eating your world, don't panic! You can cancel it with the /paintbucket stop or /paintbucket cancel commands. If you have the power to do so, a /reload will also stop the paint bucket in its tracks.​


    /paintbucket - shows command usage, or else tells you what block type your bucket is set to.
    /paintbucket <block id#>   - sets the block type to paint with
    /paintbucket <block name>   - sets the block type to paint with
    /paintbucket disable  - Makes your bucket behave like a normal bucket again
    /paintbucket enable - Makes your bucket into a Paint Bucket (default)
    /paintbucket cancel - cancel a paint operation if accidentally clicked the wrong block!
    /paintbucket stop - cancel a paint operation if accidentally clicked the wrong block!
    /pbstat - shows you how many blocks are in the queue. This number will change as the painting operation runs.
    /pb is a shortcut for /paintbucket.
    /pbs is a quick don't-panic shortcut for /pb stop and /pb cancel
    Usage node, for use of the bucket: - 'paintbucket.use'

    PaintBlock node, where you don't use a bucket (instead, the block held in your hand determines the paint block type): - 'paintblock.use' (note: enabling this will override the function of the bucket and make it work as a normal bucket. The 'paintbucket.use' node must also be enabled, in order for this one to work.)

    If you do choose to use PaintBlock mode, it would be wise to use /pb disable and /pb enable as needed, to avoid accidentally screwing up your world.. :)

    • Permissions 2.5.5 implemented.
    Download The Plugin (JAR) v1.11
    Download The Plugin (ZIP) v1.11

    Download The Source (JAR) v1.11GitHub

    Version 1.2 26-Apr-2011
    * Recompiled against latest recommended Craftbukkit build #733.
    * (hopefully) fixed (try/caught) the ClassNotFoundException thrown when Permissions is missing or wrong.

    Version 1.11 05-Apr-2011
    * Added PaintBlock mode and Permissions node for it
    * Added notification that a paint operation has begun ("Painting..")
    * Added notification that you're trying to paint when you haven't chosen a default block type to paint with.

    Version 1.1 05-Apr-2011
    * Fixed a bug where if you change a block into a falling-type block (sand,gravel) -- since it uses the Location rather than the Block in the paint bucket array -- it would find the air block at the previous location of the target block type, and start changing ALL air blocks into the paint bucket block type, resulting in the GIANT EXPANDING TETRAHEDRON OF DOOM.
    * Changed it to not paint if the target block type == the paint bucket block type.

    Version 1.0 04-Apr-2011
    * Created plugin
  2. Offline


    can u make a "blockuse" option so that it change the blocks to that block im currently holding?
  3. Offline


    Yeah, shouldn't be too hard to do :) I'll add that to the next version.
  4. Offline


    Issues with the paintblock functionality.. Even though I do NOT have - 'paintblock.use' permission set on me, it is still making every block into a paint block. I think it may be because I have - '*' permission. Yeah, come to think of it, that's probably what's going on..

    I will change PaintBlock into a one-time-only command feature instead.. basically, you'll have to type /pblock or /paintblock and then you get one click (with any type of block) before it reverts back to normal and you have to type the command again to use it again. That's much safer than the way it is now. I accidentally turned my entire castle into wool!!
  5. Offline


    I agree with that idea - I've accidentally used it far too many times, and I've actually turned it OFF for now because of that. Otherwise it fills (pun!) a VERY unique role that even the world editors don't.

    Is it possible to add a function where it will ONLY PENETRATE ONE BLOCK DEEP? I have a castle whose courtyard is made out of smooth stone, and I want to make that obsidian, but if I hit it with the bucket I'll get the tetradeathdron drill of doom turning every underground block in a sixty mile radius into obby. It'd be cool if you could make it only "coat" a surface.
  6. Offline


    I love this plugin my only complaint is that it defaults to ON everytime i join my server. I've destroyed chests and entire homes because i forgot it's on and i right click.
  7. Offline


    The Plugin says everytime i try to use a command of it:
    Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHandler
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 15 more
  8. Offline


    download not working

    ok download worked loaded plugin set to paint Neatherrack first tap on stone gave me a switch lol next tap said paintint but nothing happened

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


    Is there any chance to update this to work on 1.5 ?
  10. Offline


    Updating it today.. Also posting a command-based version called Zap. ^_^

    See my other (recently-submitted) plugin, Zap. It can do the paintbucket effect on specific surfaces such as walls, ceilings, and floors! I think you may find it quite useful.. ^_^


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


    um... where is the download for cb733?
  12. Offline


    is there anyway to get this for 733?
  13. Offline


    Considered inactive.

Share This Page