From eaabf403010b2d1354d2447748e62c232a0bcb68 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 11 Nov 2021 02:54:44 +0000 Subject: [PATCH] Add commented out alias overrides Eventually, worldedit *will* become an optional dependency. The rationale for this is that WorldEditAdditions is outgrowing the core WorldEdit API, and we want to add new features such as toggling safe_region on and off with a chat command and other such goodies. Merging the 2 mods is not something that has been discussed (due mainly because I'm far too nervous to even ask the question in the first place), but the 2 codebases are fundamentally different (and for good reason, as WorldEditAdditions splits code over many different files to improve maintainability and scalability) so this would be a significant undertaking. At no point however will WorldEditAdditions become incompatible with WorldEdit itself. The 2 mods should happily co-exist with one another (so long as you keep them both updated of course). --- worldeditadditions_commands/init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/worldeditadditions_commands/init.lua b/worldeditadditions_commands/init.lua index 25e3c72..59c507d 100644 --- a/worldeditadditions_commands/init.lua +++ b/worldeditadditions_commands/init.lua @@ -87,3 +87,11 @@ worldedit.alias_command("flora", "bonemeal") -- Measure Tools worldedit.alias_command("mcount", "count") worldedit.alias_command("mfacing", "mface") + + +--- Overrides to core WorldEdit commands +-- These are commented out for now, as they could be potentially dangerous to stability +-- Thorough testing is required of our replacement commands before these are uncommented +-- TODO: Depend on worldeditadditions_core before uncommenting this +-- worldeditadditions_core.alias_override("copy", "copy+") +-- worldeditadditions_core.alias_override("replace", "replacemix")