[EDIT] CuboidPlugin v1.3 - Cuboid-related functions! [860]

Discussion in 'Inactive/Unsupported Plugins' started by robin0van0der0v, Mar 31, 2011.

  1. Offline

    robin0van0der0v

    CuboidPlugin - Cuboid-related functions!
    Version: v1.3

    Features:
    • Select a area.
    • Cuboid a area.
    • Replace blocks with other blocks in a area.
    • Create walls in a area.
    • Create a box in a area.
    • Get the size of a area
    Download CuboidPlugin!
    Source is inside the jar file.

    How to use:
    First right-click two blocks of the map with a item you choosed (standard a stick).

    Use "/cuboid [id]<:data>" for making the whole selecting that block.
    Example:
    /cuboid 1 - Makes the whole selection stone.
    /cuboid 35:12 - Makes the whole selection brown wool.
    /cuboid 17:2 - Makes the whole selection birch wood.

    Use "/replace [id]<:data> [id]<:data>" for replacing all blocks by a other block.
    Example:
    /replace 35 20 - Replaces all wool colors to glass.
    /cuboid 35:12 17:2 - Replaces all brown wool to birch wood.
    /cuboid 46 0 - Replaces all TNT with air.

    Use "/walls [id]<:data>" for making walls in that selection with that block.
    Example:
    /walls 1 - Creates a wall of stone.
    /walls 35:12 - Creates a wall of brown wool.
    /walls 17:2 - Creates a wall of birch wood.

    Use "/box [id]<:data>" for making a box in that selection with that block.
    Example:
    /box 1 - Creates a box of stone.
    /box 35:12 - Creates a box of brown wool.
    /box 17:2 - Creates a box of birch wood.

    Use "/size" to get the size of the selection.

    (Here a list with all blocks.)

    Permissions:
    Give the player you want this permissions for selecting a cuboid.
    Code:
    cuboidplugin.select
    Give the player you want this permissions for cuboiding a area.
    Code:
    cuboidplugin.cuboid
    Give the player you want this permissions for replacing a area.
    Code:
    cuboidplugin.replace
    Give the player you want this permissions for creating walls.
    Code:
    cuboidplugin.walls
    Give the player you want this permissions for creating a box.
    Code:
    cuboidplugin.box
    Give the player you want this permissions for getting the size of the selection.
    Code:
    cuboidplugin.size
    Known bugs:
    None. :D

    Properties:
    This plugin creates a properties file on Plugins/CuboidPlugin/config.yml. ;)

    Standard properties:
    Code:
    cuboid:
        tool: 280
        logging: true
        maxblocks: 32768
    Changelog:
    Version 1.0
    • Release.
    Version 1.1
    • Works in Beta 1.4.
    • Added data.
    Version 1.2
    • Added replace command.
    Version 1.3
    • Added walls command.
    • Added box command.
    • Added size command.
    • Properties file is now saved in YAML format.
    • Added option in the properties to turn off logging.
     
  2. Offline

    TheAnyInbox

    You realize that WorldEdit does this and more? But still, nice work! I'm sure someone will find this useful for simple stuff!
     
    emoknight likes this.
  3. Offline

    Plague

    Again, please conform to the plugin template and update to latest RB (i suggest waiting for the new 1.4 one).
     
  4. Offline

    Alex K

    If you make plugins on request, I'm gonan request herobrine. :D But seriously, this is a great alternate until worldguard gets updated, which might take a while, thanx :D
     
  5. Offline

    Glacksy

    does this plugin use the same database as the old hmod plugin? oh and can you add more stuff so it would be exactly the same as the old? alot of servers doesn't move over to bukkit because it will break the protection :p so you should use the same .data file and everything

    - thanks
     
  6. Offline

    RustyDagger

    I would love to be able to paste my old .cuboid files from the old hmod i have some large projeccts that i made saved and was unable to bring them over to bukkit.

    If any 1 knows of a way i can get the files pasted on a map (any way maybe an existing hmod/cuboid combo that will work now.) I would love to know.
     
  7. Offline

    CHIKINS!!!

    Thank you for updating this plugin, I REALLY need WorldEdit.But you made this cuboid plugin, and I needed that from WorldEdit.WorldEdit hasn't updated yet so I am soooooooo happy ur plugin is here.

    I forgot to post in my first reply that I don't know how to work the command "/cuboid id: data" how do I use it?

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

    nonifo





    Properties:
    This plugin creates a properties file on Plugins/CuboidPlugin/CuboidPlugin.properties. ;)

    Standard properties:
    Code:
    cuboid-tool=280
    cuboid-maxblocks=32768



    what is the plugins/cuboidplugin/cuboid/cuboidplugin.properties
     
  9. Offline

    CHIKINS!!!

    And your trying to say...?
     
  10. Offline

    porier01

    I have the same question as CHIKINS!!! : how to work the command "/cuboid (id[:data]" ?
    How we can use it ? :confused:
     
  11. Offline

    robin0van0der0v

    If you want stone use:
    "/cuboid 1"

    If you want white wool use:
    "/cuboid 35" or "/cuboid 35:0"

    If you want brown wool use:
    "/cuboid 35:12"

    If you want birch wood use:
    "/cuboid 17:2"


    (Complete list.)


    EDIT: Added replace command. I'm now working on a undo command. ;)
     
  12. Offline

    nonifo

    Properties:
    This plugin creates a properties file on Plugins/CuboidPlugin/CuboidPlugin.properties. ;)

    Standard properties:
    Code:
    cuboid-tool=280
    cuboid-maxblocks=32768



    hey when i start the server and stop it. it doesnt make a properties folder how do i do it?
     
  13. Offline

    robin0van0der0v

    It makes automatically a folder and file, if not. Make it by yourself. ;)
     
  14. Offline

    drwho

    thx this works 100% cb 617
     
  15. Offline

    adidaboss

    it says that there is an INTERNAL ERROR????
     
  16. Offline

    MG127

    maybe you should say that this is NOT the cuboid from hMod, this is only a simple fill and replace plugin, not more.
     
  17. Offline

    drwho

    Why dont you say NOThing and say thx to all the plugin developers that u use plugins from..
    btw its still a cuboid plugin.
    the pd`s are spending houres,days,weeks,months off there free time to make us happy.
    thx bro for beeing a troll.
     
    Nobody_XD likes this.
  18. Offline

    MG127

    i only wanted to say is so that no one here has to ask "is this the hMod cuboidplugin?", thats all. its just an plugin that uses cuboids and not the cuboidplugin from hmod, that allmost 50% of the ppl who commented above expected.
     
  19. Offline

    Altairx2x

    öhm it don`t works for me cause it don`t created the Prop file and I don`t know how i can create and what I have to write into it
     
  20. Offline

    drwho

    witch CraftBukkit are you useing im on 617 and it works fine for me
     
  21. Offline

    D3matt

    It's still a cuboid plugin, but the name Cuboid is already taken. Adding 'Plugin' to the end doesn't change that. He didn't say it was a bad plugin. All he said was that they should clarify that it's not the Cuboid from hmod. And I agree. As a matter of fact I was about ask that myself, so thanks to him, and none to you.
     
  22. Offline

    porier01

    But how I do protect an area ? :confused:
     
  23. Offline

    Maddin

    What is the difference between /cuboid and /replace?

    ~/Maddin/
     
  24. Offline

    robin0van0der0v

    That can not (yet).

    With cuboid you fill the whole selection and with replace you can replace blocks with other blocks. ;)
     
  25. Offline

    Maddin

    So if i have a hill and i /replace it with glass, i have the original generated hill made out of glass?
     
  26. Offline

    robin0van0der0v

    If you select the hill and then use "/replace 2 20" then all grass is replaced by glass. ;)
     
  27. Offline

    Maddin

    Ok, i got it :D

    Nice plugin, that's the only thing i need from WorldEdit and that's such a big plugin... Very nice work ^^
     
  28. Offline

    hamgooof

    Really nice, thanks for this ^^
    Looking through the code, could
    Code:
    [B]    public boolean is_block(int id)[/B]
        {
        	if (id == 0 || id == 1 || id == 2 || id == 3 || id == 4 || id == 5 || id == 6 || id == 7 || id == 8 || id == 9 || id == 10 || id == 11 || id == 12 || id == 13 || id == 14 || id == 15 || id == 16 || id == 17 || id == 18 || id == 19 || id == 20 || id == 21 || id == 22 || id == 23 || id == 24 || id == 25 || id == 26 || id == 35 || id == 37 || id == 38 || id == 39 || id == 40 || id == 41 || id == 42 || id == 43 || id == 44 || id == 45 || id == 46 || id == 47 || id == 48 || id == 49 || id == 50 || id == 51 || id == 52 || id == 53 || id == 54 || id == 55 || id == 56 || id == 57 || id == 58 || id == 59 || id == 60 || id == 61 || id == 62 || id == 63 || id == 64 || id == 65 || id == 66 || id == 67 || id == 68 || id == 69 || id == 70 || id == 71 || id == 72 || id == 73 || id == 74 || id == 75 || id == 76 || id == 77 || id == 78 || id == 79 || id == 80 || id == 81 || id == 82 || id == 83 || id == 84 || id == 85 || id == 86 || id == 87 || id == 88 || id == 89 || id == 90 || id == 91 || id == 92 || id == 93 || id == 94 || id == 95)
        	{
        		return true;
        	}
        	else
        	{
        		return false;
        	}
        }
    be shortented to
    Code:
        public boolean is_block(int id)
        {
        	for(int i =0;i<95;i++){
    if(id == i)
    return true;
     }
    return false;
    }
     
  29. Offline

    robin0van0der0v

    This is by the way more shorter:
    Code:
    public boolean is_block(int id)
    {
        if(id >= 0 && id <= 95)
        {
            return true;
        }
        return false;
    }
    But there is no id 26, 27, 28, 29, 30, 31, 32, 33, 34. ;)
    If anybody then use that ids then the map gets corrupted. :(
     
  30. Offline

    hamgooof

    Code:
        public boolean is_block(int id)
        {
    // you have 26 in your method...
    if((id>0 && id<27)||(id>34&&id<95)
    return true;
    else
    return false;
    }
    Would that work at all?
     

Share This Page