QuickCuboid
Zero configuration, easy to use cuboid based operations. Copy/paste and fill.
Summary
If you don't have something like WorldEdit and you just want a quick, easy way to do cuboid related things, this is the plugin you're looking for! I like lightweight plugins that offer exactly what I need and nothing else. Unable to find a good solution, I made my own plugin. QuickCuboid offers a few different "modes" so you can fill cuboids with any material you can place and copy, rotate, and paste cuboid areas.
If you don't know what a cuboid is, it's an imaginary cube containing blocks in the game. You know how you can select text MS Word by clicking in one place, holding shift, and clicking somewhere else? Well, it's the same idea with this plugin. Instead of selecting text, you're selecting blocks. Also, there's is no highlighting. Sorry. We'd have to mod your client to do that.
Use a blaze rod to select the corners of cuboids and mark locations.
As always, I'm open to any and all suggestions! :D
Features
- All commands are typed before selecting a cuboid or marking a location.
- Operations happen as soon as you finish selecting or marking.
- Modes are persistent. If you start selecting again, the plugin assumes you want to do the same thing again.
- Undo/Redo (one level of history)
- Clipboard
- Copy/Paste
- Rotate 90° clockwise
Selections
You must be holding a blaze rod and have permission to use the plugin. Make your selections by right clicking blocks.
Full Selection
This is needed for most operations. In fact, the only mode that doesn't require a full selection is "paste." To make a full selection, imagine the cuboid in your world. Right-click a block in one of the corners with a blaze rod. Then right-click the block in the complete opposite corner. There, you've selected a cuboid and QuickCuboid will immediately do it's magic! If you accidentally start a selection, you can type /cuboid cancel
to cancel the selection.
Partial Selection / Location Marking Right now, "paste" is the only mode that needs a single location. It's easy to do. Just right-click one block with a blaze rod. Read on to find out which block you need to select.
Commands
- Change Mode
/cuboid fill
- Change to fill mode (default)/cuboid copy
- Change to copy mode/cuboid paste
- Change to paste mode/cuboid off
- Turn off QuickCuboid
- Clipboard Modification
/cuboid rotate
- Rotate clipboard 90 degrees CW
- History
/cuboid undo
- Undo the last cuboid operation/cuboid redo
- Redo the last cuboid operation
- Other
/cuboid cancel
- Cancel a selection that you started/cuboid mode
- See which mode you're in
Modes
Fill
This requires a full selection. After you select the second block, QuickCuboid will look at the first block and fill the cuboid with that material. Pro tip: if you break the first block before selecting the second block, the plugin will fill the cuboid with air (because the first block would contain air).
Copy
This requires a full selection. As soon as you select the second block, the cuboid will be copied to your clipboard. Important: The first block you selected is important. Remember it's relationship the rest of the contents of the cuboid. This block is the "reference block." Think of it as the handle that you grab the cuboid by. Read about the "paste" mode to see what I mean.
Paste
This only requires a partial selection. The block that you select will be replaced with the "reference block" (imaginary handle) of the cuboid in your clipboard. This may seem completely confusing at first, but just try it out a few times. It's pretty simple.
Off
I'm not sure this needs to be explained. With cuboid turned off, QuickCuboid will ignore any thing you click with a blaze rod.
Clipboard Modifications
Rotate
This will rotate the cuboid in your clipboard clockwise by 90 degrees. This requires no selections, and it doesn't do anything to the world. You won't actually see the effect until you paste.
History
There is only one level of history. This means you can only undo once in a row, and you can only redo once in a row. This feature is a lifesaver. I have accidentally filled my house with workbenches and nearly screamed in terror. But a simple /cuboid undo
makes life happy again.
Other
Cancel
It may be a little concerning if you accidentally select a block. This command will cancel a selection that you have started. Of course this is only applicable if your current mode requires a full selection. If the mode only requires a partial selection, you can still use /cuboid undo
to reverse the damage that you may have caused.
Mode
If you forgot, use this command to see what mode you're in. Simple!
Configuration
There is only one config option: debug
. Set it to true to see all kinds of information in the console. It may help you figure out why QuickCuboid isn't working for you.
There are explanations in the file for each option, but here's an overview:
Permissions
quickcuboid.use
- Players who can use the plugin
Version Stuff:
Plans
- Allow copy/paste across worlds
- and of course we need a perms node for this
As always, I'm open to any and all suggestions! :D
Latest Release
- None uploaded yet
@HydraliskGH
You should ask questions about PEX on the PEX plugin. You will need "quickcuboid.use" permission. Also, this plugin hasn't been updated in a loooong time, so it may just not work anymore.
Hi there. I doubt this will get a response but it's worth a try. It doesn't seem to work for me. I don't really understand how I should give myself permissions with PEX. Even with tutorials, I still don't seem to get it right. I searched for a way to go into debug-mode to check if it would find any problems and maybe a solution, but I can't find that either. Please, help?
@billbertking1
It sounds like you might not know what you're doing. There's nothing you have to do with class files that I can think of whenever you're doing anything with plugins. You do need to give yourself permission to use this function however, as I said above in the description. Do you have a plugin to manage permissions? If not, I recommend using this one: http:dev.bukkit.org/server-mods/permissionsex/
I try to use it but all it's saying is "[QuickCuboid] You do not have permission" and there's no where to fix that(idk how to do the .class stuff). Help?
@musicin3d
Thanks for the reply, I really appreciate the tip!
@velocityskythe
Hey thanks for your encouragement. I've been thinking about adding something like that. I'll put it in the next release. Until I do, here's a little trick to do the same thing: After you select the first corner, break that block. Then when you select the second corner, it'll look at the first corner, see it's empty and fill the rest of your selection with air. Tada! Deletion! :D
Hi I've made a server using Bukkit and your plugin is great and I have been using it for such a long time! I have an idea for you and I don't know if your doing this already but can you please add a 'cuboid delete' mode or something similar that can delete blocks. Thanks for the plugin and hopefully you will get the time to add my idea to the plugin! Thanks! :D
@ray73864
That is possible. I'm still busy. Instead of school now, I'm trying to work enough to buy a house! :D But I'll definitely work on this when I get the itch. This is my most popular plugin, I believe.
Can this be made to work with residence? so that players can only affect things inside their own residence?
Would love to give all my players access to this awesome little plugin, but the fact that they can use it to grief another persons residence is a deal breaker for us :(
@NikoKun
Interesting. I could definitely put the limit on it. I don't have much free time right now. I'll see what I can't do.
I've been looking for a simpler worldedit style plugin, that my lower ranked users can use, since WorldEdit is so powerful only my mods have it. (And worldedit doesn't seem to have any way to set limits on how big selection edits can be, on a per-group/rank basis.)
This might be what I'd need, if it had some form of config to limit how many blocks they can change at once.. Nothing fancy, just 1 limit option, since lower users could use this, and mods can use worldedit.. But that way normal users could be limited by this plugin to smaller edits.
Could also use a few basic shapes, like circles and spheres, or even walls. And a replace-certain-blocks-inside-a-selection command might be nice too.
Anyway, just some suggestions, which would make this more desirable as a worldedit alternative.
@TheOnlyExedra
Lol no worries. I wish I could make a video, but I don't have a computer with a graphics card. If anyone could make a vid of basic usage, I would be very grateful.
Oh hey. You need to use a blazerod.
I have read the post, but I still couldn't find out how...*facepalm*
Sorry lol.
@TheOnlyExedra
Did you read this page? If you have and you still have questions, then I can help.
EDIT: Understanding the concept of a cuboid can be strange at first, and this plugin is a little barebones. This is because it is intended to be as lightweight as possible.
But the question is,
How do you use it?!
@Blackixx
Do you mean to replace WorldEdit when using WorldGuard? I will not. WorldGuard depends on WorldEdit, so I would have to rewrite an existing plugin.
Can you add worldguard support?
It's up and waiting for approval. You can get it before it's approved here.
I'm uploading the latest version that I have. It's stable. I have no documentation, so I'd love some help in that area.
@recon88
Are you serious? Crap. No one noticed this before?Ok, this is the problem everyone's been having. It was the wrong plugin all along.EDIT: And btw, a little courtesy would be appreciated. It wasn't renamed; I selected the wrong project when I exported. I have 11 projects in Eclipse, and I don't have time generous with right now. So next time you notice a mistake, say "please" when you *ask* for a fix.