Skip to content

ReLuLu/ComBlockCommandSearchAndReplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ComBlockCommandSearchAndReplace

A plugin to mass-modify commands inside of command blocks in a defined area.

How it works

create selection

  • /bp1 while pointing at the desired block
  • /bp1 <x> <y> <z> or submit its coordinates
  • /bp2
  • /bp2 <x> <y> <z>
  • /bnear <n> or just create a cuboid selection with a radius of n blocks
  • /bcancel cancels any selection

modify commands

This is where things turn complicated. The basic syntax looks like this

  • /blockreplace <searchfortoken> <replacewithtoken> <also-look-for> <and-also-replace> <minecraft:give> <essentials:give> so you could use it as
  • /blockreplace <effect> <minecraft:effect> <tp> <minecraft:tp> <teleport> <minecraft:teleport> <clear> <minecraft:clear> <give> <minecraft:give> <summon> <minecraft:summon> but you might want to specify more than just a word because you realised replacing give and clear with minecraft:clear and minecraft:give screwed up the /effect clear and /effect give commands, use quotes ("") and run the process again
  • /blockreplace <"effect minecraft:clear"> <"minecraft:effect clear"> <"effect minecraft:give"> <"minecraft:effect give"> and in case you realise command blocks that work with chestplates no longer work, you might want to fix what you broke before
  • /blockreplace <sminecraft:tpl> <stpl> but you may have noticed you've screwed up commands following an execute [...] run pattern, so you might want to change only these back
  • /blockreplace <"run minecraft:effect"> <"run effect"> <"run minecraft:tp"> <"run tp"> <"run minecraft:teleport"> <"run teleport"> <"run minecraft:clear"> <"run clear"> <"run minecraft:give"> <"run give"> <"run minecraft:summon"> <"run summon">

output

If your selection contains a huge number of command blocks, you will face a wall of spam with commands the way they were before changing and what they are afterwards. Consider this type of spam as comfort so you can determine from your chatlog if things went ok or wrong, without having to look inside any command block.

About

A plugin to mass-modify commands inside of command blocks in a defined area.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages