import { world, system, BlockPermutation, EntityDamageCause, ItemStack, Dimension, GameMode } from "@minecraft/server";

system.beforeEvents.watchdogTerminate.subscribe(eventData => {
  eventData.cancel = true;
});
world.beforeEvents.worldInitialize.subscribe(initEvent => {
  const customSlab = [
    "nicothekid:limestone_bricks_slab",
    "nicothekid:limestone_slab",
    "nicothekid:marble_bricks_slab",
    "nicothekid:marble_slab",
    "nicothekid:mosshroom_slab",
    "nicothekid:polished_limestone_slab",
    "nicothekid:polished_marble_slab",
    "nicothekid:rose_quartz_slab",
    "nicothekid:smooth_rose_quartz_slab"
  ]
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:double_slab", {
    onPlayerInteract: eventData => {
      const player = eventData.player;
      const block = eventData.block;
      const blockFacing = eventData.face;
      const blockLocation = block.location;
      const playerEquippable = player.getComponent("equippable");
      const itemUsed = playerEquippable.getEquipment("Mainhand");
      function decreaseItem () {
        system.run(() => {
          if (!player.matches({ gameMode: GameMode.creative })) {
            const decrementItem = itemUsed.amount == 1 ? undefined : (itemUsed.amount--, itemUsed);
            playerEquippable.setEquipment("Mainhand", decrementItem)
          }
        });
      }
      if (itemUsed === undefined || blockFacing === "South" || blockFacing === "East" || blockFacing === "North" || blockFacing === "West") return;
      if (customSlab.includes(itemUsed.typeId) && customSlab.includes(block.typeId)) {
        if (itemUsed.typeId === "nicothekid:limestone_bricks_slab" && block.permutation.matches("nicothekid:limestone_bricks_slab", {"minecraft:vertical_half": "bottom"}) && blockFacing === "Up") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:limestone_bricks_double_slab"));
          block.dimension.playSound("use.stone", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
        if (itemUsed.typeId === "nicothekid:limestone_bricks_slab" && block.permutation.matches("nicothekid:limestone_bricks_slab", {"minecraft:vertical_half": "top"}) && blockFacing === "Down") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:limestone_bricks_double_slab"));
          block.dimension.playSound("use.stone", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
        if (itemUsed.typeId === "nicothekid:limestone_slab" && block.permutation.matches("nicothekid:limestone_slab", {"minecraft:vertical_half": "bottom"}) && blockFacing === "Up") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:limestone_double_slab"));
          block.dimension.playSound("use.stone", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
        if (itemUsed.typeId === "nicothekid:limestone_slab" && block.permutation.matches("nicothekid:limestone_slab", {"minecraft:vertical_half": "top"}) && blockFacing === "Down") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:limestone_double_slab"));
          block.dimension.playSound("use.stone", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
        if (itemUsed.typeId === "nicothekid:marble_bricks_slab" && block.permutation.matches("nicothekid:marble_bricks_slab", {"minecraft:vertical_half": "bottom"}) && blockFacing === "Up") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:marble_bricks_double_slab"));
          block.dimension.playSound("place.calcite", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
        if (itemUsed.typeId === "nicothekid:marble_bricks_slab" && block.permutation.matches("nicothekid:marble_bricks_slab", {"minecraft:vertical_half": "top"}) && blockFacing === "Down") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:marble_bricks_double_slab"));
          block.dimension.playSound("place.calcite", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
        if (itemUsed.typeId === "nicothekid:marble_slab" && block.permutation.matches("nicothekid:marble_slab", {"minecraft:vertical_half": "bottom"}) && blockFacing === "Up") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:marble_double_slab"));
          block.dimension.playSound("place.calcite", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
        if (itemUsed.typeId === "nicothekid:marble_slab" && block.permutation.matches("nicothekid:marble_slab", {"minecraft:vertical_half": "top"}) && blockFacing === "Down") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:marble_double_slab"));
          block.dimension.playSound("place.calcite", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
        if (itemUsed.typeId === "nicothekid:mosshroom_slab" && block.permutation.matches("nicothekid:mosshroom_slab", {"minecraft:vertical_half": "bottom"}) && blockFacing === "Up") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_double_slab"));
          block.dimension.playSound("step.nether_wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
        if (itemUsed.typeId === "nicothekid:mosshroom_slab" && block.permutation.matches("nicothekid:mosshroom_slab", {"minecraft:vertical_half": "top"}) && blockFacing === "Down") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_double_slab"));
          block.dimension.playSound("step.nether_wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
        if (itemUsed.typeId === "nicothekid:polished_limestone_slab" && block.permutation.matches("nicothekid:polished_limestone_slab", {"minecraft:vertical_half": "bottom"}) && blockFacing === "Up") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:polished_limestone_double_slab"));
          block.dimension.playSound("use.stone", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
        if (itemUsed.typeId === "nicothekid:polished_limestone_slab" && block.permutation.matches("nicothekid:polished_limestone_slab", {"minecraft:vertical_half": "top"}) && blockFacing === "Down") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:polished_limestone_double_slab"));
          block.dimension.playSound("use.stone", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
        if (itemUsed.typeId === "nicothekid:polished_marble_slab" && block.permutation.matches("nicothekid:polished_marble_slab", {"minecraft:vertical_half": "bottom"}) && blockFacing === "Up") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:polished_marble_double_slab"));
          block.dimension.playSound("place.calcite", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
        if (itemUsed.typeId === "nicothekid:polished_marble_slab" && block.permutation.matches("nicothekid:polished_marble_slab", {"minecraft:vertical_half": "top"}) && blockFacing === "Down") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:polished_marble_double_slab"));
          block.dimension.playSound("place.calcite", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
        if (itemUsed.typeId === "nicothekid:rose_quartz_slab" && block.permutation.matches("nicothekid:rose_quartz_slab", {"minecraft:vertical_half": "bottom"}) && blockFacing === "Up") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:rose_quartz_double_slab"));
          block.dimension.playSound("use.stone", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
        if (itemUsed.typeId === "nicothekid:rose_quartz_slab" && block.permutation.matches("nicothekid:rose_quartz_slab", {"minecraft:vertical_half": "top"}) && blockFacing === "Down") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:rose_quartz_double_slab"));
          block.dimension.playSound("use.stone", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
        if (itemUsed.typeId === "nicothekid:smooth_rose_quartz_slab" && block.permutation.matches("nicothekid:smooth_rose_quartz_slab", {"minecraft:vertical_half": "bottom"}) && blockFacing === "Up") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:smooth_rose_quartz_double_slab"));
          block.dimension.playSound("use.stone", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
        if (itemUsed.typeId === "nicothekid:smooth_rose_quartz_slab" && block.permutation.matches("nicothekid:smooth_rose_quartz_slab", {"minecraft:vertical_half": "top"}) && blockFacing === "Down") {
          block.setPermutation(BlockPermutation.resolve("nicothekid:smooth_rose_quartz_double_slab"));
          block.dimension.playSound("use.stone", blockLocation, { pitch: 0.8, volume: 1.0 });
          decreaseItem ();
          return;
        }
      }
      else return;
    }
  });
  const eggBlocks = [
    "nicothekid:myceling_egg_block"
  ]
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:egg_block_hatching", {
    onTick: eventData => {
      const block = eventData.block;
      const blockLocation = block.location;
      if (eggBlocks.includes(block.typeId)) {
        if (block.permutation.matches("nicothekid:myceling_egg_block")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:air"));
            block.dimension.playSound("block.turtle_egg.crack", blockLocation, { pitch: 1.0, volume: 1.0 });
            block.dimension.runCommandAsync(`summon nicothekid:myceling ${blockLocation.x + 0.5} ${blockLocation.y} ${blockLocation.z + 0.5} ~ ~ minecraft:myceling_born`);
            return;
          });
        }
      }
      else return;
    }
  });
  const glowceliumSprouts = [
    "nicothekid:glowcelium_sprouts_tall_block"
  ]
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:glowcelium_sprouts_particles", {
    onRandomTick: eventData => {
      const block = eventData.block;
      if (glowceliumSprouts.includes(block.typeId)) {
        if (block.permutation.matches("nicothekid:glowcelium_sprouts_tall_block", { "nicothekid:sprouts_particles": false })) {
          block.setPermutation(BlockPermutation.resolve("nicothekid:glowcelium_sprouts_tall_block", { "nicothekid:sprouts_particles": true }))
          return;
        }
      }
      else return;
    }
  });
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:glowcelium_sprouts_particles_tick", {
    onTick: eventData => {
      const block = eventData.block;
      const blockLocation = block.location;
      if (glowceliumSprouts.includes(block.typeId)) {
        if (block.permutation.matches("nicothekid:glowcelium_sprouts_tall_block", { "nicothekid:sprouts_particles": true })) {
          block.dimension.spawnParticle("nicothekid:glowcelium_sprouts_particle", { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 })
          return;
        }
      }
      else return;
    }
  });
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:heated_netherrack_active_random_inactive", {
    onRandomTick: eventData => {
      const block = eventData.block;
      if (block.permutation.matches("nicothekid:heated_netherrack_active")) {
        block.setPermutation(BlockPermutation.resolve("nicothekid:heated_netherrack"))
        return;
      }
      else return;
    }
  });
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:heated_netherrack_active_on_step_on", {
    onStepOn: eventData => {
      const entity = eventData.entity;
      const block = eventData.block;
      const blockLocation = block.location;
      if (entity === undefined || entity.isSneaking || entity.typeId === "minecraft:item") return;
      if (entity.matches({ excludeFamilies:[ "blaze", "magmacube", "strider", "zoglin", "zombie_pigman", "fire_bird", "soul_fire_bird", "magma_golem", "nether_wisp", "nether_soul_wisp" ] })) {
        if (block.permutation.matches("nicothekid:heated_netherrack_active", { "nicothekid:heated_netherrack_active_lighten": false })) {
          block.dimension.playSound("random.fizz", blockLocation, { pitch: 1.1, volume: 1.0 });
          block.dimension.spawnParticle("nicothekid:heated_netherrack_active_particle", { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
          entity.applyDamage(1, { cause: EntityDamageCause.magma });
          block.setPermutation(BlockPermutation.resolve("nicothekid:heated_netherrack_active", { "nicothekid:heated_netherrack_active_lighten": true }));
          return;
        }
      }
      else return;
    }
  });
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:heated_netherrack_active_exploding", {
    onTick: eventData => {
      const block = eventData.block;
      const blockLocation = block.location;
      if (block.permutation.matches("nicothekid:heated_netherrack_active", { "nicothekid:heated_netherrack_active_lighten": true })) {
        block.setPermutation(BlockPermutation.resolve("minecraft:air"));
        block.dimension.spawnEntity("nicothekid:projectile_heated_netherrack_active_explosion", { x: blockLocation.x + 0.5, y: blockLocation.y, z: blockLocation.z + 0.5 });
        return;
      }
      else return;
    }
  });
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:heated_netherrack_active_on_step_off", {
    onStepOff: eventData => {
      const block = eventData.block;
      if (block.permutation.matches("nicothekid:heated_netherrack_active", { "nicothekid:heated_netherrack_active_lighten": true })) {
        block.setPermutation(BlockPermutation.resolve("nicothekid:heated_netherrack_active", { "nicothekid:heated_netherrack_active_lighten": false }));
        return;
      }
      else return;
    }
  });
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:heated_netherrack_active_random_active", {
    onRandomTick: eventData => {
      const block = eventData.block;
      if (block.permutation.matches("nicothekid:heated_netherrack")) {
        let randomChance = Math.random();
        if (randomChance <= 0.5) {
          block.setPermutation(BlockPermutation.resolve("nicothekid:heated_netherrack_active", { "nicothekid:heated_netherrack_active_lighten": false }));
          return;
        }
        else return;
      }
      else return;
    }
  });
  const mossBerryPlants = [
    "nicothekid:moss_berry_stage_1_block",
    "nicothekid:moss_berry_stage_2_block"
  ]
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:moss_berry_growth", {
    onPlayerInteract: eventData => {
      const player = eventData.player;
      const block = eventData.block;
      const blockLocation = block.location;
      const playerEquippable = player.getComponent("equippable");
      const itemUsed = playerEquippable.getEquipment("Mainhand");
      function decreaseItem () {
        system.run(() => {
          if (!player.matches({ gameMode: GameMode.creative })) {
            const decrementItem = itemUsed.amount == 1 ? undefined : (itemUsed.amount--, itemUsed);
            playerEquippable.setEquipment("Mainhand", decrementItem)
          }
        });
      }
      if (itemUsed === undefined) return;
      if (mossBerryPlants.includes(block.typeId) && itemUsed.typeId === "minecraft:bone_meal") {
        if (block.typeId === "nicothekid:moss_berry_stage_1_block") {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("minecraft:crop_growth_emitter", { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
          block.setPermutation(BlockPermutation.resolve("nicothekid:moss_berry_stage_2_block"));
          return;
        }
        if (block.typeId === "nicothekid:moss_berry_stage_2_block") {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("minecraft:crop_growth_emitter", { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
          block.setPermutation(BlockPermutation.resolve("nicothekid:moss_berry_stage_3_block"));
          return;
        }
      }
      else return;
    }
  });
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:moss_berry_random_growth", {
    onRandomTick: eventData => {
      const block = eventData.block;
      const blockLocation = block.location;
      const blockBelow = block.below(1);
      if (mossBerryPlants.includes(block.typeId)) {
        let randomChance = Math.random();
        if (block.typeId === "nicothekid:moss_berry_stage_1_block") {
          if (blockBelow.typeId === "minecraft:farmland") {
            if (randomChance <= 0.75) {
              block.setPermutation(BlockPermutation.resolve("nicothekid:moss_berry_stage_2_block"));
              return;
            }
            else return;
          }
          else {
            if (randomChance <= 0.1) {
              block.setPermutation(BlockPermutation.resolve("nicothekid:moss_berry_stage_2_block"));
              return;
            }
            else return;
          }
        }
        if (block.typeId === "nicothekid:moss_berry_stage_2_block") {
          if (blockBelow.typeId === "minecraft:farmland") {
            if (randomChance <= 0.75) {
              block.setPermutation(BlockPermutation.resolve("nicothekid:moss_berry_stage_3_block"));
              return;
            }
            else return;
          }
          else {
            if (randomChance <= 0.1) {
              block.setPermutation(BlockPermutation.resolve("nicothekid:moss_berry_stage_3_block"));
              return;
            }
            else return;
          }
        }
      }
      else return;
    }
  });
  const mossSprouts = [
    "nicothekid:moss_sprouts_small_block"
  ]
  const boneMeal = [
    "minecraft:bone_meal"
  ]
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:moss_sprouts_growth", {
    onPlayerInteract: eventData => {
      const player = eventData.player;
      const block = eventData.block;
      const blockLocation = block.location;
      const playerEquippable = player.getComponent("equippable");
      const itemUsed = playerEquippable.getEquipment("Mainhand");
      function decreaseItem () {
        system.run(() => {
          if (!player.matches({ gameMode: GameMode.creative })) {
            const decrementItem = itemUsed.amount == 1 ? undefined : (itemUsed.amount--, itemUsed);
            playerEquippable.setEquipment("Mainhand", decrementItem)
          }
        });
      }
      if (itemUsed === undefined) return;
      if (mossSprouts.includes(block.typeId) && boneMeal.includes(itemUsed.typeId)) {
        if (block.typeId === "nicothekid:moss_sprouts_small_block" && itemUsed.typeId === "minecraft:bone_meal") {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("minecraft:crop_growth_emitter", { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
          block.setPermutation(BlockPermutation.resolve("nicothekid:moss_sprouts_tall_block"));
          return;
        }
        else return;
      }
      else return;
    }
  });
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:mosshroom_fungus_growth", {
    onPlayerInteract: eventData => {
      const player = eventData.player;
      const block = eventData.block;
      const blockLocation = block.location;
      const playerEquippable = player.getComponent("equippable");
      const itemUsed = playerEquippable.getEquipment("Mainhand");
      function decreaseItem () {
        if (!player.matches({ gameMode: GameMode.creative })) {
          const decrementItem = itemUsed.amount == 1 ? undefined : (itemUsed.amount--, itemUsed);
          playerEquippable.setEquipment("Mainhand", decrementItem)
        }
      }
      if (itemUsed === undefined) return;
      if (block.typeId === "nicothekid:mosshroom_fungus_block" && itemUsed.typeId === "minecraft:bone_meal") {
        system.run(() => {
          let randomChance = Math.random() * (100.0 - 0.0) + 0.0;
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("minecraft:crop_growth_emitter", { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
          if (randomChance <= 40) {
            let randomVariation = Math.random() * (100.0 - 0.0) + 0.0;
            if (randomVariation <= 16.6) {
              block.setPermutation(BlockPermutation.resolve("minecraft:air"));
              block.dimension.runCommandAsync(`structure load huge_mosshroom_01 ${blockLocation.x - 2} ${blockLocation.y} ${blockLocation.z - 2}`);
            }
            else if (randomVariation <= 33.2) {
              block.setPermutation(BlockPermutation.resolve("minecraft:air"));
              block.dimension.runCommandAsync(`structure load huge_mosshroom_02 ${blockLocation.x - 2} ${blockLocation.y} ${blockLocation.z - 2}`);
            }
            else if (randomVariation <= 49.8) {
              block.setPermutation(BlockPermutation.resolve("minecraft:air"));
              block.dimension.runCommandAsync(`structure load huge_mosshroom_03 ${blockLocation.x - 2} ${blockLocation.y} ${blockLocation.z - 2}`);
            }
            else if (randomVariation <= 66.4) {
              block.setPermutation(BlockPermutation.resolve("minecraft:air"));
              block.dimension.runCommandAsync(`structure load huge_mosshroom_04 ${blockLocation.x - 2} ${blockLocation.y} ${blockLocation.z - 2}`);
            }
            else if (randomVariation <= 83) {
              block.setPermutation(BlockPermutation.resolve("minecraft:air"));
              block.dimension.runCommandAsync(`structure load huge_mosshroom_05 ${blockLocation.x - 2} ${blockLocation.y} ${blockLocation.z - 2}`);
            }
            else if (randomVariation <= 99.6) {
              block.setPermutation(BlockPermutation.resolve("minecraft:air"));
              block.dimension.runCommandAsync(`structure load huge_mosshroom_06 ${blockLocation.x - 2} ${blockLocation.y} ${blockLocation.z - 2}`);
            }
            else return;
          }
          else return;
        });
      }
      else return;
    }
  });
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:mosshroom_light_on_step_on", {
    onStepOn: eventData => {
      const block = eventData.block;
      const blockLocation = block.location;
      if (block.permutation.matches("nicothekid:mosshroom_light", { "nicothekid:mosshroom_light_lighten": false })) {
        block.dimension.playSound("dig.shroomlight", blockLocation, { pitch: 1.1, volume: 1.0 });
        block.dimension.spawnParticle("nicothekid:mosshroom_light_particle", { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
        block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_light", { "nicothekid:mosshroom_light_lighten": true }));
        return;
      }
      else return;
    }
  });
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:mosshroom_light_on_step_off", {
    onStepOff: eventData => {
      const block = eventData.block;
      if (block.permutation.matches("nicothekid:mosshroom_light", { "nicothekid:mosshroom_light_lighten": true })) {
        block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_light", { "nicothekid:mosshroom_light_lighten": false }));
        return;
      }
      else return;
    }
  });
  const myceliumSprouts = [
    "nicothekid:mycelium_sprouts_small_block",
    "nicothekid:mycelium_sprouts_tall_block"
  ]
  const boneMeals = [
    "minecraft:bone_meal",
    "nicothekid:glowcelium_bone_meal"
  ]
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:mycelium_sprouts_growth", {
    onPlayerInteract: eventData => {
      const player = eventData.player;
      const block = eventData.block;
      const blockLocation = block.location;
      const playerEquippable = player.getComponent("equippable");
      const itemUsed = playerEquippable.getEquipment("Mainhand");
      function decreaseItem () {
        system.run(() => {
          if (!player.matches({ gameMode: GameMode.creative })) {
            const decrementItem = itemUsed.amount == 1 ? undefined : (itemUsed.amount--, itemUsed);
            playerEquippable.setEquipment("Mainhand", decrementItem)
          }
        });
      }
      if (itemUsed === undefined) return;
      if (myceliumSprouts.includes(block.typeId) && boneMeals.includes(itemUsed.typeId)) {
        if (block.typeId === "nicothekid:mycelium_sprouts_small_block" && itemUsed.typeId === "minecraft:bone_meal") {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("minecraft:crop_growth_emitter", { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
          block.setPermutation(BlockPermutation.resolve("nicothekid:mycelium_sprouts_tall_block"));
          return;
        }
        if (block.typeId === "nicothekid:mycelium_sprouts_small_block" && itemUsed.typeId === "nicothekid:glowcelium_bone_meal") {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("minecraft:crop_growth_emitter", { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
          block.setPermutation(BlockPermutation.resolve("nicothekid:glowcelium_sprouts_tall_block"));
          return;
        }
        if (block.typeId === "nicothekid:mycelium_sprouts_tall_block" && itemUsed.typeId === "nicothekid:glowcelium_bone_meal") {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("minecraft:crop_growth_emitter", { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
          block.setPermutation(BlockPermutation.resolve("nicothekid:glowcelium_sprouts_tall_block"));
          return;
        }
      }
      else return;
    }
  });
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:mycelium_sprouts_particles", {
    onRandomTick: eventData => {
      const block = eventData.block;
      if (myceliumSprouts.includes(block.typeId)) {
        if (block.permutation.matches("nicothekid:mycelium_sprouts_tall_block", { "nicothekid:sprouts_particles": false })) {
          block.setPermutation(BlockPermutation.resolve("nicothekid:mycelium_sprouts_tall_block", { "nicothekid:sprouts_particles": true }))
          return;
        }
      }
      else return;
    }
  });
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:mycelium_sprouts_particles_tick", {
    onTick: eventData => {
      const block = eventData.block;
      const blockLocation = block.location;
      if (myceliumSprouts.includes(block.typeId)) {
        if (block.permutation.matches("nicothekid:mycelium_sprouts_tall_block", { "nicothekid:sprouts_particles": true })) {
          block.dimension.spawnParticle("nicothekid:mycelium_sprouts_particle", { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 })
          return;
        }
      }
      else return;
    }
  });
  initEvent.blockTypeRegistry.registerCustomComponent("nicothekid:rose_quartz_lamp_switch", {
    onPlayerInteract: eventData => {
      const player = eventData.player;
      const block = eventData.block;
      const blockLocation = block.location;
      if (player.isSneaking) return;
      if (block.typeId === "nicothekid:rose_quartz_lamp") {
        block.dimension.playSound("random.lever_click", blockLocation, { pitch: 1.0, volume: 1.0 });
        if (block.permutation.matches("nicothekid:rose_quartz_lamp", { "nicothekid:light_emission": 0 })) {
          block.setPermutation(BlockPermutation.resolve("nicothekid:rose_quartz_lamp", { "nicothekid:light_emission": 1 }));
          return;
        }
        if (block.permutation.matches("nicothekid:rose_quartz_lamp", { "nicothekid:light_emission": 1 })) {
          block.setPermutation(BlockPermutation.resolve("nicothekid:rose_quartz_lamp", { "nicothekid:light_emission": 2 }));
          return;
        }
        if (block.permutation.matches("nicothekid:rose_quartz_lamp", { "nicothekid:light_emission": 2 })) {
          block.setPermutation(BlockPermutation.resolve("nicothekid:rose_quartz_lamp", { "nicothekid:light_emission": 3 }));
          return;
        }
        if (block.permutation.matches("nicothekid:rose_quartz_lamp", { "nicothekid:light_emission": 3 })) {
          block.setPermutation(BlockPermutation.resolve("nicothekid:rose_quartz_lamp", { "nicothekid:light_emission": 4 }));
          return;
        }
        if (block.permutation.matches("nicothekid:rose_quartz_lamp", { "nicothekid:light_emission": 4 })) {
          block.setPermutation(BlockPermutation.resolve("nicothekid:rose_quartz_lamp", { "nicothekid:light_emission": 0 }));
          return;
        }
      }
      else return;
    }
  });
});
world.beforeEvents.itemUseOn.subscribe(eventData => {
  const player = eventData.source;
  const itemUsed = eventData.itemStack;
  const block = eventData.block;
  const blockLocation = block.location;
  const playerEquippable = player.getComponent("equippable");
  const strippedWoods = [
    "nicothekid:mosshroom_hyphae_stripped",
    "nicothekid:mosshroom_stem_stripped"
  ]
  function decreaseItem () {
    if (!player.matches({ gameMode: GameMode.creative })) {
      const decrementItem = itemUsed.amount == 1 ? undefined : (itemUsed.amount--, itemUsed);
      playerEquippable.setEquipment("Mainhand", decrementItem)
    }
  }
  if (itemUsed === undefined || !playerEquippable) return;
  if (strippedWoods.includes(block.typeId)) {
    if (itemUsed.typeId === "minecraft:bone_meal") {
      if (block.permutation.matches("nicothekid:mosshroom_hyphae_stripped", { "minecraft:block_face": "down" })) {
        system.run(() => {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("nicothekid:barked_2_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_hyphae", { "minecraft:block_face": "down" }));
          return;
        });
      }
      if (block.permutation.matches("nicothekid:mosshroom_hyphae_stripped", { "minecraft:block_face": "up" })) {
        system.run(() => {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("nicothekid:barked_2_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_hyphae", { "minecraft:block_face": "up" }));
          return;
        });
      }
      if (block.permutation.matches("nicothekid:mosshroom_hyphae_stripped", { "minecraft:block_face": "south" })) {
        system.run(() => {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("nicothekid:barked_2_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_hyphae", { "minecraft:block_face": "south" }));
          return;
        });
      }
      if (block.permutation.matches("nicothekid:mosshroom_hyphae_stripped", { "minecraft:block_face": "east" })) {
        system.run(() => {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("nicothekid:barked_2_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_hyphae", { "minecraft:block_face": "east" }));
          return;
        });
      }
      if (block.permutation.matches("nicothekid:mosshroom_hyphae_stripped", { "minecraft:block_face": "north" })) {
        system.run(() => {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("nicothekid:barked_2_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_hyphae", { "minecraft:block_face": "north" }));
          return;
        });
      }
      if (block.permutation.matches("nicothekid:mosshroom_hyphae_stripped", { "minecraft:block_face": "west" })) {
        system.run(() => {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("nicothekid:barked_2_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_hyphae", { "minecraft:block_face": "west" }));
          return;
        });
      }
      if (block.permutation.matches("nicothekid:mosshroom_stem_stripped", { "minecraft:block_face": "down" })) {
        system.run(() => {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("nicothekid:barked_2_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_stem", { "minecraft:block_face": "down" }));
          return;
        });
      }
      if (block.permutation.matches("nicothekid:mosshroom_stem_stripped", { "minecraft:block_face": "up" })) {
        system.run(() => {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("nicothekid:barked_2_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_stem", { "minecraft:block_face": "up" }));
          return;
        });
      }
      if (block.permutation.matches("nicothekid:mosshroom_stem_stripped", { "minecraft:block_face": "south" })) {
        system.run(() => {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("nicothekid:barked_2_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_stem", { "minecraft:block_face": "south" }));
          return;
        });
      }
      if (block.permutation.matches("nicothekid:mosshroom_stem_stripped", { "minecraft:block_face": "east" })) {
        system.run(() => {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("nicothekid:barked_2_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_stem", { "minecraft:block_face": "east" }));
          return;
        });
      }
      if (block.permutation.matches("nicothekid:mosshroom_stem_stripped", { "minecraft:block_face": "north" })) {
        system.run(() => {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("nicothekid:barked_2_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_stem", { "minecraft:block_face": "north" }));
          return;
        });
      }
      if (block.permutation.matches("nicothekid:mosshroom_stem_stripped", { "minecraft:block_face": "west" })) {
        system.run(() => {
          decreaseItem ();
          block.dimension.playSound("item.bone_meal.use", blockLocation, { pitch: 1.0, volume: 1.0 });
          block.dimension.spawnParticle("nicothekid:barked_2_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_stem", { "minecraft:block_face": "west" }));
          return;
        });
      }
    }
  }
  else return;
});
world.afterEvents.playerBreakBlock.subscribe(eventData => {
  const player = eventData.player;
  const itemUsed = eventData.itemStackBeforeBreak;
  const brokenBlock = eventData.brokenBlockPermutation;
  const block = eventData.block;
  const blockLocation = eventData.block.location;
  const customPlants = [
    "nicothekid:glowcelium_sprouts_tall_block",
    "nicothekid:moss_sprouts_small_block",
    "nicothekid:moss_sprouts_tall_block",
    "nicothekid:mycelium_sprouts_small_block",
    "nicothekid:mycelium_sprouts_tall_block"
  ]
  let randomChance = Math.random() * (100.0 - 0.0) + 0.0;
  if (player.matches({ gameMode: GameMode.creative })) return;
  if (customPlants.includes(brokenBlock.type.id)) {
    if (itemUsed === undefined) {
      if (brokenBlock.type.id === "nicothekid:lush_grass_tall_block") {
        if (randomChance <= 10.0) {
          const spawnStick = new ItemStack ("minecraft:stick", 1);
          block.dimension.spawnItem(spawnStick, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 })
        }
        else return;
      }
    }
    else {
      if (itemUsed.typeId === "minecraft:shears") {
        if (brokenBlock.type.id === "nicothekid:glowcelium_sprouts_tall_block") {
          const spawnGlowceliumSproutsTall = new ItemStack ("nicothekid:glowcelium_sprouts_tall", 1);
          block.dimension.spawnItem(spawnGlowceliumSproutsTall, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 })
        }
        if (brokenBlock.type.id === "nicothekid:moss_sprouts_small_block") {
          const spawnMossSproutsSmall = new ItemStack ("nicothekid:moss_sprouts_small", 1);
          block.dimension.spawnItem(spawnMossSproutsSmall, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 })
        }
        if (brokenBlock.type.id === "nicothekid:moss_sprouts_tall_block") {
          const spawnMossSproutsTall = new ItemStack ("nicothekid:moss_sprouts_tall", 1);
          block.dimension.spawnItem(spawnMossSproutsTall, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 })
        }
        if (brokenBlock.type.id === "nicothekid:mycelium_sprouts_small_block") {
          const spawnMyceliumSproutsSmall = new ItemStack ("nicothekid:mycelium_sprouts_small", 1);
          block.dimension.spawnItem(spawnMyceliumSproutsSmall, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 })
        }
        if (brokenBlock.type.id === "nicothekid:mycelium_sprouts_tall_block") {
          const spawnMyceliumSproutsTall = new ItemStack ("nicothekid:mycelium_sprouts_tall", 1);
          block.dimension.spawnItem(spawnMyceliumSproutsTall, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 })
        }
      }
      else {
        const itemEnchantable = itemUsed.getComponent("enchantable");
        if (itemEnchantable) {
          function lushGrassTallDrop () {
            const fortuneEnchanted = itemUsed.getComponent("enchantable").getEnchantment("fortune");
            if (itemUsed.getComponent("enchantable").hasEnchantment("fortune")) {
              if (fortuneEnchanted.level == 1) {
                if (randomChance <= 13.0) {
                  const spawnStick = new ItemStack ("minecraft:stick", 1);
                  block.dimension.spawnItem(spawnStick, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
                }
                else return;
              }
              if (fortuneEnchanted.level == 2) {
                if (randomChance <= 15.0) {
                  const spawnStick = new ItemStack ("minecraft:stick", 1);
                  block.dimension.spawnItem(spawnStick, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
                }
                else return;
              }
              if (fortuneEnchanted.level == 3) {
                if (randomChance <= 20.0) {
                  const spawnStick = new ItemStack ("minecraft:stick", 1);
                  block.dimension.spawnItem(spawnStick, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
                }
                else return;
              }
            }
            else {
              if (randomChance <= 10.0) {
                const spawnStick = new ItemStack ("minecraft:stick", 1);
                block.dimension.spawnItem(spawnStick, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
              }
              else return;
            }
          }
          const silkTouchEnchanted = itemEnchantable.getEnchantment("silk_touch");
          if (silkTouchEnchanted) return;
          if (brokenBlock.type.id === "nicothekid:lush_grass_tall_block") {
            lushGrassTallDrop ();
          }
        }
        else {
          if (brokenBlock.type.id === "nicothekid:lush_grass_tall_block") {
            if (randomChance <= 10.0) {
              const spawnStick = new ItemStack ("minecraft:stick", 1);
              block.dimension.spawnItem(spawnStick, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 })
            }
            else return;
          }
        }
      }
    }
  }
  else return;
});
world.afterEvents.playerBreakBlock.subscribe(eventData => {
  const player = eventData.player;
  const itemUsed = eventData.itemStackBeforeBreak;
  const brokenBlock = eventData.brokenBlockPermutation;
  const block = eventData.block;
  const blockLocation = block.location;
  const customMinerals = [
    "nicothekid:deepslate_fossil",
    "nicothekid:deepslate_prismarine_ore",
    "nicothekid:deepslate_tin_ore",
    "nicothekid:deepslate_zinc_ore",
    "nicothekid:heated_netherrack_fossil",
    "nicothekid:heated_netherrack_olivine_ore",
    "nicothekid:netherrack_fossil",
    "nicothekid:netherrack_olivine_ore",
    "nicothekid:prismarine_ore",
    "nicothekid:soul_sand_fossil",
    "nicothekid:soul_soil_fossil",
    "nicothekid:stone_fossil",
    "nicothekid:tin_ore",
    "nicothekid:zinc_ore"
  ]
  const customPickaxes = [
    "nicothekid:brass_pickaxe",
    "nicothekid:bronze_pickaxe",
    "nicothekid:olivine_pickaxe",
    "nicothekid:tin_pickaxe",
    "nicothekid:zinc_pickaxe"
  ]
  const customShovels = [
    "nicothekid:brass_shovel",
    "nicothekid:bronze_shovel",
    "nicothekid:olivine_shovel",
    "nicothekid:tin_shovel",
    "nicothekid:zinc_shovel"
  ]
  function spawnXpOrb () {
    const silkTouchEnchanted = itemUsed.getComponent("enchantable").getEnchantment("silk_touch");
    if (!silkTouchEnchanted) {
      block.dimension.spawnEntity("minecraft:xp_orb", { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
    }
  }
  function spawnBone () {
    const fortuneEnchanted = itemUsed.getComponent("enchantable").getEnchantment("fortune");
    if (itemUsed.getComponent("enchantable").hasEnchantment("fortune")) {
      if (fortuneEnchanted.level == 1) {
        let fortuneChance = Math.random() * (2 - 1) + 1;
        const itemBone = new ItemStack ("minecraft:bone", fortuneChance);
        block.dimension.spawnItem(itemBone, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
      }
      if (fortuneEnchanted.level == 2) {
        let fortuneChance = Math.random() * (3 - 1) + 1;
        const itemBone = new ItemStack ("minecraft:bone", fortuneChance);
        block.dimension.spawnItem(itemBone, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
      }
      if (fortuneEnchanted.level == 3) {
        let fortuneChance = Math.random() * (3 - 2) + 2;
        const itemBone = new ItemStack ("minecraft:bone", fortuneChance);
        block.dimension.spawnItem(itemBone, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
      }
    }
    else {
      const itemBone = new ItemStack ("minecraft:bone", 1);
      block.dimension.spawnItem(itemBone, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
    }
  }
  function spawnOlivineFragment () {
    const fortuneEnchanted = itemUsed.getComponent("enchantable").getEnchantment("fortune");
    if (itemUsed.getComponent("enchantable").hasEnchantment("fortune")) {
      if (fortuneEnchanted.level == 1) {
        let fortuneChance = Math.random() * (3 - 2) + 2;
        const olivineFragment = new ItemStack ("nicothekid:olivine_fragment", fortuneChance);
        block.dimension.spawnItem(olivineFragment, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
      }
      if (fortuneEnchanted.level == 2) {
        let fortuneChance = Math.random() * (4 - 2) + 2;
        const olivineFragment = new ItemStack ("nicothekid:olivine_fragment", fortuneChance);
        block.dimension.spawnItem(olivineFragment, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
      }
      if (fortuneEnchanted.level == 3) {
        let fortuneChance = Math.random() * (4 - 3) + 3;
        const olivineFragment = new ItemStack ("nicothekid:olivine_fragment", fortuneChance);
        block.dimension.spawnItem(olivineFragment, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
      }
    }
    else {
      let amountChance = Math.random() * (2 - 1) + 1;
      const olivineFragment = new ItemStack ("nicothekid:olivine_fragment", amountChance);
      block.dimension.spawnItem(olivineFragment, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
    }
  }
  function spawnPrismarineShard () {
    const fortuneEnchanted = itemUsed.getComponent("enchantable").getEnchantment("fortune");
    if (itemUsed.getComponent("enchantable").hasEnchantment("fortune")) {
      if (fortuneEnchanted.level == 1) {
        let fortuneChance = Math.random() * (3 - 2) + 2;
        const prismarineShard = new ItemStack ("minecraft:prismarine_shard", fortuneChance);
        block.dimension.spawnItem(prismarineShard, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
      }
      if (fortuneEnchanted.level == 2) {
        let fortuneChance = Math.random() * (4 - 3) + 3;
        const prismarineShard = new ItemStack ("minecraft:prismarine_shard", fortuneChance);
        block.dimension.spawnItem(prismarineShard, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
      }
      if (fortuneEnchanted.level == 3) {
        let fortuneChance = Math.random() * (5 - 4) + 4;
        const prismarineShard = new ItemStack ("minecraft:prismarine_shard", fortuneChance);
        block.dimension.spawnItem(prismarineShard, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
      }
    }
    else {
      const prismarineShard = new ItemStack ("minecraft:prismarine_shard", 2);
      block.dimension.spawnItem(prismarineShard, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
    }
  }
  function spawnRawTin () {
    const fortuneEnchanted = itemUsed.getComponent("enchantable").getEnchantment("fortune");
    if (itemUsed.getComponent("enchantable").hasEnchantment("fortune")) {
      if (fortuneEnchanted.level == 1) {
        let fortuneChance = Math.random() * (2 - 1) + 1;
        const rawTin = new ItemStack ("nicothekid:raw_tin", fortuneChance);
        block.dimension.spawnItem(rawTin, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
      }
      if (fortuneEnchanted.level == 2) {
        let fortuneChance = Math.random() * (3 - 1) + 1;
        const rawTin = new ItemStack ("nicothekid:raw_tin", fortuneChance);
        block.dimension.spawnItem(rawTin, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
      }
      if (fortuneEnchanted.level == 3) {
        let fortuneChance = Math.random() * (3 - 2) + 2;
        const rawTin = new ItemStack ("nicothekid:raw_tin", fortuneChance);
        block.dimension.spawnItem(rawTin, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
      }
    }
    else {
      const rawTin = new ItemStack ("nicothekid:raw_tin", 1);
      block.dimension.spawnItem(rawTin, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
    }
  }
  function spawnRawZinc () {
    const fortuneEnchanted = itemUsed.getComponent("enchantable").getEnchantment("fortune");
    if (itemUsed.getComponent("enchantable").hasEnchantment("fortune")) {
      if (fortuneEnchanted.level == 1) {
        let fortuneChance = Math.random() * (2 - 1) + 1;
        const rawZinc = new ItemStack ("nicothekid:raw_zinc", fortuneChance);
        block.dimension.spawnItem(rawZinc, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
      }
      if (fortuneEnchanted.level == 2) {
        let fortuneChance = Math.random() * (3 - 1) + 1;
        const rawZinc = new ItemStack ("nicothekid:raw_zinc", fortuneChance);
        block.dimension.spawnItem(rawZinc, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
      }
      if (fortuneEnchanted.level == 3) {
        let fortuneChance = Math.random() * (3 - 2) + 2;
        const rawZinc = new ItemStack ("nicothekid:raw_zinc", fortuneChance);
        block.dimension.spawnItem(rawZinc, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
      }
    }
    else {
      const rawZinc = new ItemStack ("nicothekid:raw_zinc", 1);
      block.dimension.spawnItem(rawZinc, { x: blockLocation.x + 0.5, y: blockLocation.y + 0.5, z: blockLocation.z + 0.5 });
    }
  }
  if (itemUsed === undefined || player.matches({ gameMode: GameMode.creative })) return;
  if (customMinerals.includes(brokenBlock.type.id)) {
    const itemEnchantable = itemUsed.getComponent("enchantable");
    if (!itemEnchantable) return;
    const silkTouchEnchanted = itemEnchantable.getEnchantment("silk_touch");
    const fortuneEnchanted = itemEnchantable.getEnchantment("fortune");
    if (silkTouchEnchanted) return;
    if (customPickaxes.includes(itemUsed.typeId) || itemUsed.hasTag("minecraft:is_pickaxe")) {
      if (brokenBlock.type.id === "nicothekid:deepslate_fossil") {
        spawnBone ();
        spawnXpOrb ();
      }
      if (brokenBlock.type.id === "nicothekid:deepslate_prismarine_ore") {
        spawnPrismarineShard ();
        spawnXpOrb ();
      }
      if (brokenBlock.type.id === "nicothekid:deepslate_tin_ore") {
        spawnRawTin ();
        spawnXpOrb ();
      }
      if (brokenBlock.type.id === "nicothekid:deepslate_zinc_ore") {
        spawnRawZinc ();
        spawnXpOrb ();
      }
      if (brokenBlock.type.id === "nicothekid:heated_netherrack_fossil") {
        spawnBone ();
        spawnXpOrb ();
      }
      if (brokenBlock.type.id === "nicothekid:heated_netherrack_olivine_ore") {
        spawnOlivineFragment ();
        spawnXpOrb ();
      }
      if (brokenBlock.type.id === "nicothekid:netherrack_fossil") {
        spawnBone ();
        spawnXpOrb ();
      }
      if (brokenBlock.type.id === "nicothekid:netherrack_olivine_ore") {
        spawnOlivineFragment ();
        spawnXpOrb ();
      }
      if (brokenBlock.type.id === "nicothekid:prismarine_ore") {
        spawnPrismarineShard ();
        spawnXpOrb ();
      }
      if (brokenBlock.type.id === "nicothekid:stone_fossil") {
        spawnBone ();
        spawnXpOrb ();
      }
      if (brokenBlock.type.id === "nicothekid:tin_ore") {
        spawnRawTin ();
        spawnXpOrb ();
      }
      if (brokenBlock.type.id === "nicothekid:zinc_ore") {
        spawnRawZinc ();
        spawnXpOrb ();
      }
    }
    if (customShovels.includes(itemUsed.typeId) || itemUsed.hasTag("minecraft:is_shovel")) {
      if (brokenBlock.type.id === "nicothekid:soul_sand_fossil") {
        spawnBone ();
        spawnXpOrb ();
      }
      if (brokenBlock.type.id === "nicothekid:soul_soil_fossil") {
        spawnBone ();
        spawnXpOrb ();
      }
    }
  }
  else return;
});
world.afterEvents.playerBreakBlock.subscribe(eventData => {
  const player = eventData.player;
  const itemUsed = eventData.itemStackBeforeBreak;
  const brokenBlock = eventData.brokenBlockPermutation;
  const playerEquippable = player.getComponent("equippable");
  const instantDiggableBlocks = [
    "minecraft:acacia_sapling",
    "minecraft:allium",
    "minecraft:azalea",
    "minecraft:azure_bluet",
    "minecraft:beetroot",
    "minecraft:birch_sapling",
    "minecraft:blue_orchid",
    "minecraft:brain_coral",
    "minecraft:brain_coral_fan",
    "minecraft:brown_mushroom",
    "minecraft:bubble_coral",
    "minecraft:bubble_coral_fan",
    "minecraft:carrots",
    "minecraft:cave_vines",
    "minecraft:cave_vines_body_with_berries",
    "minecraft:cave_vines_head_with_berries",
    "minecraft:cherry_sapling",
    "minecraft:coral_fan_dead",
    "minecraft:coral_fan_hang",
    "minecraft:coral_fan_hang2",
    "minecraft:coral_fan_hang3",
    "minecraft:cornflower",
    "minecraft:crimson_fungus",
    "minecraft:crimson_roots",
    "minecraft:dark_oak_sapling",
    "minecraft:dead_brain_coral",
    "minecraft:dead_brain_coral_fan",
    "minecraft:dead_bubble_coral",
    "minecraft:dead_bubble_coral_fan",
    "minecraft:dead_fire_coral",
    "minecraft:dead_fire_coral_fan",
    "minecraft:dead_horn_coral",
    "minecraft:dead_horn_coral_fan",
    "minecraft:dead_tube_coral",
    "minecraft:dead_tube_coral_fan",
    "minecraft:deadbush",
    "minecraft:decorated_pot",
    "minecraft:double_plant", // old name
    "minecraft:end_rod",
    "minecraft:fern",
    "minecraft:fire",
    "minecraft:fire_coral",
    "minecraft:fire_coral_fan",
    "minecraft:flowering_azalea",
    "minecraft:flower_pot",
    "minecraft:frog_spawn",
    "minecraft:honey_block",
    "minecraft:hanging_roots",
    "minecraft:horn_coral",
    "minecraft:horn_coral_fan",
    "minecraft:jungle_sapling",
    "minecraft:kelp",
    "minecraft:lily_of_the_valley",
    "minecraft:mangrove_propagule",
    "minecraft:melon_stem",
    "minecraft:nether_sprouts",
    "minecraft:nether_wart",
    "minecraft:oak_sapling",
    "minecraft:orange_tulip",
    "minecraft:oxeye_daisy",
    "minecraft:pink_petals",
    "minecraft:pink_tulip",
    "minecraft:pitcher_plant",
    "minecraft:poppy",
    "minecraft:potatoes",
    "minecraft:powered_comparator",
    "minecraft:powered_repeater",
    "minecraft:pumpkin_stem",
    "minecraft:red_flower", // old name
    "minecraft:red_mushroom",
    "minecraft:red_tulip",
    "minecraft:redstone_torch",
    "minecraft:redstone_wire",
    "minecraft:reeds",
    "minecraft:sea_pickle",
    "minecraft:seagrass",
    "minecraft:short_grass",
    "minecraft:slime",
    "minecraft:soul_fire",
    "minecraft:soul_torch",
    "minecraft:spore_blossom",
    "minecraft:spruce_sapling",
    "minecraft:sweet_berry_bush",
    "minecraft:tallgrass", // old name
    "minecraft:tnt",
    "minecraft:torch",
    "minecraft:torchflower",
    "minecraft:tube_coral",
    "minecraft:tube_coral_fan",
    "minecraft:trip_wire",
    "minecraft:tripwire_hook",
    "minecraft:twisting_vines",
    "minecraft:unlit_redstone_torch",
    "minecraft:unpowered_comparator",
    "minecraft:unpowered_repeater",
    "minecraft:warped_fungus",
    "minecraft:warped_roots",
    "minecraft:waterlily",
    "minecraft:weeping_vines",
    "minecraft:wheat",
    "minecraft:white_tulip",
    "minecraft:wither_rose",
    "minecraft:yellow_flower",
    "minecraft:tall_grass",
    "minecraft:large_fern",
    "minecraft:sunflower",
    "minecraft:lilac",
    "minecraft:rose_bush",
    "minecraft:peony"
  ]
  const customAxes = [
    "nicothekid:brass_axe",
    "nicothekid:bronze_axe",
    "nicothekid:olivine_axe",
    "nicothekid:tin_axe",
    "nicothekid:zinc_axe"
  ]
  const axeDiggableBlocks = [
    "minecraft:acacia_button",
    "minecraft:acacia_door",
    "minecraft:acacia_double_slab",
    "minecraft:acacia_fence",
    "minecraft:acacia_fence_gate",
    "minecraft:acacia_hanging_sign",
    "minecraft:acacia_log",
    "minecraft:acacia_planks",
    "minecraft:acacia_pressure_plate",
    "minecraft:acacia_slab",
    "minecraft:acacia_stairs",
    "minecraft:acacia_standing_sign",
    "minecraft:acacia_trapdoor",
    "minecraft:acacia_wall_sign",
    "minecraft:acacia_wood",
    "minecraft:bamboo",
    "minecraft:bamboo_block",
    "minecraft:bamboo_button",
    "minecraft:bamboo_door",
    "minecraft:bamboo_double_slab",
    "minecraft:bamboo_fence",
    "minecraft:bamboo_fence_gate",
    "minecraft:bamboo_hanging_sign",
    "minecraft:bamboo_mosaic",
    "minecraft:bamboo_mosaic_double_slab",
    "minecraft:bamboo_mosaic_slab",
    "minecraft:bamboo_mosaic_stairs",
    "minecraft:bamboo_planks",
    "minecraft:bamboo_pressure_plate",
    "minecraft:bamboo_sapling",
    "minecraft:bamboo_slab",
    "minecraft:bamboo_stairs",
    "minecraft:bamboo_standing_sign",
    "minecraft:bamboo_trapdoor",
    "minecraft:bamboo_wall_sign",
    "minecraft:barrel",
    "minecraft:bee_nest",
    "minecraft:beehive",
    "minecraft:birch_button",
    "minecraft:birch_door",
    "minecraft:birch_double_slab",
    "minecraft:birch_fence",
    "minecraft:birch_fence_gate",
    "minecraft:birch_hanging_sign",
    "minecraft:birch_log",
    "minecraft:birch_planks",
    "minecraft:birch_pressure_plate",
    "minecraft:birch_slab",
    "minecraft:birch_stairs",
    "minecraft:birch_standing_sign",
    "minecraft:birch_trapdoor",
    "minecraft:birch_wall_sign",
    "minecraft:birch_wood",
    "minecraft:bookshelf",
    "minecraft:brown_mushroom_block",
    "minecraft:campfire",
    "minecraft:cartography_table",
    "minecraft:carved_pumpkin",
    "minecraft:cherry_button",
    "minecraft:cherry_door",
    "minecraft:cherry_double_slab",
    "minecraft:cherry_fence",
    "minecraft:cherry_fence_gate",
    "minecraft:cherry_hanging_sign",
    "minecraft:cherry_log",
    "minecraft:cherry_planks",
    "minecraft:cherry_pressure_plate",
    "minecraft:cherry_slab",
    "minecraft:cherry_stairs",
    "minecraft:cherry_standing_sign",
    "minecraft:cherry_trapdoor",
    "minecraft:cherry_wall_sign",
    "minecraft:cherry_wood",
    "minecraft:chest",
    "minecraft:chiseled_bookshelf",
    "minecraft:chorus_flower",
    "minecraft:chorus_plant",
    "minecraft:cocoa",
    "minecraft:composter",
    "minecraft:crafting_table",
    "minecraft:crimson_button",
    "minecraft:crimson_door",
    "minecraft:crimson_double_slab",
    "minecraft:crimson_fence",
    "minecraft:crimson_fence_gate",
    "minecraft:crimson_hanging_sign",
    "minecraft:crimson_hyphae",
    "minecraft:crimson_planks",
    "minecraft:crimson_pressure_plate",
    "minecraft:crimson_slab",
    "minecraft:crimson_stairs",
    "minecraft:crimson_standing_sign",
    "minecraft:crimson_stem",
    "minecraft:crimson_trapdoor",
    "minecraft:crimson_wall_sign",
    "minecraft:dark_oak_button",
    "minecraft:dark_oak_door",
    "minecraft:dark_oak_double_slab",
    "minecraft:dark_oak_fence",
    "minecraft:dark_oak_fence_gate",
    "minecraft:dark_oak_hanging_sign",
    "minecraft:dark_oak_log",
    "minecraft:dark_oak_planks",
    "minecraft:dark_oak_pressure_plate",
    "minecraft:dark_oak_slab",
    "minecraft:dark_oak_stairs",
    "minecraft:dark_oak_trapdoor",
    "minecraft:dark_oak_wood",
    "minecraft:darkoak_standing_sign",
    "minecraft:darkoak_wall_sign",
    "minecraft:daylight_detector",
    "minecraft:daylight_detector_inverted",
    "minecraft:fence", // old name
    "minecraft:fence_gate",
    "minecraft:fletching_table",
    "minecraft:jukebox",
    "minecraft:jungle_button",
    "minecraft:jungle_door",
    "minecraft:jungle_double_slab",
    "minecraft:jungle_fence",
    "minecraft:jungle_fence_gate",
    "minecraft:jungle_hanging_sign",
    "minecraft:jungle_log",
    "minecraft:jungle_planks",
    "minecraft:jungle_pressure_plate",
    "minecraft:jungle_slab",
    "minecraft:jungle_stairs",
    "minecraft:jungle_standing_sign",
    "minecraft:jungle_trapdoor",
    "minecraft:jungle_wall_sign",
    "minecraft:jungle_wood",
    "minecraft:ladder",
    "minecraft:lectern",
    "minecraft:lit_pumpkin",
    "minecraft:log", // old name
    "minecraft:log2", // old name
    "minecraft:loom",
    "minecraft:mangrove_button",
    "minecraft:mangrove_door",
    "minecraft:mangrove_double_slab",
    "minecraft:mangrove_fence",
    "minecraft:mangrove_fence_gate",
    "minecraft:mangrove_hanging_sign",
    "minecraft:mangrove_log",
    "minecraft:mangrove_planks",
    "minecraft:mangrove_pressure_plate",
    "minecraft:mangrove_roots",
    "minecraft:mangrove_slab",
    "minecraft:mangrove_stairs",
    "minecraft:mangrove_standing_sign",
    "minecraft:mangrove_trapdoor",
    "minecraft:mangrove_wall_sign",
    "minecraft:mangrove_wood",
    "minecraft:melon_block",
    "minecraft:noteblock",
    "minecraft:oak_double_slab",
    "minecraft:oak_fence",
    "minecraft:oak_hanging_sign",
    "minecraft:oak_log",
    "minecraft:oak_planks",
    "minecraft:oak_slab",
    "minecraft:oak_stairs",
    "minecraft:oak_wood",
    "minecraft:pumpkin",
    "minecraft:red_mushroom_block",
    "minecraft:smithing_table",
    "minecraft:soul_campfire",
    "minecraft:spruce_button",
    "minecraft:spruce_door",
    "minecraft:spruce_double_slab",
    "minecraft:spruce_fence",
    "minecraft:spruce_fence_gate",
    "minecraft:spruce_hanging_sign",
    "minecraft:spruce_log",
    "minecraft:spruce_planks",
    "minecraft:spruce_pressure_plate",
    "minecraft:spruce_slab",
    "minecraft:spruce_stairs",
    "minecraft:spruce_standing_sign",
    "minecraft:spruce_trapdoor",
    "minecraft:spruce_wall_sign",
    "minecraft:spruce_wood",
    "minecraft:standing_banner",
    "minecraft:standing_sign",
    "minecraft:stripped_acacia_log",
    "minecraft:stripped_acacia_wood",
    "minecraft:stripped_bamboo_block",
    "minecraft:stripped_birch_log",
    "minecraft:stripped_birch_wood",
    "minecraft:stripped_cherry_log",
    "minecraft:stripped_cherry_wood",
    "minecraft:stripped_crimson_hyphae",
    "minecraft:stripped_crimson_stem",
    "minecraft:stripped_dark_oak_log",
    "minecraft:stripped_dark_oak_wood",
    "minecraft:stripped_jungle_log",
    "minecraft:stripped_jungle_wood",
    "minecraft:stripped_mangrove_log",
    "minecraft:stripped_mangrove_wood",
    "minecraft:stripped_oak_log",
    "minecraft:stripped_oak_wood",
    "minecraft:stripped_spruce_log",
    "minecraft:stripped_spruce_wood",
    "minecraft:stripped_warped_hyphae",
    "minecraft:stripped_warped_stem",
    "minecraft:trapdoor",
    "minecraft:trapped_chest",
    "minecraft:vine",
    "minecraft:wall_banner",
    "minecraft:wall_sign",
    "minecraft:warped_button",
    "minecraft:warped_door",
    "minecraft:warped_double_slab",
    "minecraft:warped_fence",
    "minecraft:warped_fence_gate",
    "minecraft:warped_hanging_sign",
    "minecraft:warped_hyphae",
    "minecraft:warped_planks",
    "minecraft:warped_pressure_plate",
    "minecraft:warped_slab",
    "minecraft:warped_stairs",
    "minecraft:warped_standing_sign",
    "minecraft:warped_stem",
    "minecraft:warped_trapdoor",
    "minecraft:warped_wall_sign",
    "minecraft:wooden_button",
    "minecraft:wooden_door",
    "minecraft:wooden_pressure_plate"
  ]
  const customHoes = [
    "nicothekid:brass_hoe",
    "nicothekid:bronze_hoe",
    "nicothekid:olivine_hoe",
    "nicothekid:tin_hoe",
    "nicothekid:zinc_hoe"
  ]
  const hoeDiggableBlocks = [
    "minecraft:acacia_leaves",
    "minecraft:azalea_leaves",
    "minecraft:azalea_leaves_flowered",
    "minecraft:birch_leaves",
    "minecraft:calibrated_sculk_sensor",
    "minecraft:cherry_leaves",
    "minecraft:dark_oak_leaves",
    "minecraft:hay_block",
    "minecraft:jungle_leaves",
    "minecraft:mangrove_leaves",
    "minecraft:nether_wart_block",
    "minecraft:oak_leaves",
    "minecraft:shroomlight",
    "minecraft:sculk",
    "minecraft:sculk_vein",
    "minecraft:sculk_catalyst",
    "minecraft:sculk_sensor",
    "minecraft:sculk_shrieker",
    "minecraft:sponge",
    "minecraft:spruce_leaves",
    "minecraft:target",
    "minecraft:warped_wart_block"
  ]
  const customPickaxes = [
    "nicothekid:brass_pickaxe",
    "nicothekid:bronze_pickaxe",
    "nicothekid:olivine_pickaxe",
    "nicothekid:tin_pickaxe",
    "nicothekid:zinc_pickaxe"
  ]
  const pickaxeDiggableBlocks = [
    "minecraft:activator_rail",
    "minecraft:amethyst_block",
    "minecraft:amethyst_cluster",
    "minecraft:ancient_debris",
    "minecraft:andesite",
    "minecraft:andesite_stairs",
    "minecraft:anvil",
    "minecraft:basalt",
    "minecraft:bell",
    "minecraft:black_concrete",
    "minecraft:black_glazed_terracotta",
    "minecraft:black_shulker_box",
    "minecraft:black_terracotta",
    "minecraft:blackstone",
    "minecraft:blackstone_double_slab",
    "minecraft:blackstone_slab",
    "minecraft:blackstone_stairs",
    "minecraft:blackstone_wall",
    "minecraft:blast_furnace",
    "minecraft:blue_concrete",
    "minecraft:blue_glazed_terracotta",
    "minecraft:blue_ice",
    "minecraft:blue_shulker_box",
    "minecraft:blue_terracotta",
    "minecraft:bone_block",
    "minecraft:brain_coral_block",
    "minecraft:brewing_stand",
    "minecraft:brick_block",
    "minecraft:brick_slab",
    "minecraft:brick_stairs",
    "minecraft:brown_concrete",
    "minecraft:brown_glazed_terracotta",
    "minecraft:brown_shulker_box",
    "minecraft:brown_terracotta",
    "minecraft:bubble_coral_block",
    "minecraft:budding_amethyst",
    "minecraft:calcite",
    "minecraft:cauldron",
    "minecraft:chain",
    "minecraft:chiseled_copper",
    "minecraft:chiseled_deepslate",
    "minecraft:chiseled_nether_bricks",
    "minecraft:chiseled_polished_blackstone",
    "minecraft:chiseled_tuff",
    "minecraft:chiseled_tuff_bricks",
    "minecraft:coal_block",
    "minecraft:coal_ore",
    "minecraft:cobbled_deepslate",
    "minecraft:cobbled_deepslate_double_slab",
    "minecraft:cobbled_deepslate_slab",
    "minecraft:cobbled_deepslate_stairs",
    "minecraft:cobbled_deepslate_wall",
    "minecraft:cobblestone",
    "minecraft:cobblestone_slab",
    "minecraft:cobblestone_wall",
    "minecraft:concrete", // old name
    "minecraft:conduit",
    "minecraft:copper_block",
    "minecraft:copper_bulb",
    "minecraft:copper_door",
    "minecraft:copper_grate",
    "minecraft:copper_ore",
    "minecraft:copper_trapdoor",
    "minecraft:coral_block", // old name
    "minecraft:cracked_deepslate_bricks",
    "minecraft:cracked_deepslate_tiles",
    "minecraft:cracked_nether_bricks",
    "minecraft:cracked_polished_blackstone_bricks",
    "minecraft:crafter",
    "minecraft:crimson_nylium",
    "minecraft:crying_obsidian",
    "minecraft:cut_copper",
    "minecraft:cut_copper_slab",
    "minecraft:cut_copper_stairs",
    "minecraft:cyan_concrete",
    "minecraft:cyan_glazed_terracotta",
    "minecraft:cyan_shulker_box",
    "minecraft:cyan_terracotta",
    "minecraft:dark_prismarine_stairs",
    "minecraft:dead_brain_coral_block",
    "minecraft:dead_bubble_coral_block",
    "minecraft:dead_fire_coral_block",
    "minecraft:dead_horn_coral_block",
    "minecraft:dead_tube_coral_block",
    "minecraft:deepslate",
    "minecraft:deepslate_brick_double_slab",
    "minecraft:deepslate_brick_slab",
    "minecraft:deepslate_brick_stairs",
    "minecraft:deepslate_brick_wall",
    "minecraft:deepslate_bricks",
    "minecraft:deepslate_coal_ore",
    "minecraft:deepslate_copper_ore",
    "minecraft:deepslate_gold_ore",
    "minecraft:deepslate_iron_ore",
    "minecraft:deepslate_lapis_ore",
    "minecraft:deepslate_redstone_ore",
    "minecraft:deepslate_tile_double_slab",
    "minecraft:deepslate_tile_slab",
    "minecraft:deepslate_tile_stairs",
    "minecraft:deepslate_tile_wall",
    "minecraft:deepslate_tiles",
    "minecraft:detector_rail",
    "minecraft:diamond_block",
    "minecraft:diamond_ore",
    "minecraft:diorite",
    "minecraft:diorite_stairs",
    "minecraft:dispenser",
    "minecraft:double_cut_copper_slab",
    "minecraft:double_stone_slab",
    "minecraft:double_stone_slab2",
    "minecraft:double_stone_slab3",
    "minecraft:double_stone_slab4",
    "minecraft:dripstone_block",
    "minecraft:dropper",
    "minecraft:emerald_block",
    "minecraft:emerald_ore",
    "minecraft:enchanting_table",
    "minecraft:end_brick_stairs",
    "minecraft:end_bricks",
    "minecraft:end_stone",
    "minecraft:ender_chest",
    "minecraft:exposed_chiseled_copper",
    "minecraft:exposed_copper",
    "minecraft:exposed_copper_bulb",
    "minecraft:exposed_copper_door",
    "minecraft:exposed_copper_grate",
    "minecraft:exposed_copper_trapdoor",
    "minecraft:exposed_cut_copper",
    "minecraft:exposed_cut_copper_slab",
    "minecraft:exposed_cut_copper_stairs",
    "minecraft:exposed_double_cut_copper_slab",
    "minecraft:fire_coral_block",
    "minecraft:furnace",
    "minecraft:gilded_blackstone",
    "minecraft:gold_block",
    "minecraft:gold_ore",
    "minecraft:golden_rail",
    "minecraft:granite",
    "minecraft:granite_stairs",
    "minecraft:gray_concrete",
    "minecraft:gray_glazed_terracotta",
    "minecraft:gray_shulker_box",
    "minecraft:gray_terracotta",
    "minecraft:green_concrete",
    "minecraft:green_glazed_terracotta",
    "minecraft:green_shulker_box",
    "minecraft:green_terracotta",
    "minecraft:grindstone",
    "minecraft:hardened_clay",
    "minecraft:heavy_core",
    "minecraft:heavy_weighted_pressure_plate",
    "minecraft:hopper",
    "minecraft:horn_coral_block",
    "minecraft:ice",
    "minecraft:infested_deepslate",
    "minecraft:iron_bars",
    "minecraft:iron_block",
    "minecraft:iron_door",
    "minecraft:iron_ore",
    "minecraft:iron_trapdoor",
    "minecraft:lantern",
    "minecraft:lapis_block",
    "minecraft:lapis_ore",
    "minecraft:large_amethyst_bud",
    "minecraft:light_blue_concrete",
    "minecraft:light_blue_glazed_terracotta",
    "minecraft:light_blue_shulker_box",
    "minecraft:light_blue_terracotta",
    "minecraft:light_gray_concrete",
    "minecraft:light_gray_shulker_box",
    "minecraft:light_gray_terracotta",
    "minecraft:light_weighted_pressure_plate",
    "minecraft:lightning_rod",
    "minecraft:lime_concrete",
    "minecraft:lime_glazed_terracotta",
    "minecraft:lime_shulker_box",
    "minecraft:lime_terracotta",
    "minecraft:lit_blast_furnace",
    "minecraft:lit_furnace",
    "minecraft:lit_redstone_ore",
    "minecraft:lit_smoker",
    "minecraft:lodestone",
    "minecraft:magenta_concrete",
    "minecraft:magenta_glazed_terracotta",
    "minecraft:magenta_shulker_box",
    "minecraft:magenta_terracotta",
    "minecraft:magma",
    "minecraft:medium_amethyst_bud",
    "minecraft:mob_spawner",
    "minecraft:monster_egg",
    "minecraft:mossy_cobblestone",
    "minecraft:mossy_cobblestone_stairs",
    "minecraft:mossy_stone_brick_stairs",
    "minecraft:mud_brick_double_slab",
    "minecraft:mud_brick_slab",
    "minecraft:mud_brick_stairs",
    "minecraft:mud_brick_wall",
    "minecraft:mud_bricks",
    "minecraft:nether_brick",
    "minecraft:nether_brick_fence",
    "minecraft:nether_brick_slab",
    "minecraft:nether_brick_stairs",
    "minecraft:nether_gold_ore",
    "minecraft:netherite_block",
    "minecraft:netherrack",
    "minecraft:normal_stone_stairs",
    "minecraft:observer",
    "minecraft:obsidian",
    "minecraft:orange_concrete",
    "minecraft:orange_glazed_terracotta",
    "minecraft:orange_shulker_box",
    "minecraft:orange_terracotta",
    "minecraft:oxidized_chiseled_copper",
    "minecraft:oxidized_copper",
    "minecraft:oxidized_copper_bulb",
    "minecraft:oxidized_copper_door",
    "minecraft:oxidized_copper_grate",
    "minecraft:oxidized_copper_trapdoor",
    "minecraft:oxidized_cut_copper",
    "minecraft:oxidized_cut_copper_slab",
    "minecraft:oxidized_cut_copper_stairs",
    "minecraft:oxidized_double_cut_copper_slab",
    "minecraft:packed_ice",
    "minecraft:packed_mud",
    "minecraft:pink_concrete",
    "minecraft:pink_glazed_terracotta",
    "minecraft:pink_shulker_box",
    "minecraft:pink_terracotta",
    "minecraft:piston",
    "minecraft:pointed_dripstone",
    "minecraft:polished_andesite",
    "minecraft:polished_andesite_stairs",
    "minecraft:polished_basalt",
    "minecraft:polished_blackstone",
    "minecraft:polished_blackstone_brick_double_slab",
    "minecraft:polished_blackstone_brick_slab",
    "minecraft:polished_blackstone_brick_stairs",
    "minecraft:polished_blackstone_brick_wall",
    "minecraft:polished_blackstone_bricks",
    "minecraft:polished_blackstone_button",
    "minecraft:polished_blackstone_double_slab",
    "minecraft:polished_blackstone_pressure_plate",
    "minecraft:polished_blackstone_slab",
    "minecraft:polished_blackstone_stairs",
    "minecraft:polished_blackstone_wall",
    "minecraft:polished_deepslate",
    "minecraft:polished_deepslate_double_slab",
    "minecraft:polished_deepslate_slab",
    "minecraft:polished_deepslate_stairs",
    "minecraft:polished_deepslate_wall",
    "minecraft:polished_diorite",
    "minecraft:polished_diorite_stairs",
    "minecraft:polished_granite",
    "minecraft:polished_granite_stairs",
    "minecraft:polished_tuff",
    "minecraft:polished_tuff_double_slab",
    "minecraft:polished_tuff_slab",
    "minecraft:polished_tuff_stairs",
    "minecraft:polished_tuff_wall",
    "minecraft:prismarine",
    "minecraft:prismarine_bricks_stairs",
    "minecraft:prismarine_stairs",
    "minecraft:purple_concrete",
    "minecraft:purple_glazed_terracotta",
    "minecraft:purple_shulker_box",
    "minecraft:purple_terracotta",
    "minecraft:purpur_block",
    "minecraft:purpur_stairs",
    "minecraft:quartz_block",
    "minecraft:quartz_bricks",
    "minecraft:quartz_ore",
    "minecraft:quartz_slab",
    "minecraft:quartz_stairs",
    "minecraft:rail",
    "minecraft:raw_copper_block",
    "minecraft:raw_gold_block",
    "minecraft:raw_iron_block",
    "minecraft:red_concrete",
    "minecraft:red_glazed_terracotta",
    "minecraft:red_nether_brick",
    "minecraft:red_nether_brick_stairs",
    "minecraft:red_sandstone",
    "minecraft:red_sandstone_stairs",
    "minecraft:red_shulker_box",
    "minecraft:red_terracotta",
    "minecraft:redstone_block",
    "minecraft:redstone_ore"
    "minecraft:respawn_anchor",
    "minecraft:sandstone",
    "minecraft:sandstone_slab",
    "minecraft:sandstone_stairs",
    "minecraft:shulker_box", // old name
    "minecraft:silver_glazed_terracotta",
    "minecraft:small_amethyst_bud",
    "minecraft:smoker",
    "minecraft:smooth_basalt",
    "minecraft:smooth_quartz_stairs",
    "minecraft:smooth_red_sandstone_stairs",
    "minecraft:smooth_sandstone_stairs",
    "minecraft:smooth_stone",
    "minecraft:smooth_stone_slab",
    "minecraft:soul_lantern",
    "minecraft:stained_hardened_clay", // old name
    "minecraft:sticky_piston",
    "minecraft:stone",
    "minecraft:stone_brick_slab",
    "minecraft:stone_brick_stairs",
    "minecraft:stone_button",
    "minecraft:stone_pressure_plate",
    "minecraft:stone_slab", // removed in 1.21
    "minecraft:stone_slab2",
    "minecraft:stone_slab3",
    "minecraft:stone_slab4",
    "minecraft:stone_stairs",
    "minecraft:stonebrick",
    "minecraft:stonecutter_block",
    "minecraft:tube_coral_block",
    "minecraft:tuff",
    "minecraft:tuff_brick_double_slab",
    "minecraft:tuff_brick_slab",
    "minecraft:tuff_brick_stairs",
    "minecraft:tuff_brick_wall",
    "minecraft:tuff_bricks",
    "minecraft:tuff_double_slab",
    "minecraft:tuff_slab",
    "minecraft:tuff_stairs",
    "minecraft:tuff_wall",
    "minecraft:undyed_shulker_box",
    "minecraft:warped_nylium",
    "minecraft:waxed_chiseled_copper",
    "minecraft:waxed_copper",
    "minecraft:waxed_copper_bulb",
    "minecraft:waxed_copper_door",
    "minecraft:waxed_copper_grate",
    "minecraft:waxed_copper_trapdoor",
    "minecraft:waxed_cut_copper",
    "minecraft:waxed_cut_copper_slab",
    "minecraft:waxed_cut_copper_stairs",
    "minecraft:waxed_double_cut_copper_slab",
    "minecraft:waxed_exposed_chiseled_copper",
    "minecraft:waxed_exposed_copper",
    "minecraft:waxed_exposed_copper_bulb",
    "minecraft:waxed_exposed_copper_door",
    "minecraft:waxed_exposed_copper_grate",
    "minecraft:waxed_exposed_copper_trapdoor",
    "minecraft:waxed_exposed_cut_copper",
    "minecraft:waxed_exposed_cut_copper_slab",
    "minecraft:waxed_exposed_cut_copper_stairs",
    "minecraft:waxed_exposed_double_cut_copper_slab",
    "minecraft:waxed_oxidized_chiseled_copper",
    "minecraft:waxed_oxidized_copper",
    "minecraft:waxed_oxidized_copper_bulb",
    "minecraft:waxed_oxidized_copper_door",
    "minecraft:waxed_oxidized_copper_grate",
    "minecraft:waxed_oxidized_copper_trapdoor",
    "minecraft:waxed_oxidized_cut_copper",
    "minecraft:waxed_oxidized_cut_copper_slab",
    "minecraft:waxed_oxidized_cut_copper_stairs",
    "minecraft:waxed_oxidized_double_cut_copper_slab",
    "minecraft:waxed_weathered_chiseled_copper",
    "minecraft:waxed_weathered_copper",
    "minecraft:waxed_weathered_copper_bulb",
    "minecraft:waxed_weathered_copper_door",
    "minecraft:waxed_weathered_copper_grate",
    "minecraft:waxed_weathered_copper_trapdoor",
    "minecraft:waxed_weathered_cut_copper",
    "minecraft:waxed_weathered_cut_copper_slab",
    "minecraft:waxed_weathered_cut_copper_stairs",
    "minecraft:waxed_weathered_double_cut_copper_slab",
    "minecraft:weathered_chiseled_copper",
    "minecraft:weathered_copper",
    "minecraft:weathered_copper_bulb",
    "minecraft:weathered_copper_door",
    "minecraft:weathered_copper_grate",
    "minecraft:weathered_copper_trapdoor",
    "minecraft:weathered_cut_copper",
    "minecraft:weathered_cut_copper_slab",
    "minecraft:weathered_cut_copper_stairs",
    "minecraft:weathered_double_cut_copper_slab",
    "minecraft:white_concrete",
    "minecraft:white_glazed_terracotta",
    "minecraft:white_shulker_box",
    "minecraft:white_terracotta",
    "minecraft:yellow_concrete",
    "minecraft:yellow_glazed_terracotta",
    "minecraft:yellow_shulker_box",
    "minecraft:yellow_terracotta"
  ]
  const customShovels = [
    "nicothekid:brass_shovel",
    "nicothekid:bronze_shovel",
    "nicothekid:olivine_shovel",
    "nicothekid:tin_shovel",
    "nicothekid:zinc_shovel"
  ]
  const shovelDiggableBlocks = [
    "minecraft:black_concrete_powder",
    "minecraft:blue_concrete_powder",
    "minecraft:brown_concrete_powder",
    "minecraft:clay",
    "minecraft:concrete_powder", // old name
    "minecraft:cyan_concrete_powder",
    "minecraft:dirt",
    "minecraft:dirt_with_roots",
    "minecraft:farmland",
    "minecraft:grass_block",
    "minecraft:grass_path",
    "minecraft:gravel",
    "minecraft:gray_concrete_powder",
    "minecraft:green_concrete_powder",
    "minecraft:light_blue_concrete_powder",
    "minecraft:light_gray_concrete_powder",
    "minecraft:lime_concrete_powder",
    "minecraft:magenta_concrete_powder",
    "minecraft:mud",
    "minecraft:muddy_mangrove_roots",
    "minecraft:mycelium",
    "minecraft:orange_concrete_powder",
    "minecraft:pink_concrete_powder",
    "minecraft:podzol",
    "minecraft:purple_concrete_powder",
    "minecraft:red_concrete_powder",
    "minecraft:sand",
    "minecraft:snow",
    "minecraft:snow_layer",
    "minecraft:soul_sand",
    "minecraft:soul_soil",
    "minecraft:suspicious_gravel",
    "minecraft:suspicious_sand",
    "minecraft:white_concrete_powder",
    "minecraft:yellow_concrete_powder"
  ]
  const customSwords = [
    "nicothekid:brass_sword",
    "nicothekid:bronze_sword",
    "nicothekid:olivine_sword",
    "nicothekid:tin_sword",
    "nicothekid:zinc_sword"
  ]
  const swordDiggableBlocks = [
    "minecraft:infested_deepslate",
    "minecraft:monster_egg",
    "minecraft:web"
  ]
  if (itemUsed === undefined || !playerEquippable || player.matches({ gameMode: GameMode.creative })) return;
  if (customAxes.includes(itemUsed.typeId) || customHoes.includes(itemUsed.typeId) || customPickaxes.includes(itemUsed.typeId) || customShovels.includes(itemUsed.typeId) || customSwords.includes(itemUsed.typeId)) {
    if (!instantDiggableBlocks.includes(brokenBlock.type.id) && !brokenBlock.hasTag("instant_diggable")) {
      if (customAxes.includes(itemUsed.typeId)) {
        const itemEnchantable = itemUsed.getComponent("enchantable");
        const unbreakingLevel = itemEnchantable?.getEnchantment("unbreaking")?.level ?? 0;
        const breakChance = 100 / (unbreakingLevel + 1);
        const randomizeChance = Math.random() * 100;
        if (breakChance < randomizeChance) return;
        const itemDurability = itemUsed.getComponent("durability");
        if (!itemDurability) return;
        const itemMaxDurability = itemDurability.maxDurability;
        const itemDurabilityDamage = itemDurability.damage;
        const durabilityCalculation = itemMaxDurability - itemDurabilityDamage;
        let damageAmount = 0;
        if (axeDiggableBlocks.includes(brokenBlock.type.id) || brokenBlock.hasTag("axe_diggable") || brokenBlock.hasTag("wood")) {
          damageAmount = 1;
        }
        else {
          damageAmount = 2;
        };
        const currentDurability = durabilityCalculation - damageAmount;
        if (currentDurability <= 0) {
          player.playSound("random.break", { pitch: 0.9, location: player.location, volume: 1 });
          playerEquippable.setEquipment("Mainhand", null);
        }
        else {
          itemDurability.damage += damageAmount;
          playerEquippable.setEquipment("Mainhand", itemUsed)
        }
      }
      if (customHoes.includes(itemUsed.typeId)) {
        const itemEnchantable = itemUsed.getComponent("enchantable");
        const unbreakingLevel = itemEnchantable?.getEnchantment("unbreaking")?.level ?? 0;
        const breakChance = 100 / (unbreakingLevel + 1);
        const randomizeChance = Math.random() * 100;
        if (breakChance < randomizeChance) return;
        const itemDurability = itemUsed.getComponent("durability");
        if (!itemDurability) return;
        const itemMaxDurability = itemDurability.maxDurability;
        const itemDurabilityDamage = itemDurability.damage;
        const durabilityCalculation = itemMaxDurability - itemDurabilityDamage;
        let damageAmount = 0;
        if (hoeDiggableBlocks.includes(brokenBlock.type.id) || brokenBlock.hasTag("hoe_diggable") || brokenBlock.hasTag("leaves")) {
          damageAmount = 1;
        }
        else {
          damageAmount = 2;
        };
        const currentDurability = durabilityCalculation - damageAmount;
        if (currentDurability <= 0) {
          player.playSound("random.break", { pitch: 0.9, location: player.location, volume: 1 });
          playerEquippable.setEquipment("Mainhand", null);
        }
        else {
          itemDurability.damage += damageAmount;
          playerEquippable.setEquipment("Mainhand", itemUsed)
        }
      }
      if (customPickaxes.includes(itemUsed.typeId)) {
        const itemEnchantable = itemUsed.getComponent("enchantable");
        const unbreakingLevel = itemEnchantable?.getEnchantment("unbreaking")?.level ?? 0;
        const breakChance = 100 / (unbreakingLevel + 1);
        const randomizeChance = Math.random() * 100;
        if (breakChance < randomizeChance) return;
        const itemDurability = itemUsed.getComponent("durability");
        if (!itemDurability) return;
        const itemMaxDurability = itemDurability.maxDurability;
        const itemDurabilityDamage = itemDurability.damage;
        const durabilityCalculation = itemMaxDurability - itemDurabilityDamage;
        let damageAmount = 0;
        if (pickaxeDiggableBlocks.includes(brokenBlock.type.id) || brokenBlock.hasTag("pickaxe_diggable") || brokenBlock.hasTag("stone")) {
          damageAmount = 1;
        }
        else {
          damageAmount = 2;
        };
        const currentDurability = durabilityCalculation - damageAmount;
        if (currentDurability <= 0) {
          player.playSound("random.break", { pitch: 0.9, location: player.location, volume: 1 });
          playerEquippable.setEquipment("Mainhand", null);
        }
        else {
          itemDurability.damage += damageAmount;
          playerEquippable.setEquipment("Mainhand", itemUsed)
        }
      }
      if (customShovels.includes(itemUsed.typeId)) {
        const itemEnchantable = itemUsed.getComponent("enchantable");
        const unbreakingLevel = itemEnchantable?.getEnchantment("unbreaking")?.level ?? 0;
        const breakChance = 100 / (unbreakingLevel + 1);
        const randomizeChance = Math.random() * 100;
        if (breakChance < randomizeChance) return;
        const itemDurability = itemUsed.getComponent("durability");
        if (!itemDurability) return;
        const itemMaxDurability = itemDurability.maxDurability;
        const itemDurabilityDamage = itemDurability.damage;
        const durabilityCalculation = itemMaxDurability - itemDurabilityDamage;
        let damageAmount = 0;
        if (shovelDiggableBlocks.includes(brokenBlock.type.id) || brokenBlock.hasTag("shovel_diggable") || brokenBlock.hasTag("dirt")) {
          damageAmount = 1;
        }
        else {
          damageAmount = 2;
        };
        const currentDurability = durabilityCalculation - damageAmount;
        if (currentDurability <= 0) {
          player.playSound("random.break", { pitch: 0.9, location: player.location, volume: 1 });
          playerEquippable.setEquipment("Mainhand", null);
        }
        else {
          itemDurability.damage += damageAmount;
          playerEquippable.setEquipment("Mainhand", itemUsed)
        }
      }
      if (customSwords.includes(itemUsed.typeId)) {
        const itemEnchantable = itemUsed.getComponent("enchantable");
        const unbreakingLevel = itemEnchantable?.getEnchantment("unbreaking")?.level ?? 0;
        const breakChance = 100 / (unbreakingLevel + 1);
        const randomizeChance = Math.random() * 100;
        if (breakChance < randomizeChance) return;
        const itemDurability = itemUsed.getComponent("durability");
        if (!itemDurability) return;
        const itemMaxDurability = itemDurability.maxDurability;
        const itemDurabilityDamage = itemDurability.damage;
        const durabilityCalculation = itemMaxDurability - itemDurabilityDamage;
        let damageAmount = 0;
        if (swordDiggableBlocks.includes(brokenBlock.type.id) || brokenBlock.hasTag("sword_diggable")) {
          damageAmount = 1;
        }
        else {
          damageAmount = 2;
        };
        const currentDurability = durabilityCalculation - damageAmount;
        if (currentDurability <= 0) {
          player.playSound("random.break", { pitch: 0.9, location: player.location, volume: 1 });
          playerEquippable.setEquipment("Mainhand", null);
        }
        else {
          itemDurability.damage += damageAmount;
          playerEquippable.setEquipment("Mainhand", itemUsed)
        }
      }
    }
  }
  else return;
});
world.afterEvents.playerBreakBlock.subscribe(eventData => {
  const player = eventData.player;
  const itemUsed = eventData.itemStackBeforeBreak;
  const brokenBlock = eventData.brokenBlockPermutation;
  const playerEquippable = player.getComponent("equippable");
  const vanillaTools = [
    "minecraft:diamond_axe",
    "minecraft:diamond_hoe",
    "minecraft:diamond_pickaxe",
    "minecraft:diamond_shovel",
    "minecraft:diamond_sword",
    "minecraft:flint_and_steel",
    "minecraft:golden_axe",
    "minecraft:golden_hoe",
    "minecraft:golden_pickaxe",
    "minecraft:golden_shovel",
    "minecraft:golden_sword",
    "minecraft:iron_axe",
    "minecraft:iron_hoe",
    "minecraft:iron_pickaxe",
    "minecraft:iron_shovel",
    "minecraft:iron_sword",
    "minecraft:mace",
    "minecraft:netherite_axe",
    "minecraft:netherite_hoe",
    "minecraft:netherite_pickaxe",
    "minecraft:netherite_shovel",
    "minecraft:netherite_sword",
    "minecraft:shield",
    "minecraft:stone_axe",
    "minecraft:stone_hoe",
    "minecraft:stone_pickaxe",
    "minecraft:stone_shovel",
    "minecraft:stone_sword",
    "minecraft:wooden_axe",
    "minecraft:wooden_hoe",
    "minecraft:wooden_pickaxe",
    "minecraft:wooden_shovel",
    "minecraft:wooden_sword"
  ]
  const otherTools = [
    "minecraft:flint_and_steel",
    "minecraft:mace",
    "minecraft:shield"
  ]
  if (itemUsed === undefined || !playerEquippable || player.matches({ gameMode: GameMode.creative })) return;
  if (vanillaTools.includes(itemUsed.typeId) || itemUsed.hasTag("minecraft:is_axe") || itemUsed.hasTag("minecraft:is_hoe") || itemUsed.hasTag("minecraft:is_pickaxe") || itemUsed.hasTag("minecraft:is_shovel") || itemUsed.hasTag("minecraft:is_sword")) {
    if (brokenBlock.hasTag("nicothekid_blocks")) {
      if (!brokenBlock.hasTag("instant_diggable")) {
        if (itemUsed.hasTag("minecraft:is_axe")) {
          const itemEnchantable = itemUsed.getComponent("enchantable");
          const unbreakingLevel = itemEnchantable?.getEnchantment("unbreaking")?.level ?? 0;
          const breakChance = 100 / (unbreakingLevel + 1);
          const randomizeChance = Math.random() * 100;
          if (breakChance < randomizeChance) return;
          const itemDurability = itemUsed.getComponent("durability");
          if (!itemDurability) return;
          const itemMaxDurability = itemDurability.maxDurability;
          const itemDurabilityDamage = itemDurability.damage;
          const durabilityCalculation = itemMaxDurability - itemDurabilityDamage;
          let damageAmount = 0;
          if (brokenBlock.hasTag("axe_diggable") || brokenBlock.hasTag("any_tool_diggable")) {
            damageAmount = 1;
          }
          else {
            damageAmount = 2;
          };
          const currentDurability = durabilityCalculation - damageAmount;
          if (currentDurability <= 0) {
            player.playSound("random.break", { pitch: 0.9, location: player.location, volume: 1 });
            playerEquippable.setEquipment("Mainhand", null);
          }
          else {
            itemDurability.damage += damageAmount;
            playerEquippable.setEquipment("Mainhand", itemUsed)
          }
        }
        if (itemUsed.hasTag("minecraft:is_hoe")) {
          const itemEnchantable = itemUsed.getComponent("enchantable");
          const unbreakingLevel = itemEnchantable?.getEnchantment("unbreaking")?.level ?? 0;
          const breakChance = 100 / (unbreakingLevel + 1);
          const randomizeChance = Math.random() * 100;
          if (breakChance < randomizeChance) return;
          const itemDurability = itemUsed.getComponent("durability");
          if (!itemDurability) return;
          const itemMaxDurability = itemDurability.maxDurability;
          const itemDurabilityDamage = itemDurability.damage;
          const durabilityCalculation = itemMaxDurability - itemDurabilityDamage;
          let damageAmount = 0;
          if (brokenBlock.hasTag("hoe_diggable") || brokenBlock.hasTag("any_tool_diggable")) {
            damageAmount = 1;
          }
          else {
            damageAmount = 2;
          };
          const currentDurability = durabilityCalculation - damageAmount;
          if (currentDurability <= 0) {
            player.playSound("random.break", { pitch: 0.9, location: player.location, volume: 1 });
            playerEquippable.setEquipment("Mainhand", null);
          }
          else {
            itemDurability.damage += damageAmount;
            playerEquippable.setEquipment("Mainhand", itemUsed)
          }
        }
        if (itemUsed.hasTag("minecraft:is_pickaxe")) {
          const itemEnchantable = itemUsed.getComponent("enchantable");
          const unbreakingLevel = itemEnchantable?.getEnchantment("unbreaking")?.level ?? 0;
          const breakChance = 100 / (unbreakingLevel + 1);
          const randomizeChance = Math.random() * 100;
          if (breakChance < randomizeChance) return;
          const itemDurability = itemUsed.getComponent("durability");
          if (!itemDurability) return;
          const itemMaxDurability = itemDurability.maxDurability;
          const itemDurabilityDamage = itemDurability.damage;
          const durabilityCalculation = itemMaxDurability - itemDurabilityDamage;
          let damageAmount = 0;
          if (brokenBlock.hasTag("pickaxe_diggable") || brokenBlock.hasTag("any_tool_diggable")) {
            damageAmount = 1;
          }
          else {
            damageAmount = 2;
          };
          const currentDurability = durabilityCalculation - damageAmount;
          if (currentDurability <= 0) {
            player.playSound("random.break", { pitch: 0.9, location: player.location, volume: 1 });
            playerEquippable.setEquipment("Mainhand", null);
          }
          else {
            itemDurability.damage += damageAmount;
            playerEquippable.setEquipment("Mainhand", itemUsed)
          }
        }
        if (itemUsed.hasTag("minecraft:is_shovel")) {
          const itemEnchantable = itemUsed.getComponent("enchantable");
          const unbreakingLevel = itemEnchantable?.getEnchantment("unbreaking")?.level ?? 0;
          const breakChance = 100 / (unbreakingLevel + 1);
          const randomizeChance = Math.random() * 100;
          if (breakChance < randomizeChance) return;
          const itemDurability = itemUsed.getComponent("durability");
          if (!itemDurability) return;
          const itemMaxDurability = itemDurability.maxDurability;
          const itemDurabilityDamage = itemDurability.damage;
          const durabilityCalculation = itemMaxDurability - itemDurabilityDamage;
          let damageAmount = 0;
          if (brokenBlock.hasTag("shovel_diggable") || brokenBlock.hasTag("any_tool_diggable")) {
            damageAmount = 1;
          }
          else {
            damageAmount = 2;
          };
          const currentDurability = durabilityCalculation - damageAmount;
          if (currentDurability <= 0) {
            player.playSound("random.break", { pitch: 0.9, location: player.location, volume: 1 });
            playerEquippable.setEquipment("Mainhand", null);
          }
          else {
            itemDurability.damage += damageAmount;
            playerEquippable.setEquipment("Mainhand", itemUsed)
          }
        }
        if (itemUsed.hasTag("minecraft:is_sword")) {
          const itemEnchantable = itemUsed.getComponent("enchantable");
          const unbreakingLevel = itemEnchantable?.getEnchantment("unbreaking")?.level ?? 0;
          const breakChance = 100 / (unbreakingLevel + 1);
          const randomizeChance = Math.random() * 100;
          if (breakChance < randomizeChance) return;
          const itemDurability = itemUsed.getComponent("durability");
          if (!itemDurability) return;
          const itemMaxDurability = itemDurability.maxDurability;
          const itemDurabilityDamage = itemDurability.damage;
          const durabilityCalculation = itemMaxDurability - itemDurabilityDamage;
          let damageAmount = 0;
          if (brokenBlock.hasTag("sword_diggable") || brokenBlock.hasTag("any_tool_diggable")) {
            damageAmount = 1;
          }
          else {
            damageAmount = 2;
          };
          const currentDurability = durabilityCalculation - damageAmount;
          if (currentDurability <= 0) {
            player.playSound("random.break", { pitch: 0.9, location: player.location, volume: 1 });
            playerEquippable.setEquipment("Mainhand", null);
          }
          else {
            itemDurability.damage += damageAmount;
            playerEquippable.setEquipment("Mainhand", itemUsed)
          }
        }
        if (otherTools.includes(itemUsed.typeId)) {
          const itemEnchantable = itemUsed.getComponent("enchantable");
          const unbreakingLevel = itemEnchantable?.getEnchantment("unbreaking")?.level ?? 0;
          const breakChance = 100 / (unbreakingLevel + 1);
          const randomizeChance = Math.random() * 100;
          if (breakChance < randomizeChance) return;
          const itemDurability = itemUsed.getComponent("durability");
          if (!itemDurability) return;
          const itemMaxDurability = itemDurability.maxDurability;
          const itemDurabilityDamage = itemDurability.damage;
          const durabilityCalculation = itemMaxDurability - itemDurabilityDamage;
          let damageAmount = 2;
          const currentDurability = durabilityCalculation - damageAmount;
          //console.warn(currentDurability);
          if (currentDurability <= 0) {
            player.playSound("random.break", { pitch: 0.9, location: player.location, volume: 1 });
            playerEquippable.setEquipment("Mainhand", null);
          }
          else {
            itemDurability.damage += damageAmount;
            playerEquippable.setEquipment("Mainhand", itemUsed)
          }
        }
      }
      else return;
    }
  }
  else return;
});
world.beforeEvents.itemUseOn.subscribe(eventData => {
  const player = eventData.source;
  const itemUsed = eventData.itemStack;
  const block = eventData.block;
  const blockLocation = block.location;
  const playerEquippable = player.getComponent("equippable");
  const customAxes = [
    "nicothekid:brass_axe",
    "nicothekid:bronze_axe",
    "nicothekid:olivine_axe",
    "nicothekid:tin_axe",
    "nicothekid:zinc_axe"
  ]
  const customHoes = [
    "nicothekid:brass_hoe",
    "nicothekid:bronze_hoe",
    "nicothekid:olivine_hoe",
    "nicothekid:tin_hoe",
    "nicothekid:zinc_hoe"
  ]
  const customShovels = [
    "nicothekid:brass_shovel",
    "nicothekid:bronze_shovel",
    "nicothekid:olivine_shovel",
    "nicothekid:tin_shovel",
    "nicothekid:zinc_shovel"
  ]
  function damageDurability () {
    if (!player.matches({ gameMode: GameMode.creative })) {
      const itemEnchantable = itemUsed.getComponent("minecraft:enchantable");
      const unbreakingLevel = itemEnchantable?.getEnchantment("unbreaking")?.level ?? 0;
      const breakChance = 100 / (unbreakingLevel + 1);
      const randomizeChance = Math.random() * 100;
      if (breakChance < randomizeChance) return;
      const itemDurability = itemUsed.getComponent("durability");
      if (!itemDurability) return;
      const itemMaxDurability = itemDurability.maxDurability;
      const itemDurabilityDamage = itemDurability.damage;
      const durabilityCalculation = itemMaxDurability - itemDurabilityDamage;
      let damageAmount = 1;
      const currentDurability = durabilityCalculation - damageAmount;
      if (currentDurability <= 0) {
        player.playSound("random.break", { pitch: 0.9, location: player.location, volume: 1 });
        playerEquippable.setEquipment("Mainhand", null);
      }
      else {
        itemDurability.damage += damageAmount;
        playerEquippable.setEquipment("Mainhand", itemUsed)
      }
    }
  }
  if (itemUsed === undefined || !playerEquippable) return;
  if (customAxes.includes(itemUsed.typeId) || customHoes.includes(itemUsed.typeId) || customShovels.includes(itemUsed.typeId)) {
    if (customAxes.includes(itemUsed.typeId)) {
      const validWoods = [
        "minecraft:oak_log",
        "minecraft:oak_wood",
        "minecraft:spruce_log",
        "minecraft:spruce_wood",
        "minecraft:birch_log",
        "minecraft:birch_wood",
        "minecraft:jungle_log",
        "minecraft:jungle_wood",
        "minecraft:acacia_log",
        "minecraft:acacia_wood",
        "minecraft:dark_oak_log",
        "minecraft:dark_oak_wood",
        "minecraft:mangrove_log",
        "minecraft:mangrove_wood",
        "minecraft:cherry_log",
        "minecraft:cherry_wood",
        "minecraft:bamboo_block",
        "minecraft:crimson_stem",
        "minecraft:crimson_hyphae",
        "minecraft:warped_stem",
        "minecraft:warped_hyphae"
      ];
      const validCopper = [
        "minecraft:exposed_chiseled_copper",
        "minecraft:exposed_copper",
        "minecraft:exposed_copper_bulb",
        "minecraft:exposed_copper_door",
        "minecraft:exposed_copper_grate",
        "minecraft:exposed_copper_trapdoor",
        "minecraft:exposed_cut_copper",
        "minecraft:exposed_cut_copper_stairs",
        "minecraft:exposed_cut_copper_slab",
        "minecraft:exposed_double_cut_copper_slab",
        "minecraft:weathered_chiseled_copper",
        "minecraft:weathered_copper",
        "minecraft:weathered_copper_bulb",
        "minecraft:weathered_copper_door",
        "minecraft:weathered_copper_grate",
        "minecraft:weathered_copper_trapdoor",
        "minecraft:weathered_cut_copper",
        "minecraft:weathered_cut_copper_stairs",
        "minecraft:weathered_cut_copper_slab",
        "minecraft:weathered_double_cut_copper_slab",
        "minecraft:oxidized_chiseled_copper",
        "minecraft:oxidized_copper",
        "minecraft:oxidized_copper_bulb",
        "minecraft:oxidized_copper_door",
        "minecraft:oxidized_copper_grate",
        "minecraft:oxidized_copper_trapdoor",
        "minecraft:oxidized_cut_copper",
        "minecraft:oxidized_cut_copper_stairs",
        "minecraft:oxidized_cut_copper_slab",
        "minecraft:oxidized_double_cut_copper_slab"
      ];
      const validWaxedCopper = [
        "minecraft:waxed_copper",
        "minecraft:waxed_chiseled_copper",
        "minecraft:waxed_copper_bulb",
        "minecraft:waxed_copper_door",
        "minecraft:waxed_copper_grate",
        "minecraft:waxed_copper_trapdoor",
        "minecraft:waxed_cut_copper",
        "minecraft:waxed_cut_copper_stairs",
        "minecraft:waxed_cut_copper_slab",
        "minecraft:waxed_double_cut_copper_slab",
        
        "minecraft:waxed_exposed_copper",
        "minecraft:waxed_exposed_chiseled_copper",
        "minecraft:waxed_exposed_copper_bulb",
        "minecraft:waxed_exposed_copper_door",
        "minecraft:waxed_exposed_copper_grate",
        "minecraft:waxed_exposed_copper_trapdoor",
        "minecraft:waxed_exposed_cut_copper",
        "minecraft:waxed_exposed_cut_copper_stairs",
        "minecraft:waxed_exposed_cut_copper_slab",
        "minecraft:waxed_exposed_double_cut_copper_slab",
        
        "minecraft:waxed_weathered_copper",
        "minecraft:waxed_weathered_chiseled_copper",
        "minecraft:waxed_weathered_copper_bulb",
        "minecraft:waxed_weathered_copper_door",
        "minecraft:waxed_weathered_copper_grate",
        "minecraft:waxed_weathered_copper_trapdoor",
        "minecraft:waxed_weathered_cut_copper",
        "minecraft:waxed_weathered_cut_copper_stairs",
        "minecraft:waxed_weathered_cut_copper_slab",
        "minecraft:waxed_weathered_double_cut_copper_slab",
        
        "minecraft:waxed_oxidized_copper",
        "minecraft:waxed_oxidized_chiseled_copper",
        "minecraft:waxed_oxidized_copper_bulb",
        "minecraft:waxed_oxidized_copper_door",
        "minecraft:waxed_oxidized_copper_grate",
        "minecraft:waxed_oxidized_copper_trapdoor",
        "minecraft:waxed_oxidized_cut_copper",
        "minecraft:waxed_oxidized_cut_copper_stairs",
        "minecraft:waxed_oxidized_cut_copper_slab",
        "minecraft:waxed_oxidized_double_cut_copper_slab"
      ];
      if (validWoods.includes(block.typeId)) {
        if (block.permutation.matches("minecraft:oak_log", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_oak_log", { pillar_axis: "y" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:oak_log", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_oak_log", { pillar_axis: "x" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:oak_log", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_oak_log", { pillar_axis: "z" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:oak_wood", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_oak_wood", { pillar_axis: "y" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:oak_wood", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_oak_wood", { pillar_axis: "x" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:oak_wood", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_oak_wood", { pillar_axis: "z" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:spruce_log", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_spruce_log", { pillar_axis: "y" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:spruce_log", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_spruce_log", { pillar_axis: "x" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:spruce_log", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_spruce_log", { pillar_axis: "z" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:spruce_wood", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_spruce_wood", { pillar_axis: "y" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:spruce_wood", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_spruce_wood", { pillar_axis: "x" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:spruce_wood", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_spruce_wood", { pillar_axis: "z" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:birch_log", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_birch_log", { pillar_axis: "y" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:birch_log", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_birch_log", { pillar_axis: "x" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:birch_log", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_birch_log", { pillar_axis: "z" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:birch_wood", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_birch_wood", { pillar_axis: "y" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:birch_wood", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_birch_wood", { pillar_axis: "x" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:birch_wood", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_birch_wood", { pillar_axis: "z" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:jungle_log", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_jungle_log", { pillar_axis: "y" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:jungle_log", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_jungle_log", { pillar_axis: "x" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:jungle_log", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_jungle_log", { pillar_axis: "z" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:jungle_wood", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_jungle_wood", { pillar_axis: "y" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:jungle_wood", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_jungle_wood", { pillar_axis: "x" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:jungle_wood", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_jungle_wood", { pillar_axis: "z" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:acacia_log", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_acacia_log", { pillar_axis: "y" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:acacia_log", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_acacia_log", { pillar_axis: "x" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:acacia_log", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_acacia_log", { pillar_axis: "z" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:acacia_wood", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_acacia_wood", { pillar_axis: "y" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:acacia_wood", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_acacia_wood", { pillar_axis: "x" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:acacia_wood", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_acacia_wood", { pillar_axis: "z" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:dark_oak_log", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_dark_oak_log", { pillar_axis: "y" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:dark_oak_log", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_dark_oak_log", { pillar_axis: "x" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:dark_oak_log", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_dark_oak_log", { pillar_axis: "z" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:dark_oak_wood", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_dark_oak_wood", { pillar_axis: "y" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:dark_oak_wood", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_dark_oak_wood", { pillar_axis: "x" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:dark_oak_wood", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_dark_oak_wood", { pillar_axis: "z" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:mangrove_log", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_mangrove_log", { pillar_axis: "y" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:mangrove_log", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_mangrove_log", { pillar_axis: "x" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:mangrove_log", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_mangrove_log", { pillar_axis: "z" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:mangrove_wood", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_mangrove_wood", { pillar_axis: "y" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:mangrove_wood", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_mangrove_wood", { pillar_axis: "x" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:mangrove_wood", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_mangrove_wood", { pillar_axis: "z" }));
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:cherry_log", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_cherry_log", { pillar_axis: "y" }));
            block.dimension.playSound("step.cherry_wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:cherry_log", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_cherry_log", { pillar_axis: "x" }));
            block.dimension.playSound("step.cherry_wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:cherry_log", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_cherry_log", { pillar_axis: "z" }));
            block.dimension.playSound("step.cherry_wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:cherry_wood", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_cherry_wood", { pillar_axis: "y" }));
            block.dimension.playSound("step.cherry_wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:cherry_wood", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_cherry_wood", { pillar_axis: "x" }));
            block.dimension.playSound("step.cherry_wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:cherry_wood", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_cherry_wood", { pillar_axis: "z" }));
            block.dimension.playSound("step.cherry_wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:crimson_stem", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_crimson_stem", { pillar_axis: "y" }));
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:crimson_stem", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_crimson_stem", { pillar_axis: "x" }));
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:crimson_stem", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_crimson_stem", { pillar_axis: "z" }));
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:crimson_hyphae", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_crimson_hyphae", { pillar_axis: "y" }));
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:crimson_hyphae", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_crimson_hyphae", { pillar_axis: "x" }));
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:crimson_hyphae", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_crimson_hyphae", { pillar_axis: "z" }));
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:warped_stem", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_warped_stem", { pillar_axis: "y" }));
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:warped_stem", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_warped_stem", { pillar_axis: "x" }));
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:warped_stem", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_warped_stem", { pillar_axis: "z" }));
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:warped_hyphae", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_warped_hyphae", { pillar_axis: "y" }));
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:warped_hyphae", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_warped_hyphae", { pillar_axis: "x" }));
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:warped_hyphae", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_warped_hyphae", { pillar_axis: "z" }));
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:bamboo_block", { pillar_axis: "y" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_bamboo_block", { pillar_axis: "y" }));
            block.dimension.playSound("step.bamboo_wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:bamboo_block", { pillar_axis: "x" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_bamboo_block", { pillar_axis: "x" }));
            block.dimension.playSound("step.bamboo_wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:bamboo_block", { pillar_axis: "z" })) {
          system.run(() => {
            damageDurability ();
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_bamboo_block", { pillar_axis: "z" }));
            block.dimension.playSound("step.bamboo_wood", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
      }
      if (validCopper.includes(block.typeId)) {
        const pitchRange = Math.random() * (1.2 - 0.8) + 0.8;
        if (block.permutation.matches("minecraft:exposed_chiseled_copper")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:chiseled_copper"));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_block"));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_bulb", { lit: false, powered_bit: false })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_bulb", { lit: false, powered_bit: false }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_bulb", { lit: false, powered_bit: true })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_bulb", { lit: false, powered_bit: true }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_bulb", { lit: true, powered_bit: false })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_bulb", { lit: true, powered_bit: false }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_bulb", { lit: true, powered_bit: true })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_bulb", { lit: true, powered_bit: true }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_grate")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_grate"));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_cut_copper")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper"));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 0 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 1 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 2 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 3 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 0 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 1 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 2 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 3 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_cut_copper_slab", { "minecraft:vertical_half": "bottom" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_slab", { "minecraft:vertical_half": "bottom" }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_cut_copper_slab", { "minecraft:vertical_half": "top" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_slab", { "minecraft:vertical_half": "top" }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:exposed_double_cut_copper_slab")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:double_cut_copper_slab"));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_chiseled_copper")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_chiseled_copper"));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper"));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_bulb", { lit: false, powered_bit: false })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_bulb", { lit: false, powered_bit: false }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_bulb", { lit: false, powered_bit: true })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_bulb", { lit: false, powered_bit: true }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_bulb", { lit: true, powered_bit: false })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_bulb", { lit: true, powered_bit: false }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_bulb", { lit: true, powered_bit: true })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_bulb", { lit: true, powered_bit: true }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_grate")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_grate"));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_cut_copper")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper"));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 0 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 1 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 2 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 3 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 0 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 1 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 2 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 3 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_cut_copper_slab", { "minecraft:vertical_half": "bottom" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_slab", { "minecraft:vertical_half": "bottom" }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_cut_copper_slab", { "minecraft:vertical_half": "top" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_slab", { "minecraft:vertical_half": "top" }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:weathered_double_cut_copper_slab")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_double_cut_copper_slab"));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_chiseled_copper")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_chiseled_copper"));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper"));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_bulb", { lit: false, powered_bit: false })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_bulb", { lit: false, powered_bit: false }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_bulb", { lit: false, powered_bit: true })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_bulb", { lit: false, powered_bit: true }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_bulb", { lit: true, powered_bit: false })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_bulb", { lit: true, powered_bit: false }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_bulb", { lit: true, powered_bit: true })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_bulb", { lit: true, powered_bit: true }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_grate")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_grate"));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_cut_copper")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper"));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 0 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 1 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 2 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 3 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 0 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 0 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 1 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 1 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 2 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 2 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 3 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 3 }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_cut_copper_slab", { "minecraft:vertical_half": "bottom" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_slab", { "minecraft:vertical_half": "bottom" }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_cut_copper_slab", { "minecraft:vertical_half": "top" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_slab", { "minecraft:vertical_half": "top" }));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:oxidized_double_cut_copper_slab")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_double_cut_copper_slab"));
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
      }
      if (validWaxedCopper.includes(block.typeId)) {
        const pitchRange = Math.random() * (1.2 - 0.8) + 0.8;
        if (block.permutation.matches("minecraft:waxed_chiseled_copper")) {
          system.run(() => {            
            block.setPermutation(BlockPermutation.resolve("minecraft:chiseled_copper"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_block"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_bulb", { lit: false, powered_bit: false })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_bulb", { lit: false, powered_bit: false }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_bulb", { lit: false, powered_bit: true })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_bulb", { lit: false, powered_bit: true }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_bulb", { lit: true, powered_bit: false })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_bulb", { lit: true, powered_bit: false }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_bulb", { lit: true, powered_bit: true })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_bulb", { lit: true, powered_bit: true }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_grate")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_grate"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 1 }));
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_cut_copper")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 0 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 1 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 2 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 3 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 0 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 1 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 2 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 3 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_cut_copper_slab", { "minecraft:vertical_half": "bottom" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_slab", { "minecraft:vertical_half": "bottom" }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_cut_copper_slab", { "minecraft:vertical_half": "top" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:cut_copper_slab", { "minecraft:vertical_half": "top" }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_double_cut_copper_slab")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:double_cut_copper_slab"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_chiseled_copper")) {
          system.run(() => {            
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_chiseled_copper"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_bulb", { lit: false, powered_bit: false })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_bulb", { lit: false, powered_bit: false }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_bulb", { lit: false, powered_bit: true })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_bulb", { lit: false, powered_bit: true }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_bulb", { lit: true, powered_bit: false })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_bulb", { lit: true, powered_bit: false }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_bulb", { lit: true, powered_bit: true })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_bulb", { lit: true, powered_bit: true }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_grate")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_grate"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_cut_copper")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 0 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 1 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 2 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 3 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 0 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 1 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 2 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 3 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_cut_copper_slab", { "minecraft:vertical_half": "bottom" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_slab", { "minecraft:vertical_half": "bottom" }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_cut_copper_slab", { "minecraft:vertical_half": "top" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_cut_copper_slab", { "minecraft:vertical_half": "top" }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_exposed_double_cut_copper_slab")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:exposed_double_cut_copper_slab"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_chiseled_copper")) {
          system.run(() => {            
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_chiseled_copper"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_bulb", { lit: false, powered_bit: false })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_bulb", { lit: false, powered_bit: false }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_bulb", { lit: false, powered_bit: true })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_bulb", { lit: false, powered_bit: true }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_bulb", { lit: true, powered_bit: false })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_bulb", { lit: true, powered_bit: false }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_bulb", { lit: true, powered_bit: true })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_bulb", { lit: true, powered_bit: true }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_grate")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_grate"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_cut_copper")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 0 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 1 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 2 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 3 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 0 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 1 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 2 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 3 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_cut_copper_slab", { "minecraft:vertical_half": "bottom" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_slab", { "minecraft:vertical_half": "bottom" }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_cut_copper_slab", { "minecraft:vertical_half": "top" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_cut_copper_slab", { "minecraft:vertical_half": "top" }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_weathered_double_cut_copper_slab")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:weathered_double_cut_copper_slab"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_chiseled_copper")) {
          system.run(() => {            
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_chiseled_copper"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_bulb", { lit: false, powered_bit: false })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_bulb", { lit: false, powered_bit: false }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_bulb", { lit: false, powered_bit: true })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_bulb", { lit: false, powered_bit: true }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_bulb", { lit: true, powered_bit: false })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_bulb", { lit: true, powered_bit: false }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_bulb", { lit: true, powered_bit: true })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_bulb", { lit: true, powered_bit: true }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }));
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockAbove = block.above();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }));
            blockAbove.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: false, direction: 3 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 0 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 1 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 2 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: false, door_hinge_bit: true, direction: 3 }));
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: false, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: false, direction: 3 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 0 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 1 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 2 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }) && player.isSneaking) {
          const blockBelow = block.below();
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: true, open_bit: true, door_hinge_bit: true, direction: 3 }));
            blockBelow.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_door", { upper_block_bit: false, open_bit: true, door_hinge_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_grate")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_grate"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_trapdoor", { open_bit: false, upside_down_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: false, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 0 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 1 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 2 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 3 }) && player.isSneaking) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_copper_trapdoor", { open_bit: true, upside_down_bit: true, direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_cut_copper")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_cut_copper"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 0 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 1 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 2 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 3 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_cut_copper_stairs", { upside_down_bit: false, weirdo_direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 0 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 0 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 1 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 1 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 2 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 2 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 3 })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_cut_copper_stairs", { upside_down_bit: true, weirdo_direction: 3 }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_cut_copper_slab", { "minecraft:vertical_half": "bottom" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_cut_copper_slab", { "minecraft:vertical_half": "bottom" }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_cut_copper_slab", { "minecraft:vertical_half": "top" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_cut_copper_slab", { "minecraft:vertical_half": "top" }));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
        if (block.permutation.matches("minecraft:waxed_oxidized_double_cut_copper_slab")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:oxidized_double_cut_copper_slab"));
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", { x: blockLocation.x, y: blockLocation.y, z: blockLocation.z });
          });
        }
      }
    }
    if (customHoes.includes(itemUsed.typeId)) {
      const validFarmSoil = [
        "minecraft:coarse_dirt",
        "minecraft:dirt",
        "minecraft:dirt_with_roots",
        "minecraft:grass_block",
        "minecraft:grass_path"
      ];
      if (validFarmSoil.includes(block.typeId)) {
        const blockAbove = block.dimension.getBlock(blockLocation).above(1);
        if (!blockAbove.isAir) return;
        if (block.permutation.matches("minecraft:dirt", { dirt_type: "normal" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:farmland"));
            damageDurability ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:dirt", { dirt_type: "coarse" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:dirt", { dirt_type: "normal" }));
            damageDurability ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:dirt_with_roots")) {
          system.run(() => {
            const spawnHangingRoots = new ItemStack("minecraft:hanging_roots", 1);
            block.setPermutation(BlockPermutation.resolve("minecraft:dirt", { dirt_type: "normal" }));
            damageDurability ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: 0.8, volume: 1.0 });;
            block.dimension.spawnItem(spawnHangingRoots, {
              x: blockLocation.x + 0.5,
              y: blockLocation.y + 0.5,
              z: blockLocation.z + 0.5
            })
          });
        }
        if (block.permutation.matches("minecraft:grass_block")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:farmland"));
            damageDurability ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:grass_path")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:farmland"));
            damageDurability ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
      }
    }
    if (customShovels.includes(itemUsed.typeId)) {
      const validCampfire = [
        "minecraft:campfire",
        "minecraft:soul_campfire"
      ];
      const validPathSoil = [
        "minecraft:coarse_dirt",
        "minecraft:dirt",
        "minecraft:dirt_with_roots",
        "minecraft:grass_block",
        "minecraft:mycelium",
        "minecraft:podzol"
      ];
      if (validCampfire.includes(block.typeId)) {
        const pitchRange = Math.random() * (2.4 - 1.8) + 1.8;
        if (block.permutation.matches("minecraft:campfire", { extinguished: false, "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:campfire", { extinguished: true, "minecraft:cardinal_direction": "north" }));
            damageDurability ();
            block.dimension.playSound("random.fizz", blockLocation, { pitch: pitchRange, volume: 0.5 });
          });
        }
        if (block.permutation.matches("minecraft:campfire", { extinguished: false, "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:campfire", { extinguished: true, "minecraft:cardinal_direction": "west" }));
            damageDurability ();
            block.dimension.playSound("random.fizz", blockLocation, { pitch: pitchRange, volume: 0.5 });
          });
        }
        if (block.permutation.matches("minecraft:campfire", { extinguished: false, "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:campfire", { extinguished: true, "minecraft:cardinal_direction": "south" }));
            damageDurability ();
            block.dimension.playSound("random.fizz", blockLocation, { pitch: pitchRange, volume: 0.5 });
          });
        }
        if (block.permutation.matches("minecraft:campfire", { extinguished: false, "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:campfire", { extinguished: true, "minecraft:cardinal_direction": "east" }));
            damageDurability ();
            block.dimension.playSound("random.fizz", blockLocation, { pitch: pitchRange, volume: 0.5 });
          });
        }
        if (block.permutation.matches("minecraft:soul_campfire", { extinguished: false, "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:soul_campfire", { extinguished: true, "minecraft:cardinal_direction": "north" }));
            damageDurability ();
            block.dimension.playSound("random.fizz", blockLocation, { pitch: pitchRange, volume: 0.5 });
          });
        }
        if (block.permutation.matches("minecraft:soul_campfire", { extinguished: false, "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:soul_campfire", { extinguished: true, "minecraft:cardinal_direction": "west" }));
            damageDurability ();
            block.dimension.playSound("random.fizz", blockLocation, { pitch: pitchRange, volume: 0.5 });
          });
        }
        if (block.permutation.matches("minecraft:soul_campfire", { extinguished: false, "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:soul_campfire", { extinguished: true, "minecraft:cardinal_direction": "south" }));
            damageDurability ();
            block.dimension.playSound("random.fizz", blockLocation, { pitch: pitchRange, volume: 0.5 });
          });
        }
        if (block.permutation.matches("minecraft:soul_campfire", { extinguished: false, "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:soul_campfire", { extinguished: true, "minecraft:cardinal_direction": "east" }));
            damageDurability ();
            block.dimension.playSound("random.fizz", blockLocation, { pitch: pitchRange, volume: 0.5 });
          });
        }
      }
      if (validPathSoil.includes(block.typeId)) {
        const blockAbove = block.dimension.getBlock(blockLocation).above(1);
        if (!blockAbove.isAir) return;
        if (block.permutation.matches("minecraft:dirt", { dirt_type: "normal" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:grass_path"));
            damageDurability ();
            block.dimension.playSound("use.grass", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:dirt", { dirt_type: "coarse" })) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:grass_path"));
            damageDurability ();
            block.dimension.playSound("use.grass", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:dirt_with_roots")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:grass_path"));
            damageDurability ();
            block.dimension.playSound("use.grass", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:grass_block")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:grass_path"));
            damageDurability ();
            block.dimension.playSound("use.grass", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:mycelium")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:grass_path"));
            damageDurability ();
            block.dimension.playSound("use.grass", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
        if (block.permutation.matches("minecraft:podzol")) {
          system.run(() => {
            block.setPermutation(BlockPermutation.resolve("minecraft:grass_path"));
            damageDurability ();
            block.dimension.playSound("use.grass", blockLocation, { pitch: 0.8, volume: 1.0 });
          });
        }
      }
      if (block.typeId === "minecraft:snow_layer") {
        const pitchRange = Math.random() * (1.0 - 0.8) + 0.8;
        if (block.permutation.matches("minecraft:snow_layer", { height: 0 })) {
          system.run(() => {
            const spawnSnowball = new ItemStack("minecraft:snowball", 1);
            block.setPermutation(BlockPermutation.resolve("minecraft:air"));
            damageDurability ();
            block.dimension.playSound("dig.snow", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnItem(spawnSnowball, {
              x: blockLocation.x + 0.5,
              y: blockLocation.y + 0.5,
              z: blockLocation.z + 0.5
            })
          });
        }
        if (block.permutation.matches("minecraft:snow_layer", { height: 1 })) {
          system.run(() => {
            const spawnSnowball = new ItemStack("minecraft:snowball", 1);
            block.setPermutation(BlockPermutation.resolve("minecraft:air"));
            damageDurability ();
            block.dimension.playSound("dig.snow", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnItem(spawnSnowball, {
              x: blockLocation.x + 0.5,
              y: blockLocation.y + 0.5,
              z: blockLocation.z + 0.5
            })
          });
        }
        if (block.permutation.matches("minecraft:snow_layer", { height: 2 })) {
          system.run(() => {
            const spawnSnowball = new ItemStack("minecraft:snowball", 1);
            block.setPermutation(BlockPermutation.resolve("minecraft:air"));
            damageDurability ();
            block.dimension.playSound("dig.snow", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnItem(spawnSnowball, {
              x: blockLocation.x + 0.5,
              y: blockLocation.y + 0.5,
              z: blockLocation.z + 0.5
            })
          });
        }
        if (block.permutation.matches("minecraft:snow_layer", { height: 3 })) {
          system.run(() => {
            const spawnSnowball = new ItemStack("minecraft:snowball", 2);
            block.setPermutation(BlockPermutation.resolve("minecraft:air"));
            damageDurability ();
            block.dimension.playSound("dig.snow", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnItem(spawnSnowball, {
              x: blockLocation.x + 0.5,
              y: blockLocation.y + 0.5,
              z: blockLocation.z + 0.5
            })
          });
        }
        if (block.permutation.matches("minecraft:snow_layer", { height: 4 })) {
          system.run(() => {
            const spawnSnowball = new ItemStack("minecraft:snowball", 2);
            block.setPermutation(BlockPermutation.resolve("minecraft:air"));
            damageDurability ();
            block.dimension.playSound("dig.snow", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnItem(spawnSnowball, {
              x: blockLocation.x + 0.5,
              y: blockLocation.y + 0.5,
              z: blockLocation.z + 0.5
            })
          });
        }
        if (block.permutation.matches("minecraft:snow_layer", { height: 5 })) {
          system.run(() => {
            const spawnSnowball = new ItemStack("minecraft:snowball", 3);
            block.setPermutation(BlockPermutation.resolve("minecraft:air"));
            damageDurability ();
            block.dimension.playSound("dig.snow", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnItem(spawnSnowball, {
              x: blockLocation.x + 0.5,
              y: blockLocation.y + 0.5,
              z: blockLocation.z + 0.5
            })
          });
        }
        if (block.permutation.matches("minecraft:snow_layer", { height: 6 })) {
          system.run(() => {
            const spawnSnowball = new ItemStack("minecraft:snowball", 3);
            block.setPermutation(BlockPermutation.resolve("minecraft:air"));
            damageDurability ();
            block.dimension.playSound("dig.snow", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnItem(spawnSnowball, {
              x: blockLocation.x + 0.5,
              y: blockLocation.y + 0.5,
              z: blockLocation.z + 0.5
            })
          });
        }
        if (block.permutation.matches("minecraft:snow_layer", { height: 7 })) {
          system.run(() => {
            const spawnSnowball = new ItemStack("minecraft:snowball", 8);
            block.setPermutation(BlockPermutation.resolve("minecraft:air"));
            damageDurability ();
            block.dimension.playSound("dig.snow", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnItem(spawnSnowball, {
              x: blockLocation.x + 0.5,
              y: blockLocation.y + 0.5,
              z: blockLocation.z + 0.5
            })
          });
        }
      }
    }
  }
  else return;
});
world.beforeEvents.itemUseOn.subscribe(eventData => {
  const player = eventData.source;
  const itemUsed = eventData.itemStack;
  const block = eventData.block;
  const blockFacing = eventData.blockFace;
  const blockLocation = block.location;
  const playerEquippable = player.getComponent("equippable");
  const customSlab = [
    "nicothekid:limestone_bricks_slab",
    "nicothekid:limestone_slab",
    "nicothekid:marble_bricks_slab",
    "nicothekid:marble_slab",
    "nicothekid:mosshroom_slab",
    "nicothekid:polished_limestone_slab",
    "nicothekid:polished_marble_slab",
    "nicothekid:rose_quartz_slab",
    "nicothekid:smooth_rose_quartz_slab"
  ]
  const interactableBlocks = [
    "minecraft:acacia_button",
    "minecraft:acacia_door",
    "minecraft:acacia_fence_gate",
    "minecraft:acacia_hanging_sign",
    "minecraft:acacia_standing_sign",
    "minecraft:acacia_trapdoor",
    "minecraft:acacia_wall_sign",
    "minecraft:anvil",
    "minecraft:armor_stand",
    "minecraft:bamboo_button",
    "minecraft:bamboo_door",
    "minecraft:bamboo_fence_gate",
    "minecraft:bamboo_hanging_sign",
    "minecraft:bamboo_standing_sign",
    "minecraft:bamboo_trapdoor",
    "minecraft:bamboo_wall_sign",
    "minecraft:barrel",
    "minecraft:beacon",
    "minecraft:bed",
    "minecraft:bell",
    "minecraft:birch_button",
    "minecraft:birch_door",
    "minecraft:birch_fence_gate",
    "minecraft:birch_hanging_sign",
    "minecraft:birch_standing_sign",
    "minecraft:birch_trapdoor",
    "minecraft:birch_wall_sign",
    "minecraft:black_candle_cake",
    "minecraft:black_shulker_box",
    "minecraft:blast_furnace",
    "minecraft:blue_candle_cake",
    "minecraft:blue_shulker_box",
    "minecraft:brewing_stand",
    "minecraft:brown_candle_cake",
    "minecraft:brown_shulker_box",
    "minecraft:cake",
    "minecraft:candle_cake",
    "minecraft:cartography_table",
    "minecraft:cherry_button",
    "minecraft:cherry_door",
    "minecraft:cherry_fence_gate",
    "minecraft:cherry_hanging_sign",
    "minecraft:cherry_standing_sign",
    "minecraft:cherry_trapdoor",
    "minecraft:cherry_wall_sign",
    "minecraft:chest",
    "minecraft:chiseled_bookshelf",
    "minecraft:copper_door",
    "minecraft:copper_trapdoor",
    "minecraft:crafting_table",
    "minecraft:crimson_button",
    "minecraft:crimson_door",
    "minecraft:crimson_fence_gate",
    "minecraft:crimson_hanging_sign",
    "minecraft:crimson_standing_sign",
    "minecraft:crimson_trapdoor",
    "minecraft:crimson_wall_sign",
    "minecraft:cyan_candle_cake",
    "minecraft:cyan_shulker_box",
    "minecraft:dark_oak_button",
    "minecraft:dark_oak_door",
    "minecraft:dark_oak_fence_gate",
    "minecraft:dark_oak_hanging_sign",
    "minecraft:dark_oak_trapdoor",
    "minecraft:darkoak_standing_sign",
    "minecraft:darkoak_wall_sign",
    "minecraft:decorated_pot",
    "minecraft:dispenser",
    "minecraft:dropper",
    "minecraft:enchanting_table",
    "minecraft:ender_chest",
    "minecraft:exposed_copper_door",
    "minecraft:exposed_copper_trapdoor",
    "minecraft:fence_gate",
    "minecraft:furnace",
    "minecraft:glow_frame",
    "minecraft:gray_candle_cake",
    "minecraft:gray_shulker_box",
    "minecraft:green_candle_cake",
    "minecraft:green_shulker_box",
    "minecraft:grindstone",
    "minecraft:hopper",
    "minecraft:iron_door",
    "minecraft:iron_trapdoor",
    "minecraft:item_frame",
    "minecraft:jungle_button",
    "minecraft:jungle_door",
    "minecraft:jungle_fence_gate",
    "minecraft:jungle_hanging_sign",
    "minecraft:jungle_standing_sign",
    "minecraft:jungle_trapdoor",
    "minecraft:jungle_wall_sign",
    "minecraft:lever",
    "minecraft:light_blue_candle_cake",
    "minecraft:light_blue_shulker_box",
    "minecraft:light_gray_candle_cake",
    "minecraft:light_gray_shulker_box",
    "minecraft:lime_candle_cake",
    "minecraft:lime_shulker_box",
    "minecraft:lit_blast_furnace",
    "minecraft:lit_furnace",
    "minecraft:lit_smoker",
    "minecraft:loom",
    "minecraft:magenta_candle_cake",
    "minecraft:magenta_shulker_box",
    "minecraft:mangrove_button",
    "minecraft:mangrove_door",
    "minecraft:mangrove_fence_gate",
    "minecraft:mangrove_hanging_sign",
    "minecraft:mangrove_standing_sign",
    "minecraft:mangrove_trapdoor",
    "minecraft:mangrove_wall_sign",
    "minecraft:oak_hanging_sign",
    "minecraft:orange_candle_cake",
    "minecraft:orange_shulker_box",
    "minecraft:oxidized_copper_door",
    "minecraft:oxidized_copper_trapdoor",
    "minecraft:pink_candle_cake",
    "minecraft:pink_shulker_box",
    "minecraft:polished_blackstone_button",
    "minecraft:purple_candle_cake",
    "minecraft:purple_shulker_box",
    "minecraft:red_candle_cake",
    "minecraft:red_shulker_box",
    "minecraft:repeater",
    "minecraft:smithing_table",
    "minecraft:smoker",
    "minecraft:spruce_button",
    "minecraft:spruce_door",
    "minecraft:spruce_fence_gate",
    "minecraft:spruce_hanging_sign",
    "minecraft:spruce_standing_sign",
    "minecraft:spruce_trapdoor",
    "minecraft:spruce_wall_sign",
    "minecraft:standing_sign",
    "minecraft:stone_button",
    "minecraft:stonecutter_block",
    "minecraft:trapdoor",
    "minecraft:trapped_chest",
    "minecraft:undyed_shulker_box",
    "minecraft:wall_sign",
    "minecraft:warped_button",
    "minecraft:warped_door",
    "minecraft:warped_fence_gate",
    "minecraft:warped_hanging_sign",
    "minecraft:warped_standing_sign",
    "minecraft:warped_trapdoor",
    "minecraft:warped_wall_sign",
    "minecraft:waxed_copper_door",
    "minecraft:waxed_copper_trapdoor",
    "minecraft:waxed_exposed_copper_door",
    "minecraft:waxed_exposed_copper_trapdoor",
    "minecraft:waxed_oxidized_copper_door",
    "minecraft:waxed_oxidized_copper_trapdoor",
    "minecraft:waxed_weathered_copper_door",
    "minecraft:waxed_weathered_copper_trapdoor",
    "minecraft:weathered_copper_door",
    "minecraft:weathered_copper_trapdoor",
    "minecraft:white_candle_cake",
    "minecraft:white_shulker_box",
    "minecraft:wooden_button",
    "minecraft:wooden_door",
    "minecraft:yellow_candle_cake",
    "minecraft:yellow_shulker_box"
  ]
  function decreaseItem () {
    if (!player.matches({ gameMode: GameMode.creative })) {
      const decrementItem = itemUsed.amount == 1 ? undefined : (itemUsed.amount--, itemUsed);
      playerEquippable.setEquipment("Mainhand", decrementItem)
    }
  }
  if (itemUsed === undefined || !playerEquippable) return;
  if (interactableBlocks.includes(block.typeId) && !player.isSneaking || block.hasTag("interactable_block") && !player.isSneaking) return;
  if (customSlab.includes(itemUsed.typeId)) {
    const blockAbove = block.above(1);
    const blockBelow = block.below(1);
    const blockSouth = block.south(1);
    const blockEast = block.east(1);
    const blockNorth = block.north(1);
    const blockWest = block.west(1);
    if (blockFacing === "Up" && customSlab.includes(blockAbove.typeId)) {
      if (blockAbove.typeId === "nicothekid:limestone_bricks_slab") {
        if (itemUsed.typeId === "nicothekid:limestone_bricks_slab") {
          if (block.typeId === "nicothekid:limestone_bricks_slab") return;
          system.run(() => {
            blockAbove.setPermutation(BlockPermutation.resolve("nicothekid:limestone_bricks_double_slab"));
            blockAbove.dimension.playSound("use.stone", blockAbove.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockAbove.typeId === "nicothekid:limestone_slab") {
        if (itemUsed.typeId === "nicothekid:limestone_slab") {
          if (block.typeId === "nicothekid:limestone_slab") return;
          system.run(() => {
            blockAbove.setPermutation(BlockPermutation.resolve("nicothekid:limestone_double_slab"));
            blockAbove.dimension.playSound("use.stone", blockAbove.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockAbove.typeId === "nicothekid:marble_bricks_slab") {
        if (itemUsed.typeId === "nicothekid:marble_bricks_slab") {
          if (block.typeId === "nicothekid:marble_bricks_slab") return;
          system.run(() => {
            blockAbove.setPermutation(BlockPermutation.resolve("nicothekid:marble_bricks_double_slab"));
            blockAbove.dimension.playSound("place.calcite", blockAbove.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockAbove.typeId === "nicothekid:marble_slab") {
        if (itemUsed.typeId === "nicothekid:marble_slab") {
          if (block.typeId === "nicothekid:marble_slab") return;
          system.run(() => {
            blockAbove.setPermutation(BlockPermutation.resolve("nicothekid:marble_double_slab"));
            blockAbove.dimension.playSound("place.calcite", blockAbove.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockAbove.typeId === "nicothekid:mosshroom_slab") {
        if (itemUsed.typeId === "nicothekid:mosshroom_slab") {
          if (block.typeId === "nicothekid:mosshroom_slab") return;
          system.run(() => {
            blockAbove.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_double_slab"));
            blockAbove.dimension.playSound("step.nether_wood", blockAbove.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockAbove.typeId === "nicothekid:polished_limestone_slab") {
        if (itemUsed.typeId === "nicothekid:polished_limestone_slab") {
          if (block.typeId === "nicothekid:polished_limestone_slab") return;
          system.run(() => {
            blockAbove.setPermutation(BlockPermutation.resolve("nicothekid:polished_limestone_double_slab"));
            blockAbove.dimension.playSound("use.stone", blockAbove.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockAbove.typeId === "nicothekid:polished_marble_slab") {
        if (itemUsed.typeId === "nicothekid:polished_marble_slab") {
          if (block.typeId === "nicothekid:polished_marble_slab") return;
          system.run(() => {
            blockAbove.setPermutation(BlockPermutation.resolve("nicothekid:polished_marble_double_slab"));
            blockAbove.dimension.playSound("place.calcite", blockAbove.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockAbove.typeId === "nicothekid:rose_quartz_slab") {
        if (itemUsed.typeId === "nicothekid:rose_quartz_slab") {
          if (block.typeId === "nicothekid:rose_quartz_slab") return;
          system.run(() => {
            blockAbove.setPermutation(BlockPermutation.resolve("nicothekid:rose_quartz_double_slab"));
            blockAbove.dimension.playSound("use.stone", blockAbove.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockAbove.typeId === "nicothekid:smooth_rose_quartz_slab") {
        if (itemUsed.typeId === "nicothekid:smooth_rose_quartz_slab") {
          if (block.typeId === "nicothekid:smooth_rose_quartz_slab") return;
          system.run(() => {
            blockAbove.setPermutation(BlockPermutation.resolve("nicothekid:smooth_rose_quartz_double_slab"));
            blockAbove.dimension.playSound("use.stone", blockAbove.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
    }
    if (blockFacing === "Down" && customSlab.includes(blockBelow.typeId)) {
      if (blockBelow.typeId === "nicothekid:limestone_bricks_slab") {
        if (itemUsed.typeId === "nicothekid:limestone_bricks_slab") {
          if (block.typeId === "nicothekid:limestone_bricks_slab") return;
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("nicothekid:limestone_bricks_double_slab"));
            blockBelow.dimension.playSound("use.stone", blockBelow.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockBelow.typeId === "nicothekid:limestone_slab") {
        if (itemUsed.typeId === "nicothekid:limestone_slab") {
          if (block.typeId === "nicothekid:limestone_slab") return;
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("nicothekid:limestone_double_slab"));
            blockBelow.dimension.playSound("use.stone", blockBelow.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockBelow.typeId === "nicothekid:marble_bricks_slab") {
        if (itemUsed.typeId === "nicothekid:marble_bricks_slab") {
          if (block.typeId === "nicothekid:marble_bricks_slab") return;
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("nicothekid:marble_bricks_double_slab"));
            blockBelow.dimension.playSound("place.calcite", blockBelow.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockBelow.typeId === "nicothekid:marble_slab") {
        if (itemUsed.typeId === "nicothekid:marble_slab") {
          if (block.typeId === "nicothekid:marble_slab") return;
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("nicothekid:marble_double_slab"));
            blockBelow.dimension.playSound("place.calcite", blockBelow.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockBelow.typeId === "nicothekid:mosshroom_slab") {
        if (itemUsed.typeId === "nicothekid:mosshroom_slab") {
          if (block.typeId === "nicothekid:mosshroom_slab") return;
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_double_slab"));
            blockBelow.dimension.playSound("step.nether_wood", blockBelow.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockBelow.typeId === "nicothekid:polished_limestone_slab") {
        if (itemUsed.typeId === "nicothekid:polished_limestone_slab") {
          if (block.typeId === "nicothekid:polished_limestone_slab") return;
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("nicothekid:polished_limestone_double_slab"));
            blockBelow.dimension.playSound("use.stone", blockBelow.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockBelow.typeId === "nicothekid:polished_marble_slab") {
        if (itemUsed.typeId === "nicothekid:polished_marble_slab") {
          if (block.typeId === "nicothekid:polished_marble_slab") return;
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("nicothekid:polished_marble_double_slab"));
            blockBelow.dimension.playSound("place.calcite", blockBelow.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockBelow.typeId === "nicothekid:rose_quartz_slab") {
        if (itemUsed.typeId === "nicothekid:rose_quartz_slab") {
          if (block.typeId === "nicothekid:rose_quartz_slab") return;
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("nicothekid:rose_quartz_double_slab"));
            blockBelow.dimension.playSound("use.stone", blockBelow.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockBelow.typeId === "nicothekid:smooth_rose_quartz_slab") {
        if (itemUsed.typeId === "nicothekid:smooth_rose_quartz_slab") {
          if (block.typeId === "nicothekid:smooth_rose_quartz_slab") return;
          system.run(() => {
            blockBelow.setPermutation(BlockPermutation.resolve("nicothekid:smooth_rose_quartz_double_slab"));
            blockBelow.dimension.playSound("use.stone", blockBelow.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
    }
    if (blockFacing === "South" && customSlab.includes(blockSouth.typeId)) {
      if (blockSouth.typeId === "nicothekid:limestone_bricks_slab") {
        if (itemUsed.typeId === "nicothekid:limestone_bricks_slab") {
          system.run(() => {
            blockSouth.setPermutation(BlockPermutation.resolve("nicothekid:limestone_bricks_double_slab"));
            blockSouth.dimension.playSound("use.stone", blockSouth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockSouth.typeId === "nicothekid:limestone_slab") {
        if (itemUsed.typeId === "nicothekid:limestone_slab") {
          system.run(() => {
            blockSouth.setPermutation(BlockPermutation.resolve("nicothekid:limestone_double_slab"));
            blockSouth.dimension.playSound("use.stone", blockSouth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockSouth.typeId === "nicothekid:marble_bricks_slab") {
        if (itemUsed.typeId === "nicothekid:marble_bricks_slab") {
          system.run(() => {
            blockSouth.setPermutation(BlockPermutation.resolve("nicothekid:marble_bricks_double_slab"));
            blockSouth.dimension.playSound("place.calcite", blockSouth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockSouth.typeId === "nicothekid:marble_slab") {
        if (itemUsed.typeId === "nicothekid:marble_slab") {
          system.run(() => {
            blockSouth.setPermutation(BlockPermutation.resolve("nicothekid:marble_double_slab"));
            blockSouth.dimension.playSound("place.calcite", blockSouth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockSouth.typeId === "nicothekid:mosshroom_slab") {
        if (itemUsed.typeId === "nicothekid:mosshroom_slab") {
          system.run(() => {
            blockSouth.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_double_slab"));
            blockSouth.dimension.playSound("step.nether_wood", blockSouth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockSouth.typeId === "nicothekid:polished_limestone_slab") {
        if (itemUsed.typeId === "nicothekid:polished_limestone_slab") {
          system.run(() => {
            blockSouth.setPermutation(BlockPermutation.resolve("nicothekid:polished_limestone_double_slab"));
            blockSouth.dimension.playSound("use.stone", blockSouth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockSouth.typeId === "nicothekid:polished_marble_slab") {
        if (itemUsed.typeId === "nicothekid:polished_marble_slab") {
          system.run(() => {
            blockSouth.setPermutation(BlockPermutation.resolve("nicothekid:polished_marble_double_slab"));
            blockSouth.dimension.playSound("place.calcite", blockSouth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockSouth.typeId === "nicothekid:rose_quartz_slab") {
        if (itemUsed.typeId === "nicothekid:rose_quartz_slab") {
          system.run(() => {
            blockSouth.setPermutation(BlockPermutation.resolve("nicothekid:rose_quartz_double_slab"));
            blockSouth.dimension.playSound("use.stone", blockSouth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockSouth.typeId === "nicothekid:smooth_rose_quartz_slab") {
        if (itemUsed.typeId === "nicothekid:smooth_rose_quartz_slab") {
          system.run(() => {
            blockSouth.setPermutation(BlockPermutation.resolve("nicothekid:smooth_rose_quartz_double_slab"));
            blockSouth.dimension.playSound("use.stone", blockSouth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
    }
    if (blockFacing === "East" && customSlab.includes(blockEast.typeId)) {
      if (blockEast.typeId === "nicothekid:limestone_bricks_slab") {
        if (itemUsed.typeId === "nicothekid:limestone_bricks_slab") {
          system.run(() => {
            blockEast.setPermutation(BlockPermutation.resolve("nicothekid:limestone_bricks_double_slab"));
            blockEast.dimension.playSound("use.stone", blockEast.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockEast.typeId === "nicothekid:limestone_slab") {
        if (itemUsed.typeId === "nicothekid:limestone_slab") {
          system.run(() => {
            blockEast.setPermutation(BlockPermutation.resolve("nicothekid:limestone_double_slab"));
            blockEast.dimension.playSound("use.stone", blockEast.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockEast.typeId === "nicothekid:marble_bricks_slab") {
        if (itemUsed.typeId === "nicothekid:marble_bricks_slab") {
          system.run(() => {
            blockEast.setPermutation(BlockPermutation.resolve("nicothekid:marble_bricks_double_slab"));
            blockEast.dimension.playSound("place.calcite", blockEast.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockEast.typeId === "nicothekid:marble_slab") {
        if (itemUsed.typeId === "nicothekid:marble_slab") {
          system.run(() => {
            blockEast.setPermutation(BlockPermutation.resolve("nicothekid:marble_double_slab"));
            blockEast.dimension.playSound("place.calcite", blockEast.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockEast.typeId === "nicothekid:mosshroom_slab") {
        if (itemUsed.typeId === "nicothekid:mosshroom_slab") {
          system.run(() => {
            blockEast.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_double_slab"));
            blockEast.dimension.playSound("step.nether_wood", blockEast.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockEast.typeId === "nicothekid:polished_limestone_slab") {
        if (itemUsed.typeId === "nicothekid:polished_limestone_slab") {
          system.run(() => {
            blockEast.setPermutation(BlockPermutation.resolve("nicothekid:polished_limestone_double_slab"));
            blockEast.dimension.playSound("use.stone", blockEast.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockEast.typeId === "nicothekid:polished_marble_slab") {
        if (itemUsed.typeId === "nicothekid:polished_marble_slab") {
          system.run(() => {
            blockEast.setPermutation(BlockPermutation.resolve("nicothekid:polished_marble_double_slab"));
            blockEast.dimension.playSound("place.calcite", blockEast.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockEast.typeId === "nicothekid:rose_quartz_slab") {
        if (itemUsed.typeId === "nicothekid:rose_quartz_slab") {
          system.run(() => {
            blockEast.setPermutation(BlockPermutation.resolve("nicothekid:rose_quartz_double_slab"));
            blockEast.dimension.playSound("use.stone", blockEast.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockEast.typeId === "nicothekid:smooth_rose_quartz_slab") {
        if (itemUsed.typeId === "nicothekid:smooth_rose_quartz_slab") {
          system.run(() => {
            blockEast.setPermutation(BlockPermutation.resolve("nicothekid:smooth_rose_quartz_double_slab"));
            blockEast.dimension.playSound("use.stone", blockEast.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
    }
    if (blockFacing === "North" && customSlab.includes(blockNorth.typeId)) {
      if (blockNorth.typeId === "nicothekid:limestone_bricks_slab") {
        if (itemUsed.typeId === "nicothekid:limestone_bricks_slab") {
          system.run(() => {
            blockNorth.setPermutation(BlockPermutation.resolve("nicothekid:limestone_bricks_double_slab"));
            blockNorth.dimension.playSound("use.stone", blockNorth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockNorth.typeId === "nicothekid:limestone_slab") {
        if (itemUsed.typeId === "nicothekid:limestone_slab") {
          system.run(() => {
            blockNorth.setPermutation(BlockPermutation.resolve("nicothekid:limestone_double_slab"));
            blockNorth.dimension.playSound("use.stone", blockNorth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockNorth.typeId === "nicothekid:marble_bricks_slab") {
        if (itemUsed.typeId === "nicothekid:marble_bricks_slab") {
          system.run(() => {
            blockNorth.setPermutation(BlockPermutation.resolve("nicothekid:marble_bricks_double_slab"));
            blockNorth.dimension.playSound("place.calcite", blockNorth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockNorth.typeId === "nicothekid:marble_slab") {
        if (itemUsed.typeId === "nicothekid:marble_slab") {
          system.run(() => {
            blockNorth.setPermutation(BlockPermutation.resolve("nicothekid:marble_double_slab"));
            blockNorth.dimension.playSound("place.calcite", blockNorth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockNorth.typeId === "nicothekid:mosshroom_slab") {
        if (itemUsed.typeId === "nicothekid:mosshroom_slab") {
          system.run(() => {
            blockNorth.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_double_slab"));
            blockNorth.dimension.playSound("step.nether_wood", blockNorth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockNorth.typeId === "nicothekid:polished_limestone_slab") {
        if (itemUsed.typeId === "nicothekid:polished_limestone_slab") {
          system.run(() => {
            blockNorth.setPermutation(BlockPermutation.resolve("nicothekid:polished_limestone_double_slab"));
            blockNorth.dimension.playSound("use.stone", blockNorth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockNorth.typeId === "nicothekid:polished_marble_slab") {
        if (itemUsed.typeId === "nicothekid:polished_marble_slab") {
          system.run(() => {
            blockNorth.setPermutation(BlockPermutation.resolve("nicothekid:polished_marble_double_slab"));
            blockNorth.dimension.playSound("place.calcite", blockNorth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockNorth.typeId === "nicothekid:rose_quartz_slab") {
        if (itemUsed.typeId === "nicothekid:rose_quartz_slab") {
          system.run(() => {
            blockNorth.setPermutation(BlockPermutation.resolve("nicothekid:rose_quartz_double_slab"));
            blockNorth.dimension.playSound("use.stone", blockNorth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockNorth.typeId === "nicothekid:smooth_rose_quartz_slab") {
        if (itemUsed.typeId === "nicothekid:smooth_rose_quartz_slab") {
          system.run(() => {
            blockNorth.setPermutation(BlockPermutation.resolve("nicothekid:smooth_rose_quartz_double_slab"));
            blockNorth.dimension.playSound("use.stone", blockNorth.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
    }
    if (blockFacing === "West" && customSlab.includes(blockWest.typeId)) {
      if (blockWest.typeId === "nicothekid:limestone_bricks_slab") {
        if (itemUsed.typeId === "nicothekid:limestone_bricks_slab") {
          system.run(() => {
            blockWest.setPermutation(BlockPermutation.resolve("nicothekid:limestone_bricks_double_slab"));
            blockWest.dimension.playSound("use.stone", blockWest.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockWest.typeId === "nicothekid:limestone_slab") {
        if (itemUsed.typeId === "nicothekid:limestone_slab") {
          system.run(() => {
            blockWest.setPermutation(BlockPermutation.resolve("nicothekid:limestone_double_slab"));
            blockWest.dimension.playSound("use.stone", blockWest.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockWest.typeId === "nicothekid:marble_bricks_slab") {
        if (itemUsed.typeId === "nicothekid:marble_bricks_slab") {
          system.run(() => {
            blockWest.setPermutation(BlockPermutation.resolve("nicothekid:marble_bricks_double_slab"));
            blockWest.dimension.playSound("place.calcite", blockWest.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockWest.typeId === "nicothekid:marble_slab") {
        if (itemUsed.typeId === "nicothekid:marble_slab") {
          system.run(() => {
            blockWest.setPermutation(BlockPermutation.resolve("nicothekid:marble_double_slab"));
            blockWest.dimension.playSound("place.calcite", blockWest.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockWest.typeId === "nicothekid:mosshroom_slab") {
        if (itemUsed.typeId === "nicothekid:mosshroom_slab") {
          system.run(() => {
            blockWest.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_double_slab"));
            blockWest.dimension.playSound("step.nether_wood", blockWest.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockWest.typeId === "nicothekid:polished_limestone_slab") {
        if (itemUsed.typeId === "nicothekid:polished_limestone_slab") {
          system.run(() => {
            blockWest.setPermutation(BlockPermutation.resolve("nicothekid:polished_limestone_double_slab"));
            blockWest.dimension.playSound("use.stone", blockWest.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockWest.typeId === "nicothekid:polished_marble_slab") {
        if (itemUsed.typeId === "nicothekid:polished_marble_slab") {
          system.run(() => {
            blockWest.setPermutation(BlockPermutation.resolve("nicothekid:polished_marble_double_slab"));
            blockWest.dimension.playSound("place.calcite", blockWest.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockWest.typeId === "nicothekid:rose_quartz_slab") {
        if (itemUsed.typeId === "nicothekid:rose_quartz_slab") {
          system.run(() => {
            blockWest.setPermutation(BlockPermutation.resolve("nicothekid:rose_quartz_double_slab"));
            blockWest.dimension.playSound("use.stone", blockWest.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
      if (blockWest.typeId === "nicothekid:smooth_rose_quartz_slab") {
        if (itemUsed.typeId === "nicothekid:smooth_rose_quartz_slab") {
          system.run(() => {
            blockWest.setPermutation(BlockPermutation.resolve("nicothekid:smooth_rose_quartz_double_slab"));
            blockWest.dimension.playSound("use.stone", blockWest.location, { pitch: 0.8, volume: 1.0 });
            decreaseItem ();
            return;
          });
        }
        else return;
      }
    }
  }
  else return;
});
world.afterEvents.itemCompleteUse.subscribe(eventData => {
  const player = eventData.source;
  const itemUsed = eventData.itemStack;
	const customFoods = [
    "nicothekid:moss_berry_cookie",
    "nicothekid:moss_berry_pie",
    "nicothekid:mosshroom_stew"
  ]
	if (customFoods.includes(itemUsed.typeId)) {
    if (itemUsed.typeId === "nicothekid:moss_berry_cookie") {
      player.addEffect("regeneration", 200, {amplifier: 0, showParticles: true })
    }
    if (itemUsed.typeId === "nicothekid:moss_berry_pie") {
      player.addEffect("regeneration", 400, {amplifier: 0, showParticles: true })
    }
    if (itemUsed.typeId === "nicothekid:mosshroom_stew") {
      player.addEffect("regeneration", 300, {amplifier: 0, showParticles: true })
      player.addEffect("mining_fatigue", 300, {amplifier: 0, showParticles: true })
    }
	}
	else return;
});
world.beforeEvents.itemUseOn.subscribe(eventData => {
  const player = eventData.source;
  const itemUsed = eventData.itemStack;
  const block = eventData.block;
  const blockLocation = block.location;
  const playerEquippable = player.getComponent("equippable");
  const customAxes = [
    "nicothekid:brass_axe",
    "nicothekid:bronze_axe",
    "nicothekid:olivine_axe",
    "nicothekid:tin_axe",
    "nicothekid:zinc_axe"
  ]
  const customHoes = [
    "nicothekid:brass_hoe",
    "nicothekid:bronze_hoe",
    "nicothekid:olivine_hoe",
    "nicothekid:tin_hoe",
    "nicothekid:zinc_hoe"
  ]
  const customShovels = [
    "nicothekid:brass_shovel",
    "nicothekid:bronze_shovel",
    "nicothekid:olivine_shovel",
    "nicothekid:tin_shovel",
    "nicothekid:zinc_shovel"
  ]
  function damageDurability () {
    if (!player.matches({ gameMode: GameMode.creative })) {
      const itemEnchantable = itemUsed.getComponent("minecraft:enchantable");
      const unbreakingLevel = itemEnchantable?.getEnchantment("unbreaking")?.level ?? 0;
      const breakChance = 100 / (unbreakingLevel + 1);
      const randomizeChance = Math.random() * 100;
      if (breakChance < randomizeChance) return;
      const itemDurability = itemUsed.getComponent("durability");
      if (!itemDurability) return;
      const itemMaxDurability = itemDurability.maxDurability;
      const itemDurabilityDamage = itemDurability.damage;
      const durabilityCalculation = itemMaxDurability - itemDurabilityDamage;
      let damageAmount = 1;
      const currentDurability = durabilityCalculation - damageAmount;
      if (currentDurability <= 0) {
        player.playSound("random.break", { pitch: 0.9, location: player.location, volume: 1 });
        playerEquippable.setEquipment("Mainhand", null);
      }
      else {
        itemDurability.damage += damageAmount;
        playerEquippable.setEquipment("Mainhand", itemUsed)
      }
    }
  }
  if (itemUsed === undefined || !playerEquippable) return;
  if (itemUsed.hasTag("minecraft:is_axe") || customAxes.includes(itemUsed.typeId) || itemUsed.hasTag("minecraft:is_hoe") || customHoes.includes(itemUsed.typeId) || itemUsed.hasTag("minecraft:is_shovel") || customShovels.includes(itemUsed.typeId)) {
    if (itemUsed.hasTag("minecraft:is_axe") || customAxes.includes(itemUsed.typeId)) {
      const customWoods = [
        "nicothekid:corrupted_log",
        "nicothekid:corrupted_wood",
        "nicothekid:mosshroom_stem",
        "nicothekid:mosshroom_hyphae",
        "nicothekid:mossy_log",
        "nicothekid:mossy_wood",
        "nicothekid:overgrown_jungle_log",
        "nicothekid:overgrown_jungle_wood"
      ]
      const customCopper = [
        "nicothekid:copper_lamp_exposed",
        "nicothekid:copper_lamp_oxidized",
        "nicothekid:copper_lamp_weathered",
        "nicothekid:copper_lantern_exposed",
        "nicothekid:copper_lantern_oxidized",
        "nicothekid:copper_lantern_weathered"
      ]
      const customWaxedCopper = [
        "nicothekid:waxed_copper_lamp",
        "nicothekid:waxed_copper_lamp_exposed",
        "nicothekid:waxed_copper_lamp_oxidized",
        "nicothekid:waxed_copper_lamp_weathered",
        "nicothekid:waxed_copper_lantern",
        "nicothekid:waxed_copper_lantern_exposed",
        "nicothekid:waxed_copper_lantern_oxidized",
        "nicothekid:waxed_copper_lantern_weathered"
      ]
      if (customWoods.includes(block.typeId)) {
        if (block.permutation.matches("nicothekid:corrupted_log", { "minecraft:block_face": "down" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log_stripped", { "minecraft:block_face": "down" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:corrupted_log", { "minecraft:block_face": "up" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log_stripped", { "minecraft:block_face": "up" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:corrupted_log", { "minecraft:block_face": "south" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log_stripped", { "minecraft:block_face": "south" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:corrupted_log", { "minecraft:block_face": "east" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log_stripped", { "minecraft:block_face": "east" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:corrupted_log", { "minecraft:block_face": "north" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log_stripped", { "minecraft:block_face": "north" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:corrupted_log", { "minecraft:block_face": "west" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log_stripped", { "minecraft:block_face": "west" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:corrupted_wood", { "minecraft:block_face": "down" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_wood_stripped", { "minecraft:block_face": "down" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:corrupted_wood", { "minecraft:block_face": "up" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_wood_stripped", { "minecraft:block_face": "up" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:corrupted_wood", { "minecraft:block_face": "south" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_wood_stripped", { "minecraft:block_face": "south" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:corrupted_wood", { "minecraft:block_face": "east" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_wood_stripped", { "minecraft:block_face": "east" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:corrupted_wood", { "minecraft:block_face": "north" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_wood_stripped", { "minecraft:block_face": "north" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:corrupted_wood", { "minecraft:block_face": "west" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_wood_stripped", { "minecraft:block_face": "west" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mosshroom_hyphae", { "minecraft:block_face": "down" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_hyphae_stripped", { "minecraft:block_face": "down" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mosshroom_hyphae", { "minecraft:block_face": "up" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_hyphae_stripped", { "minecraft:block_face": "up" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mosshroom_hyphae", { "minecraft:block_face": "south" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_hyphae_stripped", { "minecraft:block_face": "south" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mosshroom_hyphae", { "minecraft:block_face": "east" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_hyphae_stripped", { "minecraft:block_face": "east" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mosshroom_hyphae", { "minecraft:block_face": "north" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_hyphae_stripped", { "minecraft:block_face": "north" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mosshroom_hyphae", { "minecraft:block_face": "west" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_hyphae_stripped", { "minecraft:block_face": "west" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mosshroom_stem", { "minecraft:block_face": "down" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_stem_stripped", { "minecraft:block_face": "down" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mosshroom_stem", { "minecraft:block_face": "up" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_stem_stripped", { "minecraft:block_face": "up" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mosshroom_stem", { "minecraft:block_face": "south" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_stem_stripped", { "minecraft:block_face": "south" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mosshroom_stem", { "minecraft:block_face": "east" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_stem_stripped", { "minecraft:block_face": "east" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mosshroom_stem", { "minecraft:block_face": "north" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_stem_stripped", { "minecraft:block_face": "north" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mosshroom_stem", { "minecraft:block_face": "west" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.stem", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mosshroom_stem_stripped", { "minecraft:block_face": "west" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mossy_log", { "minecraft:block_face": "down" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log_stripped", { "minecraft:block_face": "down" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mossy_log", { "minecraft:block_face": "up" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log_stripped", { "minecraft:block_face": "up" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mossy_log", { "minecraft:block_face": "south" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log_stripped", { "minecraft:block_face": "south" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mossy_log", { "minecraft:block_face": "east" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log_stripped", { "minecraft:block_face": "east" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mossy_log", { "minecraft:block_face": "north" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log_stripped", { "minecraft:block_face": "north" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mossy_log", { "minecraft:block_face": "west" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log_stripped", { "minecraft:block_face": "west" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mossy_wood", { "minecraft:block_face": "down" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_wood_stripped", { "minecraft:block_face": "down" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mossy_wood", { "minecraft:block_face": "up" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_wood_stripped", { "minecraft:block_face": "up" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mossy_wood", { "minecraft:block_face": "south" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_wood_stripped", { "minecraft:block_face": "south" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mossy_wood", { "minecraft:block_face": "east" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_wood_stripped", { "minecraft:block_face": "east" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mossy_wood", { "minecraft:block_face": "north" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_wood_stripped", { "minecraft:block_face": "north" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:mossy_wood", { "minecraft:block_face": "west" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_wood_stripped", { "minecraft:block_face": "west" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:overgrown_jungle_log", { "minecraft:block_face": "down" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log_stripped", { "minecraft:block_face": "down" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:overgrown_jungle_log", { "minecraft:block_face": "up" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log_stripped", { "minecraft:block_face": "up" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:overgrown_jungle_log", { "minecraft:block_face": "south" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log_stripped", { "minecraft:block_face": "south" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:overgrown_jungle_log", { "minecraft:block_face": "east" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log_stripped", { "minecraft:block_face": "east" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:overgrown_jungle_log", { "minecraft:block_face": "north" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log_stripped", { "minecraft:block_face": "north" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:overgrown_jungle_log", { "minecraft:block_face": "west" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log_stripped", { "minecraft:block_face": "west" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:overgrown_jungle_wood", { "minecraft:block_face": "down" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_wood_stripped", { "minecraft:block_face": "down" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:overgrown_jungle_wood", { "minecraft:block_face": "up" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_wood_stripped", { "minecraft:block_face": "up" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:overgrown_jungle_wood", { "minecraft:block_face": "south" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_wood_stripped", { "minecraft:block_face": "south" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:overgrown_jungle_wood", { "minecraft:block_face": "east" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_wood_stripped", { "minecraft:block_face": "east" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:overgrown_jungle_wood", { "minecraft:block_face": "north" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_wood_stripped", { "minecraft:block_face": "north" }));
            return;
          });
        }
        if (block.permutation.matches("nicothekid:overgrown_jungle_wood", { "minecraft:block_face": "west" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("use.wood", blockLocation, { pitch: 0.8, volume: 1.0 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_wood_stripped", { "minecraft:block_face": "west" }));
            return;
          });
        }
      }
      if (customCopper.includes(block.typeId)) {
        const pitchRange = Math.random() * (1.2 - 0.8) + 0.8;
        if (block.permutation.matches("nicothekid:copper_lamp_exposed")) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lamp"))
          });
        }
        if (block.permutation.matches("nicothekid:copper_lamp_weathered")) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lamp_exposed"))
          });
        }
        if (block.permutation.matches("nicothekid:copper_lamp_oxidized")) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lamp_weathered"))
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "down" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern", { "minecraft:block_face": "down" }));
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "up" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern", { "minecraft:block_face": "up" }));
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "north" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern", { "minecraft:block_face": "north" }));
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "west" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern", { "minecraft:block_face": "west" }));
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "south" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern", { "minecraft:block_face": "south" }));
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "east" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern", { "minecraft:block_face": "east" }));
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "down" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "down" }));
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "up" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "up" }));
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "north" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "north" }));
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "west" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "west" }));
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "south" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "south" }));
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "east" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "east" }));
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_oxidized", { "minecraft:block_face": "down" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "down" }));
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_oxidized", { "minecraft:block_face": "up" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "up" }));
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_oxidized", { "minecraft:block_face": "north" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "north" }));
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_oxidized", { "minecraft:block_face": "west" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "west" }));
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_oxidized", { "minecraft:block_face": "south" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "south" }));
          });
        }
        if (block.permutation.matches("nicothekid:copper_lantern_oxidized", { "minecraft:block_face": "east" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("scrape", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_scrape_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "east" }));
          });
        }
      }
      if (customWaxedCopper.includes(block.typeId)) {
        const pitchRange = Math.random() * (1.2 - 0.8) + 0.8;
        if (block.permutation.matches("nicothekid:waxed_copper_lamp")) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lamp"));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lamp_exposed")) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lamp_exposed"));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lamp_weathered")) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lamp_weathered"));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lamp_oxidized")) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lamp_oxidized"));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern", { "minecraft:block_face": "down" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern", { "minecraft:block_face": "down" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern", { "minecraft:block_face": "up" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern", { "minecraft:block_face": "up" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern", { "minecraft:block_face": "north" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern", { "minecraft:block_face": "north" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern", { "minecraft:block_face": "west" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern", { "minecraft:block_face": "west" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern", { "minecraft:block_face": "south" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern", { "minecraft:block_face": "south" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern", { "minecraft:block_face": "east" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern", { "minecraft:block_face": "east" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_exposed", { "minecraft:block_face": "down" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "down" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_exposed", { "minecraft:block_face": "up" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "up" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_exposed", { "minecraft:block_face": "north" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "north" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_exposed", { "minecraft:block_face": "west" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "west" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_exposed", { "minecraft:block_face": "south" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "south" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_exposed", { "minecraft:block_face": "east" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_exposed", { "minecraft:block_face": "east" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_weathered", { "minecraft:block_face": "down" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "down" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_weathered", { "minecraft:block_face": "up" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "up" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_weathered", { "minecraft:block_face": "north" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "north" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_weathered", { "minecraft:block_face": "west" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "west" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_weathered", { "minecraft:block_face": "south" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "south" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_weathered", { "minecraft:block_face": "east" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_weathered", { "minecraft:block_face": "east" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_oxidized", { "minecraft:block_face": "down" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_oxidized", { "minecraft:block_face": "down" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_oxidized", { "minecraft:block_face": "up" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_oxidized", { "minecraft:block_face": "up" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_oxidized", { "minecraft:block_face": "north" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_oxidized", { "minecraft:block_face": "north" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_oxidized", { "minecraft:block_face": "west" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_oxidized", { "minecraft:block_face": "west" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_oxidized", { "minecraft:block_face": "south" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_oxidized", { "minecraft:block_face": "south" }));
          });
        }
        if (block.permutation.matches("nicothekid:waxed_copper_lantern_oxidized", { "minecraft:block_face": "east" })) {
          system.run(() => {
            damageDurability ();
            block.dimension.playSound("copper.wax.off", blockLocation, { pitch: pitchRange, volume: 1.0 });
            block.dimension.spawnParticle("nicothekid:copper_wax_off_particle", blockLocation);
            block.setPermutation(BlockPermutation.resolve("nicothekid:copper_lantern_oxidized", { "minecraft:block_face": "east" }));
          });
        }
      }
    }
    if (itemUsed.hasTag("minecraft:is_hoe") || customHoes.includes(itemUsed.typeId)) {
      const grassedBlocks = [
        "nicothekid:grassed_stone",
        "nicothekid:grassed_oak_log_side",
        "nicothekid:grassed_oak_log_top",
        "nicothekid:grassed_oak_planks",
        "nicothekid:grassed_stripped_oak_log_side",
        "nicothekid:grassed_stripped_oak_log_top",
        "nicothekid:grassed_spruce_log_side",
        "nicothekid:grassed_spruce_log_top",
        "nicothekid:grassed_spruce_planks",
        "nicothekid:grassed_stripped_spruce_log_side",
        "nicothekid:grassed_stripped_spruce_log_top",
        "nicothekid:grassed_birch_log_side",
        "nicothekid:grassed_birch_log_top",
        "nicothekid:grassed_birch_planks",
        "nicothekid:grassed_stripped_birch_log_side",
        "nicothekid:grassed_stripped_birch_log_top",
        "nicothekid:grassed_jungle_log_side",
        "nicothekid:grassed_jungle_log_top",
        "nicothekid:grassed_jungle_planks",
        "nicothekid:grassed_stripped_jungle_log_side",
        "nicothekid:grassed_stripped_jungle_log_top",
        "nicothekid:grassed_acacia_log_side",
        "nicothekid:grassed_acacia_log_top",
        "nicothekid:grassed_acacia_planks",
        "nicothekid:grassed_stripped_acacia_log_side",
        "nicothekid:grassed_stripped_acacia_log_top",
        "nicothekid:grassed_dark_oak_log_side",
        "nicothekid:grassed_dark_oak_log_top",
        "nicothekid:grassed_dark_oak_planks",
        "nicothekid:grassed_stripped_dark_oak_log_side",
        "nicothekid:grassed_stripped_dark_oak_log_top",
        "nicothekid:grassed_mangrove_log_side",
        "nicothekid:grassed_mangrove_log_top",
        "nicothekid:grassed_mangrove_planks",
        "nicothekid:grassed_stripped_mangrove_log_side",
        "nicothekid:grassed_stripped_mangrove_log_top",
        "nicothekid:grassed_cherry_log_side",
        "nicothekid:grassed_cherry_log_top",
        "nicothekid:grassed_cherry_planks",
        "nicothekid:grassed_stripped_cherry_log_side",
        "nicothekid:grassed_stripped_cherry_log_top",
        "nicothekid:grassed_corrupted_log_side",
        "nicothekid:grassed_corrupted_log_top",
        "nicothekid:grassed_corrupted_planks",
        "nicothekid:grassed_stripped_corrupted_log_side",
        "nicothekid:grassed_stripped_corrupted_log_top",
        "nicothekid:grassed_mossy_log_side",
        "nicothekid:grassed_mossy_log_top",
        "nicothekid:grassed_mossy_planks",
        "nicothekid:grassed_stripped_mossy_log_side",
        "nicothekid:grassed_stripped_mossy_log_top",
        "nicothekid:grassed_overgrown_jungle_log_side",
        "nicothekid:grassed_overgrown_jungle_log_top",
        "nicothekid:grassed_overgrown_jungle_planks",
        "nicothekid:grassed_stripped_overgrown_jungle_log_side",
        "nicothekid:grassed_stripped_overgrown_jungle_log_top"
      ]
      const mossedBlocks = [
        "nicothekid:mossed_stone",
        "nicothekid:mossed_oak_log_side",
        "nicothekid:mossed_oak_log_top",
        "nicothekid:mossed_oak_planks",
        "nicothekid:mossed_stripped_oak_log_side",
        "nicothekid:mossed_stripped_oak_log_top",
        "nicothekid:mossed_spruce_log_side",
        "nicothekid:mossed_spruce_log_top",
        "nicothekid:mossed_spruce_planks",
        "nicothekid:mossed_stripped_spruce_log_side",
        "nicothekid:mossed_stripped_spruce_log_top",
        "nicothekid:mossed_birch_log_side",
        "nicothekid:mossed_birch_log_top",
        "nicothekid:mossed_birch_planks",
        "nicothekid:mossed_stripped_birch_log_side",
        "nicothekid:mossed_stripped_birch_log_top",
        "nicothekid:mossed_jungle_log_side",
        "nicothekid:mossed_jungle_log_top",
        "nicothekid:mossed_jungle_planks",
        "nicothekid:mossed_stripped_jungle_log_side",
        "nicothekid:mossed_stripped_jungle_log_top",
        "nicothekid:mossed_acacia_log_side",
        "nicothekid:mossed_acacia_log_top",
        "nicothekid:mossed_acacia_planks",
        "nicothekid:mossed_stripped_acacia_log_side",
        "nicothekid:mossed_stripped_acacia_log_top",
        "nicothekid:mossed_dark_oak_log_side",
        "nicothekid:mossed_dark_oak_log_top",
        "nicothekid:mossed_dark_oak_planks",
        "nicothekid:mossed_stripped_dark_oak_log_side",
        "nicothekid:mossed_stripped_dark_oak_log_top",
        "nicothekid:mossed_mangrove_log_side",
        "nicothekid:mossed_mangrove_log_top",
        "nicothekid:mossed_mangrove_planks",
        "nicothekid:mossed_stripped_mangrove_log_side",
        "nicothekid:mossed_stripped_mangrove_log_top",
        "nicothekid:mossed_cherry_log_side",
        "nicothekid:mossed_cherry_log_top",
        "nicothekid:mossed_cherry_planks",
        "nicothekid:mossed_stripped_cherry_log_side",
        "nicothekid:mossed_stripped_cherry_log_top",
        "nicothekid:mossed_corrupted_log_side",
        "nicothekid:mossed_corrupted_log_top",
        "nicothekid:mossed_corrupted_planks",
        "nicothekid:mossed_stripped_corrupted_log_side",
        "nicothekid:mossed_stripped_corrupted_log_top",
        "nicothekid:mossed_mossy_log_side",
        "nicothekid:mossed_mossy_log_top",
        "nicothekid:mossed_mossy_planks",
        "nicothekid:mossed_stripped_mossy_log_side",
        "nicothekid:mossed_stripped_mossy_log_top",
        "nicothekid:mossed_overgrown_jungle_log_side",
        "nicothekid:mossed_overgrown_jungle_log_top",
        "nicothekid:mossed_overgrown_jungle_planks",
        "nicothekid:mossed_stripped_overgrown_jungle_log_side",
        "nicothekid:mossed_stripped_overgrown_jungle_log_top"
      ]
      const myceliumedBlocks = [
        "nicothekid:myceliumed_deepslate"
      ]
      if (grassedBlocks.includes(block.typeId)) {
        const pitchRange = Math.random() * (1.0 - 0.8) + 0.8;
        function spawnGrassCarpet () {
          const grassCarpet = new ItemStack ("nicothekid:grass_carpet", 1);
          let randomChance = Math.random();
          if (itemUsed.getComponent("enchantable").hasEnchantment("silk_touch")) {
            block.dimension.spawnItem(grassCarpet, { x: blockLocation.x + 0.5, y: blockLocation.y + 1.0, z: blockLocation.z + 0.5 });
          }
          else if (itemUsed.getComponent("enchantable").hasEnchantment("fortune")) {
            if (itemUsed.getComponent("enchantable").getEnchantment("fortune").level == 1) {
              if (randomChance <= 0.5) {
                block.dimension.spawnItem(grassCarpet, { x: blockLocation.x + 0.5, y: blockLocation.y + 1.0, z: blockLocation.z + 0.5 });
              }
            }
            if (itemUsed.getComponent("enchantable").getEnchantment("fortune").level == 2) {
              if (randomChance <= 0.75) {
                block.dimension.spawnItem(grassCarpet, { x: blockLocation.x + 0.5, y: blockLocation.y + 1.0, z: blockLocation.z + 0.5 });
              }
            }
            if (itemUsed.getComponent("enchantable").getEnchantment("fortune").level == 3) {
              if (randomChance <= 1.0) {
                block.dimension.spawnItem(grassCarpet, { x: blockLocation.x + 0.5, y: blockLocation.y + 1.0, z: blockLocation.z + 0.5 });
              }
            }
          }
          else {
            if (randomChance <= 0.25) {
              block.dimension.spawnItem(grassCarpet, { x: blockLocation.x + 0.5, y: blockLocation.y + 1.0, z: blockLocation.z + 0.5 });
            }
            else return;
          }
        }
        
        if (block.permutation.matches("nicothekid:grassed_stone")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stone"))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_oak_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:oak_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_oak_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:oak_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_oak_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:oak_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_oak_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:oak_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_oak_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:oak_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_oak_planks")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:oak_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_oak_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_oak_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_oak_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_oak_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_oak_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_oak_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_oak_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_oak_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_oak_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_oak_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_spruce_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:spruce_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_spruce_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:spruce_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_spruce_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:spruce_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_spruce_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:spruce_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_spruce_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:spruce_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_spruce_planks")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:spruce_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_spruce_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_spruce_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_spruce_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_spruce_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_spruce_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_spruce_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_spruce_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_spruce_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_spruce_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_spruce_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_birch_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:birch_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_birch_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:birch_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_birch_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:birch_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_birch_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:birch_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_birch_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:birch_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_birch_planks")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:birch_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_birch_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_birch_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_birch_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_birch_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_birch_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_birch_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_birch_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_birch_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_birch_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_birch_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_jungle_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:jungle_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_jungle_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:jungle_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_jungle_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:jungle_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_jungle_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:jungle_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_jungle_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:jungle_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_jungle_planks")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:jungle_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_jungle_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_jungle_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_jungle_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_jungle_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_jungle_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_jungle_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_jungle_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_jungle_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_jungle_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_jungle_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_acacia_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:acacia_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_acacia_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:acacia_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_acacia_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:acacia_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_acacia_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:acacia_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_acacia_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:acacia_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_acacia_planks")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:acacia_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_acacia_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_acacia_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_acacia_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_acacia_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_acacia_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_acacia_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_acacia_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_acacia_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_acacia_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_acacia_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_dark_oak_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:dark_oak_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_dark_oak_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:dark_oak_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_dark_oak_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:dark_oak_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_dark_oak_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:dark_oak_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_dark_oak_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:dark_oak_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_dark_oak_planks")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:dark_oak_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_dark_oak_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_dark_oak_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_dark_oak_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_dark_oak_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_dark_oak_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_dark_oak_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_dark_oak_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_dark_oak_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_dark_oak_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_dark_oak_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_mangrove_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:mangrove_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_mangrove_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:mangrove_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_mangrove_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:mangrove_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_mangrove_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:mangrove_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_mangrove_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:mangrove_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_mangrove_planks")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:mangrove_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_mangrove_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_mangrove_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_mangrove_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_mangrove_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_mangrove_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_mangrove_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_mangrove_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_mangrove_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_mangrove_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_mangrove_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_cherry_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:cherry_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_cherry_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:cherry_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_cherry_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:cherry_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_cherry_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:cherry_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_cherry_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:cherry_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_cherry_planks")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:cherry_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_cherry_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_cherry_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_cherry_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_cherry_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_cherry_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_cherry_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_cherry_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_cherry_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_cherry_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_cherry_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_corrupted_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log", { "minecraft:block_face": "east" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_corrupted_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log", { "minecraft:block_face": "west" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_corrupted_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log", { "minecraft:block_face": "north" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_corrupted_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log", { "minecraft:block_face": "south" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_corrupted_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log"))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_corrupted_planks")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_corrupted_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log_stripped", { "minecraft:block_face": "east" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_corrupted_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log_stripped", { "minecraft:block_face": "west" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_corrupted_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log_stripped", { "minecraft:block_face": "north" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_corrupted_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log_stripped", { "minecraft:block_face": "south" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_corrupted_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log_stripped"))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_mossy_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log", { "minecraft:block_face": "east" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_mossy_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log", { "minecraft:block_face": "west" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_mossy_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log", { "minecraft:block_face": "north" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_mossy_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log", { "minecraft:block_face": "south" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_mossy_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log"))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_mossy_planks")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_mossy_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log_stripped", { "minecraft:block_face": "east" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_mossy_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log_stripped", { "minecraft:block_face": "west" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_mossy_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log_stripped", { "minecraft:block_face": "north" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_mossy_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log_stripped", { "minecraft:block_face": "south" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_mossy_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log_stripped"))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_overgrown_jungle_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log", { "minecraft:block_face": "east" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_overgrown_jungle_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log", { "minecraft:block_face": "west" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_overgrown_jungle_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log", { "minecraft:block_face": "north" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_overgrown_jungle_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log", { "minecraft:block_face": "south" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_overgrown_jungle_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log"))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_overgrown_jungle_planks")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_overgrown_jungle_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log_stripped", { "minecraft:block_face": "east" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_overgrown_jungle_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log_stripped", { "minecraft:block_face": "west" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_overgrown_jungle_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log_stripped", { "minecraft:block_face": "north" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_overgrown_jungle_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log_stripped", { "minecraft:block_face": "south" }))
          });
        }
        if (block.permutation.matches("nicothekid:grassed_stripped_overgrown_jungle_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnGrassCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log_stripped"))
          });
        }
      }
      if (mossedBlocks.includes(block.typeId)) {
        const pitchRange = Math.random() * (1.0 - 0.8) + 0.8;
        function spawnMossCarpet () {
          const mossCarpet = new ItemStack ("minecraft:moss_carpet", 1);
          let randomChance = Math.random();
          if (itemUsed.getComponent("enchantable").hasEnchantment("silk_touch")) {
            block.dimension.spawnItem(mossCarpet, { x: blockLocation.x + 0.5, y: blockLocation.y + 1.0, z: blockLocation.z + 0.5 });
          }
          else if (itemUsed.getComponent("enchantable").hasEnchantment("fortune")) {
            if (itemUsed.getComponent("enchantable").getEnchantment("fortune").level == 1) {
              if (randomChance <= 0.5) {
                block.dimension.spawnItem(mossCarpet, { x: blockLocation.x + 0.5, y: blockLocation.y + 1.0, z: blockLocation.z + 0.5 });
              }
            }
            if (itemUsed.getComponent("enchantable").getEnchantment("fortune").level == 2) {
              if (randomChance <= 0.75) {
                block.dimension.spawnItem(mossCarpet, { x: blockLocation.x + 0.5, y: blockLocation.y + 1.0, z: blockLocation.z + 0.5 });
              }
            }
            if (itemUsed.getComponent("enchantable").getEnchantment("fortune").level == 3) {
              if (randomChance <= 1.0) {
                block.dimension.spawnItem(mossCarpet, { x: blockLocation.x + 0.5, y: blockLocation.y + 1.0, z: blockLocation.z + 0.5 });
              }
            }
          }
          else {
            if (randomChance <= 0.25) {
              block.dimension.spawnItem(mossCarpet, { x: blockLocation.x + 0.5, y: blockLocation.y + 1.0, z: blockLocation.z + 0.5 });
            }
            else return;
          }
        }
        
        if (block.permutation.matches("nicothekid:mossed_stone")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stone"))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_oak_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:oak_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_oak_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:oak_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_oak_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:oak_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_oak_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:oak_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_oak_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:oak_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_oak_planks")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:oak_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_oak_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_oak_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_oak_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_oak_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_oak_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_oak_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_oak_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_oak_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_oak_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_oak_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_spruce_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:spruce_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_spruce_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:spruce_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_spruce_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:spruce_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_spruce_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:spruce_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_spruce_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:spruce_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_spruce_planks")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:spruce_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_spruce_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_spruce_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_spruce_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_spruce_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_spruce_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_spruce_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_spruce_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_spruce_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_spruce_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_spruce_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_birch_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:birch_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_birch_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:birch_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_birch_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:birch_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_birch_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:birch_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_birch_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:birch_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_birch_planks")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:birch_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_birch_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_birch_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_birch_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_birch_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_birch_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_birch_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_birch_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_birch_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_birch_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_birch_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_jungle_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:jungle_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_jungle_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:jungle_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_jungle_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:jungle_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_jungle_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:jungle_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_jungle_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:jungle_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_jungle_planks")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:jungle_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_jungle_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_jungle_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_jungle_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_jungle_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_jungle_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_jungle_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_jungle_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_jungle_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_jungle_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_jungle_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_acacia_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:acacia_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_acacia_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:acacia_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_acacia_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:acacia_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_acacia_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:acacia_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_acacia_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:acacia_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_acacia_planks")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:acacia_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_acacia_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_acacia_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_acacia_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_acacia_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_acacia_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_acacia_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_acacia_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_acacia_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_acacia_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_acacia_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_dark_oak_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:dark_oak_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_dark_oak_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:dark_oak_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_dark_oak_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:dark_oak_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_dark_oak_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:dark_oak_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_dark_oak_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:dark_oak_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_dark_oak_planks")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:dark_oak_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_dark_oak_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_dark_oak_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_dark_oak_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_dark_oak_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_dark_oak_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_dark_oak_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_dark_oak_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_dark_oak_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_dark_oak_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_dark_oak_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_mangrove_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:mangrove_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_mangrove_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:mangrove_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_mangrove_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:mangrove_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_mangrove_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:mangrove_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_mangrove_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:mangrove_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_mangrove_planks")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:mangrove_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_mangrove_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_mangrove_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_mangrove_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_mangrove_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_mangrove_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_mangrove_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_mangrove_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_mangrove_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_mangrove_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_mangrove_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_cherry_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:cherry_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_cherry_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:cherry_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_cherry_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:cherry_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_cherry_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:cherry_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_cherry_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:cherry_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_cherry_planks")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:cherry_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_cherry_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_cherry_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_cherry_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_cherry_log", { pillar_axis: "x" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_cherry_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_cherry_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_cherry_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_cherry_log", { pillar_axis: "z" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_cherry_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:stripped_cherry_log", { pillar_axis: "y" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_corrupted_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log", { "minecraft:block_face": "east" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_corrupted_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log", { "minecraft:block_face": "west" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_corrupted_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log", { "minecraft:block_face": "north" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_corrupted_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log", { "minecraft:block_face": "south" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_corrupted_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log"))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_corrupted_planks")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_corrupted_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log_stripped", { "minecraft:block_face": "east" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_corrupted_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log_stripped", { "minecraft:block_face": "west" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_corrupted_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log_stripped", { "minecraft:block_face": "north" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_corrupted_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log_stripped", { "minecraft:block_face": "south" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_corrupted_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:corrupted_log_stripped"))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_mossy_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log", { "minecraft:block_face": "east" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_mossy_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log", { "minecraft:block_face": "west" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_mossy_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log", { "minecraft:block_face": "north" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_mossy_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log", { "minecraft:block_face": "south" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_mossy_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log"))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_mossy_planks")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_mossy_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log_stripped", { "minecraft:block_face": "east" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_mossy_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log_stripped", { "minecraft:block_face": "west" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_mossy_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log_stripped", { "minecraft:block_face": "north" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_mossy_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log_stripped", { "minecraft:block_face": "south" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_mossy_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:mossy_log_stripped"))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_overgrown_jungle_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log", { "minecraft:block_face": "east" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_overgrown_jungle_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log", { "minecraft:block_face": "west" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_overgrown_jungle_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log", { "minecraft:block_face": "north" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_overgrown_jungle_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log", { "minecraft:block_face": "south" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_overgrown_jungle_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log"))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_overgrown_jungle_planks")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_planks"))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_overgrown_jungle_log_side", { "minecraft:cardinal_direction": "east" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log_stripped", { "minecraft:block_face": "east" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_overgrown_jungle_log_side", { "minecraft:cardinal_direction": "west" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log_stripped", { "minecraft:block_face": "west" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_overgrown_jungle_log_side", { "minecraft:cardinal_direction": "north" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log_stripped", { "minecraft:block_face": "north" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_overgrown_jungle_log_side", { "minecraft:cardinal_direction": "south" })) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log_stripped", { "minecraft:block_face": "south" }))
          });
        }
        if (block.permutation.matches("nicothekid:mossed_stripped_overgrown_jungle_log_top")) {
          system.run(() => {
            damageDurability ();
            spawnMossCarpet ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("nicothekid:overgrown_jungle_log_stripped"))
          });
        }
      }
      if (myceliumedBlocks.includes(block.typeId)) {
        const pitchRange = Math.random() * (1.0 - 0.8) + 0.8;
        function spawnMyceliumSprouts () {
          const myceliumSprouts = new ItemStack ("nicothekid:mycelium_sprouts_small", 1);
          let randomChance = Math.random();
          if (itemUsed.getComponent("enchantable").hasEnchantment("silk_touch")) {
            block.dimension.spawnItem(myceliumSprouts, { x: blockLocation.x + 0.5, y: blockLocation.y + 1.0, z: blockLocation.z + 0.5 });
          }
          else if (itemUsed.getComponent("enchantable").hasEnchantment("fortune")) {
            if (itemUsed.getComponent("enchantable").getEnchantment("fortune").level == 1) {
              if (randomChance <= 0.5) {
                block.dimension.spawnItem(myceliumSprouts, { x: blockLocation.x + 0.5, y: blockLocation.y + 1.0, z: blockLocation.z + 0.5 });
              }
            }
            if (itemUsed.getComponent("enchantable").getEnchantment("fortune").level == 2) {
              if (randomChance <= 0.75) {
                block.dimension.spawnItem(myceliumSprouts, { x: blockLocation.x + 0.5, y: blockLocation.y + 1.0, z: blockLocation.z + 0.5 });
              }
            }
            if (itemUsed.getComponent("enchantable").getEnchantment("fortune").level == 3) {
              if (randomChance <= 1.0) {
                block.dimension.spawnItem(myceliumSprouts, { x: blockLocation.x + 0.5, y: blockLocation.y + 1.0, z: blockLocation.z + 0.5 });
              }
            }
          }
          else {
            if (randomChance <= 0.25) {
              block.dimension.spawnItem(myceliumSprouts, { x: blockLocation.x + 0.5, y: blockLocation.y + 1.0, z: blockLocation.z + 0.5 });
            }
            else return;
          }
        }
        
        if (block.permutation.matches("nicothekid:myceliumed_deepslate")) {
          system.run(() => {
            damageDurability ();
            spawnMyceliumSprouts ();
            block.dimension.playSound("use.gravel", blockLocation, { pitch: pitchRange, volume: 0.8 });
            block.setPermutation(BlockPermutation.resolve("minecraft:deepslate"))
          });
        }
      }
    }
  }
  else return;
})
