Minecraft CBWrapper mod 2026 download
logo
minecraft mod CBWrapper

CBWrapper

Game Version: 1.8.1
Total Downloads: 19,175
Updated: Mar 19, 2015
Created: Mar 10, 2013
Download CBWrapperDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
CBWrapper for 1.8.3 release 11.79 KB Mar 19, 2015 1.8.1 4,009 download CBWrapper CBWrapper for 1.8.3 releaseDownload
CBWrapper 1.8 release 11.68 KB Mar 19, 2015 1.8.1 804 download CBWrapper CBWrapper 1.8 releaseDownload
CBWrapper 1.4 release 7.29 KB Oct 13, 2013 1.6.4 2,723 download CBWrapper CBWrapper 1.4 releaseDownload
CBWrapper v1.3 release 8.65 KB Jun 25, 2013 CB 1.5.2-R1.0 1,633 download CBWrapper CBWrapper v1.3 releaseDownload
CBWrapper v1.1 release 8.88 KB Apr 20, 2013 CB 1.5.1-R0.2 1,043 download CBWrapper CBWrapper v1.1 releaseDownload
CBWrapper v1.0 release 8.34 KB Mar 10, 2013 CB 1.4.7-R1.0 738 download CBWrapper CBWrapper v1.0 releaseDownload
CBWrapper 1.7 beta 7.04 KB Jun 27, 2014 CB 1.7.2-R0.3 2,204 download CBWrapper CBWrapper 1.7 betaDownload
CBWrapper 1.6.1 - CraftBook compatibility version beta 8.88 KB Mar 22, 2014 CB 1.7.2-R0.3 2,211 download CBWrapper CBWrapper 1.6.1 - CraftBook compatibility version betaDownload
CBWrapper 1.6 - CraftBook compatibility version - Bugged beta 8.89 KB Mar 20, 2014 CB 1.7.2-R0.3 338 download CBWrapper CBWrapper 1.6 - CraftBook compatibility version - Bugged betaDownload
CBWrapper 1.6 beta 8.89 KB Mar 20, 2014 CB 1.7.2-R0.3 343 download CBWrapper CBWrapper 1.6 betaDownload
CBWrapper 1.5 beta 8.60 KB Jan 30, 2014 CB 1.7.2-R0.2 621 download CBWrapper CBWrapper 1.5 betaDownload
CBWrapper v1.2 beta 9.53 KB Jun 2, 2013 CB 1.5.2-R0.1 377 download CBWrapper CBWrapper v1.2 betaDownload
CBWrapper 1.8_alpha alpha 5.70 KB Feb 21, 2015 1.8 804 download CBWrapper CBWrapper 1.8_alpha alphaDownload
CBWrapper 1.4-No Debug Messages alpha 7.16 KB Oct 24, 2013 CB 1.6.4-R1.0 1,012 download CBWrapper CBWrapper 1.4-No Debug Messages alphaDownload
CBWrapper for Java 6 alpha 9.00 KB May 13, 2013 CB 1.5.2-R0.1 315 download CBWrapper CBWrapper for Java 6 alphaDownload

Description

Share this:

CBWrapper

Concept

Have you ever wanted to be able to use WorldEdit from command blocks? Or other plugins, too, whose commands won't work from command blocks. Well, this is the plugin for you! When the command /cw is run from a command block, it will create a dummy player where the command block is and run the command specified in the command parameters!

News

Some people (everybody) were getting issues between CBW 1.8_alpha, Essentials, and a few other plugins. These conflicts are a side effect of how CBW 1.8_alpha works and is what I hoped wouldn't happen. Avyge1l came up with a solution, which I have now implemented. The plugin now works almost exactly the same way it did in 1.7, but it works for 1.8 still.

Installation

Standard bukkit plugin installation; download the CBWrapper.jar and stick it in your plugins folder

Source Code

Version Source Link
Development Version https://github.com/misson20000/CBWrapper
Version 1.8.3 (current) https://github.com/misson20000/CBWrapper/tree/v1.8.3
Version 1.8 https://github.com/misson20000/CBWrapper/tree/v1.8
Version 1.8_alpha https://github.com/misson20000/CBWrapper/tree/v1.8-playerlist

Usage

If anything doesn't make sense, you might want to consult this page, which I think is a bit more friendly but less clear.

Just tell me how to use the plugin as fast as you can

Put /cw in front of your commands and remove the first slash. WorldEdit commands will have one slash left and other commands will have no slashes left. Use commands just like you would as a player. Look at the examples for complicated things

That was great but didn't make much sense

That's what this section is for. Here I'll explain everything in more detail

CBWrapper adds one command, /cw for use in command blocks. The general usage is as follows:

/cw [-u username] [-w world] [ -o x y z] <command> [arguments]

For many purposes, however, simply

/cw <command> [arguments]

is sufficient.

The /cw command create a fake player and runs the command as it. This allows you to use commands from plugins that would usually only work for players. The best example of this would be WorldEdit. WorldEdit is usually meant for only players to use, and has no support for command blocks. Using the /cw command, you can trick WorldEdit into thinking that a player is using it and allow the operation.

Say you wanted a command block system to reset a spleef arena every time a new round starts.
You could put a command block at each corner to run the WorldEdit selection commands //pos1 and //pos2 and another
command block to replace the empty blocks with snow or whatever material you are using.

What if I want to have the command blocks far away? No problem. Use the -o option. -o originally stood for offset, but now it would make more sense as -p for position. Oh well. You give it 3 numbers, which are interpreted as coordinates. And numbers starting with a ~ will be interpreted as relative, so -o 5 ~0 -4 would mean run the command at X coordinate 5, use the command block's Y coordinate, and Z coordinate -4.

How about selecting regions in different worlds?
Use the -w for world option. It takes one parameter: the name of the world to run the command in. Usually this would be "world", "world_nether", or "world_the_end." If you have Multiverse or something installed, the name of the multiverse world should work too. The -w option is best used with -o, because otherwise your command will be run in the same position, but in the nether or whatever world you specify.

That's great, but how can I prevent my selections from colliding?
Pretend to be different players with the -u option. It takes one parameter: the username it pretends to have. WorldEdit thinks it's different players, but it actually isn't any players at all. It's just command blocks.

Examples

Select corner 1 of a WorldEdit selection: /cw /pos1

Select corner 2 of a WorldEdit selection: /cw /pos2

Replace blocks in selection: /cw /replace air snow
Make sure you don't use /set or /wall, as those might delete your command blocks!

Ban whoever dares approach the command block and pretend that someone else did it: /cw -u @r ban @p

Select a corner 2 blocks above the command block /cw -o ~0 ~2 ~0 /pos1

Select the coordinates (0, 0, 0) in the nether: /cw -w world_nether -o 0 0 0 /pos1

Stop the server: /cw stop

Help me it still doesn't make sense!

Leave a comment below. Post the commands you tried, what you're trying to do, and anything else you think would be helpful.
Be careful with the wiki formatting, it can mess things up. Usually putting {{{ and }}} around your commands helps

Permissions

There is only one permission node, "cbwrapper.cb", for the /cw command

Other Notes

  • The dummy player's username, by default, is "@"
  • The dummy player's position is the position of the command block it was run from, unless you use the -o flag
  • The dummy players isn't actually registered as a player, so you can't teleport people to it or anything
  • The dummy player is an op with all permissions. The only bit of security is that the dummy player is only created by command blocks, which can only be edited by ops in creative mode

If you comment anywhere other than this page, I probably won't see it for at least a few months. PMs are fine, too

Comments

Add a comment