Sueta

CommandBlock Replacer

v1.0

A plugin designed to change commands inside command blocks quickly.

·Plugin


COMMANDBLOCK REPLACER

This plugin is targeted to developers who use Command Blocks in their servers, and it's designed to replace commands inside Command Blocks in an easy and quick way.
If you ever had the need to replace certain parameters of a command inside multiple Command Blocks ( perhaps raising the coords a few blocks, or changing a team's name? ); this plugin is for you.

HOW DO I USE THIS PLUGIN?

In order to use this plugin, you must first choose what mode you want to use.

COORDS REPLACEMENT MODE:
/cbr replace coords <X> <Y> <Z>

It allows you to change the first 3-coords-set inside a command block. You can modify them relatively or setting a specific coords, while keeping the command block's own relativity if it has it.
The coords input are the new ones. You can change the coords relatively by putting "~" in front of the number.

STRING REPLACEMENT MODE:
/cbr replace string <originalString> <newString>

It allows you to replace a string for another. Keep in mind that it'll search for the EXACT string, so it's case sensitive, and if it has any escape characters "\", you must input them as well.
If you need to use spaces, either for the original string or the new one, input 2 "_", for example:

Hello__world -> Hello world

=============================================================================================

There's also different ways of using this plugin. They all use a wand item you can change to whatever item you prefer.
Once you select what you want to replace, it will default to the iron hoe as a wand, and the right clicking mode.
You can change the wand with /cbr wand set , while having the new wand item in your main hand.

RIGHT CLICK SELECTION MODE:
/cbr wand mode rightclick

It allow you to replace by right clicking a command block with the wand.

RANGE SELECTION MODE:
/cbr wand mode range <distance>

It allow you to replace command blocks inside the area by right clicking them the wand.
=============================================================================================
And finally, you can stop the wand from replacing commands with: /cbr stop

I'M MISSING A FEATURE! / I HAVE SOME FEEDBACK FOR YOU!

Don't hesitate to leave a comment in the plugin discussion! I'll gladly try to help you and code in the new features if possible.

Similar projects

Plugin →