# Minect is library that allows a program to connect to a running Minecraft instance without
# requiring any Minecraft mods.
#
# © Copyright (C) 2021-2023 Adrodoc <adrodoc55@googlemail.com> & skess42 <skagaros@gmail.com>
#
# This file is part of Minect.
#
# Minect is free software: you can redistribute it and/or modify it under the terms of the GNU
# General Public License as published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# Minect is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
# the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along with Minect.
# If not, see <http://www.gnu.org/licenses/>.
function minect:reset_logging
execute align xyz positioned ~-1 ~2 ~ positioned ~-14 ~-251 ~-7 at @e[type=area_effect_cloud,tag=minect_connection,dx=15,dy=252,dz=16] positioned ~1 ~-2 ~ run fill ~ ~ ~ ~14 ~251 ~7 stone replace chain_command_block
execute align xyz positioned ~-1 ~-1 ~-1 run kill @e[type=area_effect_cloud,tag=minect_cursor,dx=3,dy=3,dz=3]