Guest User

varnish stripper procedure

a guest
May 9th, 2025
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 112.19 KB | Help | 0 0
  1. package net.mcreator.kieselskatastrophicmod.procedures;
  2.  
  3. import net.minecraftforge.registries.ForgeRegistries;
  4. import net.minecraftforge.fml.common.Mod;
  5. import net.minecraftforge.eventbus.api.SubscribeEvent;
  6. import net.minecraftforge.eventbus.api.Event;
  7. import net.minecraftforge.event.entity.player.PlayerInteractEvent;
  8.  
  9. import net.minecraft.world.level.block.state.properties.Property;
  10. import net.minecraft.world.level.block.state.BlockState;
  11. import net.minecraft.world.level.block.Blocks;
  12. import net.minecraft.world.level.LevelAccessor;
  13. import net.minecraft.world.level.Level;
  14. import net.minecraft.world.item.ItemStack;
  15. import net.minecraft.world.entity.LivingEntity;
  16. import net.minecraft.world.entity.Entity;
  17. import net.minecraft.sounds.SoundSource;
  18. import net.minecraft.resources.ResourceLocation;
  19. import net.minecraft.core.BlockPos;
  20.  
  21. import net.mcreator.kieselskatastrophicmod.network.KieselsKatastrophicModModVariables;
  22. import net.mcreator.kieselskatastrophicmod.init.KieselsKatastrophicModModItems;
  23. import net.mcreator.kieselskatastrophicmod.init.KieselsKatastrophicModModBlocks;
  24.  
  25. import javax.annotation.Nullable;
  26.  
  27. import java.util.Map;
  28.  
  29. @Mod.EventBusSubscriber
  30. public class VarnishstripperprocessProcedure {
  31.     @SubscribeEvent
  32.     public static void onRightClickItem(PlayerInteractEvent.RightClickItem event) {
  33.         if (event.getHand() != event.getEntity().getUsedItemHand())
  34.             return;
  35.         execute(event, event.getLevel(), event.getPos().getX(), event.getPos().getY(), event.getPos().getZ(), event.getEntity());
  36.     }
  37.  
  38.     public static void execute(LevelAccessor world, double x, double y, double z, Entity entity) {
  39.         execute(null, world, x, y, z, entity);
  40.     }
  41.  
  42.     private static void execute(@Nullable Event event, LevelAccessor world, double x, double y, double z, Entity entity) {
  43.         if (entity == null)
  44.             return;
  45.         BlockState wheatBlock = Blocks.AIR.defaultBlockState();
  46.         BlockState WhitePetals4 = Blocks.AIR.defaultBlockState();
  47.         BlockState varnish = Blocks.AIR.defaultBlockState();
  48.         BlockState varnishstripper = Blocks.AIR.defaultBlockState();
  49.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  50.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  51.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  52.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.APPLE_PLANKS.get()) {
  53.                 {
  54.                     BlockPos _bp = BlockPos.containing(x, y, z);
  55.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_PLANKS.get().defaultBlockState();
  56.                     BlockState _bso = world.getBlockState(_bp);
  57.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  58.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  59.                         if (_property != null && _bs.getValue(_property) != null)
  60.                             try {
  61.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  62.                             } catch (Exception e) {
  63.                             }
  64.                     }
  65.                     world.setBlock(_bp, _bs, 3);
  66.                 }
  67.                 if (world instanceof Level _level) {
  68.                     if (!_level.isClientSide()) {
  69.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  70.                     } else {
  71.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  72.                     }
  73.                 }
  74.             }
  75.         }
  76.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  77.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  78.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  79.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.APPLE_LOG.get()) {
  80.                 {
  81.                     BlockPos _bp = BlockPos.containing(x, y, z);
  82.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_LOG.get().defaultBlockState();
  83.                     BlockState _bso = world.getBlockState(_bp);
  84.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  85.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  86.                         if (_property != null && _bs.getValue(_property) != null)
  87.                             try {
  88.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  89.                             } catch (Exception e) {
  90.                             }
  91.                     }
  92.                     world.setBlock(_bp, _bs, 3);
  93.                 }
  94.                 if (world instanceof Level _level) {
  95.                     if (!_level.isClientSide()) {
  96.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  97.                     } else {
  98.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  99.                     }
  100.                 }
  101.             }
  102.         }
  103.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  104.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  105.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  106.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.APPLE_STRIPPED_LOG.get()) {
  107.                 {
  108.                     BlockPos _bp = BlockPos.containing(x, y, z);
  109.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_LOG.get().defaultBlockState();
  110.                     BlockState _bso = world.getBlockState(_bp);
  111.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  112.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  113.                         if (_property != null && _bs.getValue(_property) != null)
  114.                             try {
  115.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  116.                             } catch (Exception e) {
  117.                             }
  118.                     }
  119.                     world.setBlock(_bp, _bs, 3);
  120.                 }
  121.                 if (world instanceof Level _level) {
  122.                     if (!_level.isClientSide()) {
  123.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  124.                     } else {
  125.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  126.                     }
  127.                 }
  128.             }
  129.         }
  130.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  131.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  132.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  133.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.APPLE_STRIPPED_WOOD.get()) {
  134.                 {
  135.                     BlockPos _bp = BlockPos.containing(x, y, z);
  136.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_WOOD.get().defaultBlockState();
  137.                     BlockState _bso = world.getBlockState(_bp);
  138.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  139.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  140.                         if (_property != null && _bs.getValue(_property) != null)
  141.                             try {
  142.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  143.                             } catch (Exception e) {
  144.                             }
  145.                     }
  146.                     world.setBlock(_bp, _bs, 3);
  147.                 }
  148.                 if (world instanceof Level _level) {
  149.                     if (!_level.isClientSide()) {
  150.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  151.                     } else {
  152.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  153.                     }
  154.                 }
  155.             }
  156.         }
  157.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  158.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  159.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  160.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.APPLE_WOOD.get()) {
  161.                 {
  162.                     BlockPos _bp = BlockPos.containing(x, y, z);
  163.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_WOOD.get().defaultBlockState();
  164.                     BlockState _bso = world.getBlockState(_bp);
  165.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  166.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  167.                         if (_property != null && _bs.getValue(_property) != null)
  168.                             try {
  169.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  170.                             } catch (Exception e) {
  171.                             }
  172.                     }
  173.                     world.setBlock(_bp, _bs, 3);
  174.                 }
  175.                 if (world instanceof Level _level) {
  176.                     if (!_level.isClientSide()) {
  177.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  178.                     } else {
  179.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  180.                     }
  181.                 }
  182.             }
  183.         }
  184.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  185.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  186.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  187.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.ORANGE_PLANKS.get()) {
  188.                 {
  189.                     BlockPos _bp = BlockPos.containing(x, y, z);
  190.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_PLANKS.get().defaultBlockState();
  191.                     BlockState _bso = world.getBlockState(_bp);
  192.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  193.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  194.                         if (_property != null && _bs.getValue(_property) != null)
  195.                             try {
  196.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  197.                             } catch (Exception e) {
  198.                             }
  199.                     }
  200.                     world.setBlock(_bp, _bs, 3);
  201.                 }
  202.                 if (world instanceof Level _level) {
  203.                     if (!_level.isClientSide()) {
  204.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  205.                     } else {
  206.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  207.                     }
  208.                 }
  209.             }
  210.         }
  211.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  212.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  213.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  214.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.ORANGE_LOG.get()) {
  215.                 {
  216.                     BlockPos _bp = BlockPos.containing(x, y, z);
  217.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_LOG.get().defaultBlockState();
  218.                     BlockState _bso = world.getBlockState(_bp);
  219.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  220.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  221.                         if (_property != null && _bs.getValue(_property) != null)
  222.                             try {
  223.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  224.                             } catch (Exception e) {
  225.                             }
  226.                     }
  227.                     world.setBlock(_bp, _bs, 3);
  228.                 }
  229.                 if (world instanceof Level _level) {
  230.                     if (!_level.isClientSide()) {
  231.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  232.                     } else {
  233.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  234.                     }
  235.                 }
  236.             }
  237.         }
  238.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  239.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  240.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  241.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.ORANGE_STRIPPED_LOG.get()) {
  242.                 {
  243.                     BlockPos _bp = BlockPos.containing(x, y, z);
  244.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_LOG.get().defaultBlockState();
  245.                     BlockState _bso = world.getBlockState(_bp);
  246.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  247.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  248.                         if (_property != null && _bs.getValue(_property) != null)
  249.                             try {
  250.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  251.                             } catch (Exception e) {
  252.                             }
  253.                     }
  254.                     world.setBlock(_bp, _bs, 3);
  255.                 }
  256.                 if (world instanceof Level _level) {
  257.                     if (!_level.isClientSide()) {
  258.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  259.                     } else {
  260.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  261.                     }
  262.                 }
  263.             }
  264.         }
  265.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  266.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  267.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  268.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.ORANGE_STRIPPED_WOOD.get()) {
  269.                 {
  270.                     BlockPos _bp = BlockPos.containing(x, y, z);
  271.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_WOOD.get().defaultBlockState();
  272.                     BlockState _bso = world.getBlockState(_bp);
  273.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  274.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  275.                         if (_property != null && _bs.getValue(_property) != null)
  276.                             try {
  277.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  278.                             } catch (Exception e) {
  279.                             }
  280.                     }
  281.                     world.setBlock(_bp, _bs, 3);
  282.                 }
  283.                 if (world instanceof Level _level) {
  284.                     if (!_level.isClientSide()) {
  285.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  286.                     } else {
  287.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  288.                     }
  289.                 }
  290.             }
  291.         }
  292.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  293.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  294.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  295.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.ORANGE_WOOD.get()) {
  296.                 {
  297.                     BlockPos _bp = BlockPos.containing(x, y, z);
  298.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_WOOD.get().defaultBlockState();
  299.                     BlockState _bso = world.getBlockState(_bp);
  300.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  301.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  302.                         if (_property != null && _bs.getValue(_property) != null)
  303.                             try {
  304.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  305.                             } catch (Exception e) {
  306.                             }
  307.                     }
  308.                     world.setBlock(_bp, _bs, 3);
  309.                 }
  310.                 if (world instanceof Level _level) {
  311.                     if (!_level.isClientSide()) {
  312.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  313.                     } else {
  314.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  315.                     }
  316.                 }
  317.             }
  318.         }
  319.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  320.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  321.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  322.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.LEMON_PLANKS.get()) {
  323.                 {
  324.                     BlockPos _bp = BlockPos.containing(x, y, z);
  325.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_PLANKS.get().defaultBlockState();
  326.                     BlockState _bso = world.getBlockState(_bp);
  327.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  328.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  329.                         if (_property != null && _bs.getValue(_property) != null)
  330.                             try {
  331.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  332.                             } catch (Exception e) {
  333.                             }
  334.                     }
  335.                     world.setBlock(_bp, _bs, 3);
  336.                 }
  337.                 if (world instanceof Level _level) {
  338.                     if (!_level.isClientSide()) {
  339.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  340.                     } else {
  341.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  342.                     }
  343.                 }
  344.             }
  345.         }
  346.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  347.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  348.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  349.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.LEMON_LOG.get()) {
  350.                 {
  351.                     BlockPos _bp = BlockPos.containing(x, y, z);
  352.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_LOG.get().defaultBlockState();
  353.                     BlockState _bso = world.getBlockState(_bp);
  354.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  355.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  356.                         if (_property != null && _bs.getValue(_property) != null)
  357.                             try {
  358.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  359.                             } catch (Exception e) {
  360.                             }
  361.                     }
  362.                     world.setBlock(_bp, _bs, 3);
  363.                 }
  364.                 if (world instanceof Level _level) {
  365.                     if (!_level.isClientSide()) {
  366.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  367.                     } else {
  368.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  369.                     }
  370.                 }
  371.             }
  372.         }
  373.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  374.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  375.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  376.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.LEMON_STRIPPED_LOG.get()) {
  377.                 {
  378.                     BlockPos _bp = BlockPos.containing(x, y, z);
  379.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_LOG.get().defaultBlockState();
  380.                     BlockState _bso = world.getBlockState(_bp);
  381.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  382.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  383.                         if (_property != null && _bs.getValue(_property) != null)
  384.                             try {
  385.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  386.                             } catch (Exception e) {
  387.                             }
  388.                     }
  389.                     world.setBlock(_bp, _bs, 3);
  390.                 }
  391.                 if (world instanceof Level _level) {
  392.                     if (!_level.isClientSide()) {
  393.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  394.                     } else {
  395.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  396.                     }
  397.                 }
  398.             }
  399.         }
  400.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  401.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  402.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  403.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.LEMON_STRIPPED_WOOD.get()) {
  404.                 {
  405.                     BlockPos _bp = BlockPos.containing(x, y, z);
  406.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_WOOD.get().defaultBlockState();
  407.                     BlockState _bso = world.getBlockState(_bp);
  408.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  409.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  410.                         if (_property != null && _bs.getValue(_property) != null)
  411.                             try {
  412.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  413.                             } catch (Exception e) {
  414.                             }
  415.                     }
  416.                     world.setBlock(_bp, _bs, 3);
  417.                 }
  418.                 if (world instanceof Level _level) {
  419.                     if (!_level.isClientSide()) {
  420.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  421.                     } else {
  422.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  423.                     }
  424.                 }
  425.             }
  426.         }
  427.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  428.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  429.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  430.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.LEMON_WOOD.get()) {
  431.                 {
  432.                     BlockPos _bp = BlockPos.containing(x, y, z);
  433.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_WOOD.get().defaultBlockState();
  434.                     BlockState _bso = world.getBlockState(_bp);
  435.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  436.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  437.                         if (_property != null && _bs.getValue(_property) != null)
  438.                             try {
  439.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  440.                             } catch (Exception e) {
  441.                             }
  442.                     }
  443.                     world.setBlock(_bp, _bs, 3);
  444.                 }
  445.                 if (world instanceof Level _level) {
  446.                     if (!_level.isClientSide()) {
  447.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  448.                     } else {
  449.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  450.                     }
  451.                 }
  452.             }
  453.         }
  454.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  455.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  456.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  457.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.LIME_PLANKS.get()) {
  458.                 {
  459.                     BlockPos _bp = BlockPos.containing(x, y, z);
  460.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_PLANKS.get().defaultBlockState();
  461.                     BlockState _bso = world.getBlockState(_bp);
  462.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  463.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  464.                         if (_property != null && _bs.getValue(_property) != null)
  465.                             try {
  466.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  467.                             } catch (Exception e) {
  468.                             }
  469.                     }
  470.                     world.setBlock(_bp, _bs, 3);
  471.                 }
  472.                 if (world instanceof Level _level) {
  473.                     if (!_level.isClientSide()) {
  474.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  475.                     } else {
  476.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  477.                     }
  478.                 }
  479.             }
  480.         }
  481.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  482.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  483.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  484.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.LIME_LOG.get()) {
  485.                 {
  486.                     BlockPos _bp = BlockPos.containing(x, y, z);
  487.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_LOG.get().defaultBlockState();
  488.                     BlockState _bso = world.getBlockState(_bp);
  489.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  490.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  491.                         if (_property != null && _bs.getValue(_property) != null)
  492.                             try {
  493.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  494.                             } catch (Exception e) {
  495.                             }
  496.                     }
  497.                     world.setBlock(_bp, _bs, 3);
  498.                 }
  499.                 if (world instanceof Level _level) {
  500.                     if (!_level.isClientSide()) {
  501.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  502.                     } else {
  503.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  504.                     }
  505.                 }
  506.             }
  507.         }
  508.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  509.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  510.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  511.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.LIME_STRIPPED_LOG.get()) {
  512.                 {
  513.                     BlockPos _bp = BlockPos.containing(x, y, z);
  514.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_LOG.get().defaultBlockState();
  515.                     BlockState _bso = world.getBlockState(_bp);
  516.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  517.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  518.                         if (_property != null && _bs.getValue(_property) != null)
  519.                             try {
  520.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  521.                             } catch (Exception e) {
  522.                             }
  523.                     }
  524.                     world.setBlock(_bp, _bs, 3);
  525.                 }
  526.                 if (world instanceof Level _level) {
  527.                     if (!_level.isClientSide()) {
  528.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  529.                     } else {
  530.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  531.                     }
  532.                 }
  533.             }
  534.         }
  535.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  536.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  537.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  538.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.LIME_STRIPPED_WOOD.get()) {
  539.                 {
  540.                     BlockPos _bp = BlockPos.containing(x, y, z);
  541.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_WOOD.get().defaultBlockState();
  542.                     BlockState _bso = world.getBlockState(_bp);
  543.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  544.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  545.                         if (_property != null && _bs.getValue(_property) != null)
  546.                             try {
  547.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  548.                             } catch (Exception e) {
  549.                             }
  550.                     }
  551.                     world.setBlock(_bp, _bs, 3);
  552.                 }
  553.                 if (world instanceof Level _level) {
  554.                     if (!_level.isClientSide()) {
  555.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  556.                     } else {
  557.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  558.                     }
  559.                 }
  560.             }
  561.         }
  562.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  563.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  564.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  565.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.LIME_WOOD.get()) {
  566.                 {
  567.                     BlockPos _bp = BlockPos.containing(x, y, z);
  568.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_WOOD.get().defaultBlockState();
  569.                     BlockState _bso = world.getBlockState(_bp);
  570.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  571.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  572.                         if (_property != null && _bs.getValue(_property) != null)
  573.                             try {
  574.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  575.                             } catch (Exception e) {
  576.                             }
  577.                     }
  578.                     world.setBlock(_bp, _bs, 3);
  579.                 }
  580.                 if (world instanceof Level _level) {
  581.                     if (!_level.isClientSide()) {
  582.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  583.                     } else {
  584.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  585.                     }
  586.                 }
  587.             }
  588.         }
  589.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  590.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  591.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  592.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.PEAR_PLANKS.get()) {
  593.                 {
  594.                     BlockPos _bp = BlockPos.containing(x, y, z);
  595.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_PLANKS.get().defaultBlockState();
  596.                     BlockState _bso = world.getBlockState(_bp);
  597.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  598.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  599.                         if (_property != null && _bs.getValue(_property) != null)
  600.                             try {
  601.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  602.                             } catch (Exception e) {
  603.                             }
  604.                     }
  605.                     world.setBlock(_bp, _bs, 3);
  606.                 }
  607.                 if (world instanceof Level _level) {
  608.                     if (!_level.isClientSide()) {
  609.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  610.                     } else {
  611.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  612.                     }
  613.                 }
  614.             }
  615.         }
  616.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  617.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  618.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  619.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.PEAR_LOG.get()) {
  620.                 {
  621.                     BlockPos _bp = BlockPos.containing(x, y, z);
  622.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_LOG.get().defaultBlockState();
  623.                     BlockState _bso = world.getBlockState(_bp);
  624.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  625.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  626.                         if (_property != null && _bs.getValue(_property) != null)
  627.                             try {
  628.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  629.                             } catch (Exception e) {
  630.                             }
  631.                     }
  632.                     world.setBlock(_bp, _bs, 3);
  633.                 }
  634.                 if (world instanceof Level _level) {
  635.                     if (!_level.isClientSide()) {
  636.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  637.                     } else {
  638.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  639.                     }
  640.                 }
  641.             }
  642.         }
  643.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  644.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  645.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  646.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_PEAR_LOG.get()) {
  647.                 {
  648.                     BlockPos _bp = BlockPos.containing(x, y, z);
  649.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_LOG.get().defaultBlockState();
  650.                     BlockState _bso = world.getBlockState(_bp);
  651.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  652.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  653.                         if (_property != null && _bs.getValue(_property) != null)
  654.                             try {
  655.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  656.                             } catch (Exception e) {
  657.                             }
  658.                     }
  659.                     world.setBlock(_bp, _bs, 3);
  660.                 }
  661.                 if (world instanceof Level _level) {
  662.                     if (!_level.isClientSide()) {
  663.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  664.                     } else {
  665.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  666.                     }
  667.                 }
  668.             }
  669.         }
  670.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  671.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  672.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  673.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_PEAR_WOOD.get()) {
  674.                 {
  675.                     BlockPos _bp = BlockPos.containing(x, y, z);
  676.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_WOOD.get().defaultBlockState();
  677.                     BlockState _bso = world.getBlockState(_bp);
  678.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  679.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  680.                         if (_property != null && _bs.getValue(_property) != null)
  681.                             try {
  682.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  683.                             } catch (Exception e) {
  684.                             }
  685.                     }
  686.                     world.setBlock(_bp, _bs, 3);
  687.                 }
  688.                 if (world instanceof Level _level) {
  689.                     if (!_level.isClientSide()) {
  690.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  691.                     } else {
  692.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  693.                     }
  694.                 }
  695.             }
  696.         }
  697.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  698.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  699.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  700.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.PEAR_WOOD.get()) {
  701.                 {
  702.                     BlockPos _bp = BlockPos.containing(x, y, z);
  703.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_WOOD.get().defaultBlockState();
  704.                     BlockState _bso = world.getBlockState(_bp);
  705.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  706.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  707.                         if (_property != null && _bs.getValue(_property) != null)
  708.                             try {
  709.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  710.                             } catch (Exception e) {
  711.                             }
  712.                     }
  713.                     world.setBlock(_bp, _bs, 3);
  714.                 }
  715.                 if (world instanceof Level _level) {
  716.                     if (!_level.isClientSide()) {
  717.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  718.                     } else {
  719.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  720.                     }
  721.                 }
  722.             }
  723.         }
  724.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  725.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  726.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  727.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.MINT_PLANKS.get()) {
  728.                 {
  729.                     BlockPos _bp = BlockPos.containing(x, y, z);
  730.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_PLANKS.get().defaultBlockState();
  731.                     BlockState _bso = world.getBlockState(_bp);
  732.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  733.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  734.                         if (_property != null && _bs.getValue(_property) != null)
  735.                             try {
  736.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  737.                             } catch (Exception e) {
  738.                             }
  739.                     }
  740.                     world.setBlock(_bp, _bs, 3);
  741.                 }
  742.                 if (world instanceof Level _level) {
  743.                     if (!_level.isClientSide()) {
  744.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  745.                     } else {
  746.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  747.                     }
  748.                 }
  749.             }
  750.         }
  751.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  752.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  753.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  754.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.MINT_LOG.get()) {
  755.                 {
  756.                     BlockPos _bp = BlockPos.containing(x, y, z);
  757.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_LOG.get().defaultBlockState();
  758.                     BlockState _bso = world.getBlockState(_bp);
  759.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  760.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  761.                         if (_property != null && _bs.getValue(_property) != null)
  762.                             try {
  763.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  764.                             } catch (Exception e) {
  765.                             }
  766.                     }
  767.                     world.setBlock(_bp, _bs, 3);
  768.                 }
  769.                 if (world instanceof Level _level) {
  770.                     if (!_level.isClientSide()) {
  771.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  772.                     } else {
  773.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  774.                     }
  775.                 }
  776.             }
  777.         }
  778.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  779.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  780.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  781.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_MINT_LOG.get()) {
  782.                 {
  783.                     BlockPos _bp = BlockPos.containing(x, y, z);
  784.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_LOG.get().defaultBlockState();
  785.                     BlockState _bso = world.getBlockState(_bp);
  786.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  787.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  788.                         if (_property != null && _bs.getValue(_property) != null)
  789.                             try {
  790.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  791.                             } catch (Exception e) {
  792.                             }
  793.                     }
  794.                     world.setBlock(_bp, _bs, 3);
  795.                 }
  796.                 if (world instanceof Level _level) {
  797.                     if (!_level.isClientSide()) {
  798.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  799.                     } else {
  800.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  801.                     }
  802.                 }
  803.             }
  804.         }
  805.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  806.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  807.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  808.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_MINT_WOOD.get()) {
  809.                 {
  810.                     BlockPos _bp = BlockPos.containing(x, y, z);
  811.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_WOOD.get().defaultBlockState();
  812.                     BlockState _bso = world.getBlockState(_bp);
  813.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  814.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  815.                         if (_property != null && _bs.getValue(_property) != null)
  816.                             try {
  817.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  818.                             } catch (Exception e) {
  819.                             }
  820.                     }
  821.                     world.setBlock(_bp, _bs, 3);
  822.                 }
  823.                 if (world instanceof Level _level) {
  824.                     if (!_level.isClientSide()) {
  825.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  826.                     } else {
  827.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  828.                     }
  829.                 }
  830.             }
  831.         }
  832.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  833.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  834.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  835.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.MINT_WOOD.get()) {
  836.                 {
  837.                     BlockPos _bp = BlockPos.containing(x, y, z);
  838.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_WOOD.get().defaultBlockState();
  839.                     BlockState _bso = world.getBlockState(_bp);
  840.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  841.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  842.                         if (_property != null && _bs.getValue(_property) != null)
  843.                             try {
  844.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  845.                             } catch (Exception e) {
  846.                             }
  847.                     }
  848.                     world.setBlock(_bp, _bs, 3);
  849.                 }
  850.                 if (world instanceof Level _level) {
  851.                     if (!_level.isClientSide()) {
  852.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  853.                     } else {
  854.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  855.                     }
  856.                 }
  857.             }
  858.         }
  859.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  860.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  861.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  862.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.BLUEBERRY_PLANKS.get()) {
  863.                 {
  864.                     BlockPos _bp = BlockPos.containing(x, y, z);
  865.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_PLANKS.get().defaultBlockState();
  866.                     BlockState _bso = world.getBlockState(_bp);
  867.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  868.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  869.                         if (_property != null && _bs.getValue(_property) != null)
  870.                             try {
  871.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  872.                             } catch (Exception e) {
  873.                             }
  874.                     }
  875.                     world.setBlock(_bp, _bs, 3);
  876.                 }
  877.                 if (world instanceof Level _level) {
  878.                     if (!_level.isClientSide()) {
  879.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  880.                     } else {
  881.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  882.                     }
  883.                 }
  884.             }
  885.         }
  886.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  887.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  888.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  889.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.BLUEBERRY_LOG.get()) {
  890.                 {
  891.                     BlockPos _bp = BlockPos.containing(x, y, z);
  892.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_LOG.get().defaultBlockState();
  893.                     BlockState _bso = world.getBlockState(_bp);
  894.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  895.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  896.                         if (_property != null && _bs.getValue(_property) != null)
  897.                             try {
  898.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  899.                             } catch (Exception e) {
  900.                             }
  901.                     }
  902.                     world.setBlock(_bp, _bs, 3);
  903.                 }
  904.                 if (world instanceof Level _level) {
  905.                     if (!_level.isClientSide()) {
  906.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  907.                     } else {
  908.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  909.                     }
  910.                 }
  911.             }
  912.         }
  913.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  914.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  915.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  916.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_BLUEBERRY_LOG.get()) {
  917.                 {
  918.                     BlockPos _bp = BlockPos.containing(x, y, z);
  919.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_LOG.get().defaultBlockState();
  920.                     BlockState _bso = world.getBlockState(_bp);
  921.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  922.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  923.                         if (_property != null && _bs.getValue(_property) != null)
  924.                             try {
  925.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  926.                             } catch (Exception e) {
  927.                             }
  928.                     }
  929.                     world.setBlock(_bp, _bs, 3);
  930.                 }
  931.                 if (world instanceof Level _level) {
  932.                     if (!_level.isClientSide()) {
  933.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  934.                     } else {
  935.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  936.                     }
  937.                 }
  938.             }
  939.         }
  940.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  941.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  942.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  943.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_BLUEBERRY_WOOD.get()) {
  944.                 {
  945.                     BlockPos _bp = BlockPos.containing(x, y, z);
  946.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_WOOD.get().defaultBlockState();
  947.                     BlockState _bso = world.getBlockState(_bp);
  948.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  949.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  950.                         if (_property != null && _bs.getValue(_property) != null)
  951.                             try {
  952.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  953.                             } catch (Exception e) {
  954.                             }
  955.                     }
  956.                     world.setBlock(_bp, _bs, 3);
  957.                 }
  958.                 if (world instanceof Level _level) {
  959.                     if (!_level.isClientSide()) {
  960.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  961.                     } else {
  962.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  963.                     }
  964.                 }
  965.             }
  966.         }
  967.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  968.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  969.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  970.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.BLUEBERRY_WOOD.get()) {
  971.                 {
  972.                     BlockPos _bp = BlockPos.containing(x, y, z);
  973.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_WOOD.get().defaultBlockState();
  974.                     BlockState _bso = world.getBlockState(_bp);
  975.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  976.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  977.                         if (_property != null && _bs.getValue(_property) != null)
  978.                             try {
  979.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  980.                             } catch (Exception e) {
  981.                             }
  982.                     }
  983.                     world.setBlock(_bp, _bs, 3);
  984.                 }
  985.                 if (world instanceof Level _level) {
  986.                     if (!_level.isClientSide()) {
  987.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  988.                     } else {
  989.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  990.                     }
  991.                 }
  992.             }
  993.         }
  994.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  995.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  996.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  997.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.BLACKBERRY_PLANKS.get()) {
  998.                 {
  999.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1000.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_PLANKS.get().defaultBlockState();
  1001.                     BlockState _bso = world.getBlockState(_bp);
  1002.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1003.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1004.                         if (_property != null && _bs.getValue(_property) != null)
  1005.                             try {
  1006.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1007.                             } catch (Exception e) {
  1008.                             }
  1009.                     }
  1010.                     world.setBlock(_bp, _bs, 3);
  1011.                 }
  1012.                 if (world instanceof Level _level) {
  1013.                     if (!_level.isClientSide()) {
  1014.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1015.                     } else {
  1016.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1017.                     }
  1018.                 }
  1019.             }
  1020.         }
  1021.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1022.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1023.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1024.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.BLACKBERRY_LOG.get()) {
  1025.                 {
  1026.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1027.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_LOG.get().defaultBlockState();
  1028.                     BlockState _bso = world.getBlockState(_bp);
  1029.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1030.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1031.                         if (_property != null && _bs.getValue(_property) != null)
  1032.                             try {
  1033.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1034.                             } catch (Exception e) {
  1035.                             }
  1036.                     }
  1037.                     world.setBlock(_bp, _bs, 3);
  1038.                 }
  1039.                 if (world instanceof Level _level) {
  1040.                     if (!_level.isClientSide()) {
  1041.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1042.                     } else {
  1043.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1044.                     }
  1045.                 }
  1046.             }
  1047.         }
  1048.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1049.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1050.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1051.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_BLACKBERRY_LOG.get()) {
  1052.                 {
  1053.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1054.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_LOG.get().defaultBlockState();
  1055.                     BlockState _bso = world.getBlockState(_bp);
  1056.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1057.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1058.                         if (_property != null && _bs.getValue(_property) != null)
  1059.                             try {
  1060.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1061.                             } catch (Exception e) {
  1062.                             }
  1063.                     }
  1064.                     world.setBlock(_bp, _bs, 3);
  1065.                 }
  1066.                 if (world instanceof Level _level) {
  1067.                     if (!_level.isClientSide()) {
  1068.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1069.                     } else {
  1070.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1071.                     }
  1072.                 }
  1073.             }
  1074.         }
  1075.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1076.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1077.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1078.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_BLACKBERRY_WOOD.get()) {
  1079.                 {
  1080.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1081.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_WOOD.get().defaultBlockState();
  1082.                     BlockState _bso = world.getBlockState(_bp);
  1083.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1084.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1085.                         if (_property != null && _bs.getValue(_property) != null)
  1086.                             try {
  1087.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1088.                             } catch (Exception e) {
  1089.                             }
  1090.                     }
  1091.                     world.setBlock(_bp, _bs, 3);
  1092.                 }
  1093.                 if (world instanceof Level _level) {
  1094.                     if (!_level.isClientSide()) {
  1095.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1096.                     } else {
  1097.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1098.                     }
  1099.                 }
  1100.             }
  1101.         }
  1102.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1103.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1104.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1105.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.BLACKBERRY_WOOD.get()) {
  1106.                 {
  1107.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1108.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_WOOD.get().defaultBlockState();
  1109.                     BlockState _bso = world.getBlockState(_bp);
  1110.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1111.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1112.                         if (_property != null && _bs.getValue(_property) != null)
  1113.                             try {
  1114.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1115.                             } catch (Exception e) {
  1116.                             }
  1117.                     }
  1118.                     world.setBlock(_bp, _bs, 3);
  1119.                 }
  1120.                 if (world instanceof Level _level) {
  1121.                     if (!_level.isClientSide()) {
  1122.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1123.                     } else {
  1124.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1125.                     }
  1126.                 }
  1127.             }
  1128.         }
  1129.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1130.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1131.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1132.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.PLUM_PLANKS.get()) {
  1133.                 {
  1134.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1135.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_PLANKS.get().defaultBlockState();
  1136.                     BlockState _bso = world.getBlockState(_bp);
  1137.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1138.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1139.                         if (_property != null && _bs.getValue(_property) != null)
  1140.                             try {
  1141.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1142.                             } catch (Exception e) {
  1143.                             }
  1144.                     }
  1145.                     world.setBlock(_bp, _bs, 3);
  1146.                 }
  1147.                 if (world instanceof Level _level) {
  1148.                     if (!_level.isClientSide()) {
  1149.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1150.                     } else {
  1151.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1152.                     }
  1153.                 }
  1154.             }
  1155.         }
  1156.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1157.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1158.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1159.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.PLUM_LOG.get()) {
  1160.                 {
  1161.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1162.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_LOG.get().defaultBlockState();
  1163.                     BlockState _bso = world.getBlockState(_bp);
  1164.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1165.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1166.                         if (_property != null && _bs.getValue(_property) != null)
  1167.                             try {
  1168.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1169.                             } catch (Exception e) {
  1170.                             }
  1171.                     }
  1172.                     world.setBlock(_bp, _bs, 3);
  1173.                 }
  1174.                 if (world instanceof Level _level) {
  1175.                     if (!_level.isClientSide()) {
  1176.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1177.                     } else {
  1178.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1179.                     }
  1180.                 }
  1181.             }
  1182.         }
  1183.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1184.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1185.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1186.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_PLUM_LOG.get()) {
  1187.                 {
  1188.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1189.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_LOG.get().defaultBlockState();
  1190.                     BlockState _bso = world.getBlockState(_bp);
  1191.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1192.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1193.                         if (_property != null && _bs.getValue(_property) != null)
  1194.                             try {
  1195.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1196.                             } catch (Exception e) {
  1197.                             }
  1198.                     }
  1199.                     world.setBlock(_bp, _bs, 3);
  1200.                 }
  1201.                 if (world instanceof Level _level) {
  1202.                     if (!_level.isClientSide()) {
  1203.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1204.                     } else {
  1205.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1206.                     }
  1207.                 }
  1208.             }
  1209.         }
  1210.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1211.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1212.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1213.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_PLUM_WOOD.get()) {
  1214.                 {
  1215.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1216.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_WOOD.get().defaultBlockState();
  1217.                     BlockState _bso = world.getBlockState(_bp);
  1218.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1219.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1220.                         if (_property != null && _bs.getValue(_property) != null)
  1221.                             try {
  1222.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1223.                             } catch (Exception e) {
  1224.                             }
  1225.                     }
  1226.                     world.setBlock(_bp, _bs, 3);
  1227.                 }
  1228.                 if (world instanceof Level _level) {
  1229.                     if (!_level.isClientSide()) {
  1230.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1231.                     } else {
  1232.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1233.                     }
  1234.                 }
  1235.             }
  1236.         }
  1237.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1238.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1239.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1240.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.PLUM_WOOD.get()) {
  1241.                 {
  1242.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1243.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_WOOD.get().defaultBlockState();
  1244.                     BlockState _bso = world.getBlockState(_bp);
  1245.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1246.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1247.                         if (_property != null && _bs.getValue(_property) != null)
  1248.                             try {
  1249.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1250.                             } catch (Exception e) {
  1251.                             }
  1252.                     }
  1253.                     world.setBlock(_bp, _bs, 3);
  1254.                 }
  1255.                 if (world instanceof Level _level) {
  1256.                     if (!_level.isClientSide()) {
  1257.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1258.                     } else {
  1259.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1260.                     }
  1261.                 }
  1262.             }
  1263.         }
  1264.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1265.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1266.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1267.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.GRAPE_PLANKS.get()) {
  1268.                 {
  1269.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1270.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_PLANKS.get().defaultBlockState();
  1271.                     BlockState _bso = world.getBlockState(_bp);
  1272.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1273.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1274.                         if (_property != null && _bs.getValue(_property) != null)
  1275.                             try {
  1276.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1277.                             } catch (Exception e) {
  1278.                             }
  1279.                     }
  1280.                     world.setBlock(_bp, _bs, 3);
  1281.                 }
  1282.                 if (world instanceof Level _level) {
  1283.                     if (!_level.isClientSide()) {
  1284.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1285.                     } else {
  1286.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1287.                     }
  1288.                 }
  1289.             }
  1290.         }
  1291.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1292.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1293.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1294.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.GRAPE_LOG.get()) {
  1295.                 {
  1296.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1297.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_LOG.get().defaultBlockState();
  1298.                     BlockState _bso = world.getBlockState(_bp);
  1299.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1300.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1301.                         if (_property != null && _bs.getValue(_property) != null)
  1302.                             try {
  1303.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1304.                             } catch (Exception e) {
  1305.                             }
  1306.                     }
  1307.                     world.setBlock(_bp, _bs, 3);
  1308.                 }
  1309.                 if (world instanceof Level _level) {
  1310.                     if (!_level.isClientSide()) {
  1311.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1312.                     } else {
  1313.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1314.                     }
  1315.                 }
  1316.             }
  1317.         }
  1318.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1319.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1320.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1321.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_GRAPE_LOG.get()) {
  1322.                 {
  1323.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1324.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_LOG.get().defaultBlockState();
  1325.                     BlockState _bso = world.getBlockState(_bp);
  1326.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1327.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1328.                         if (_property != null && _bs.getValue(_property) != null)
  1329.                             try {
  1330.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1331.                             } catch (Exception e) {
  1332.                             }
  1333.                     }
  1334.                     world.setBlock(_bp, _bs, 3);
  1335.                 }
  1336.                 if (world instanceof Level _level) {
  1337.                     if (!_level.isClientSide()) {
  1338.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1339.                     } else {
  1340.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1341.                     }
  1342.                 }
  1343.             }
  1344.         }
  1345.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1346.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1347.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1348.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_GRAPE_WOOD.get()) {
  1349.                 {
  1350.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1351.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_WOOD.get().defaultBlockState();
  1352.                     BlockState _bso = world.getBlockState(_bp);
  1353.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1354.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1355.                         if (_property != null && _bs.getValue(_property) != null)
  1356.                             try {
  1357.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1358.                             } catch (Exception e) {
  1359.                             }
  1360.                     }
  1361.                     world.setBlock(_bp, _bs, 3);
  1362.                 }
  1363.                 if (world instanceof Level _level) {
  1364.                     if (!_level.isClientSide()) {
  1365.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1366.                     } else {
  1367.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1368.                     }
  1369.                 }
  1370.             }
  1371.         }
  1372.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1373.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1374.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1375.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.GRAPE_WOOD.get()) {
  1376.                 {
  1377.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1378.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_WOOD.get().defaultBlockState();
  1379.                     BlockState _bso = world.getBlockState(_bp);
  1380.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1381.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1382.                         if (_property != null && _bs.getValue(_property) != null)
  1383.                             try {
  1384.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1385.                             } catch (Exception e) {
  1386.                             }
  1387.                     }
  1388.                     world.setBlock(_bp, _bs, 3);
  1389.                 }
  1390.                 if (world instanceof Level _level) {
  1391.                     if (!_level.isClientSide()) {
  1392.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1393.                     } else {
  1394.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1395.                     }
  1396.                 }
  1397.             }
  1398.         }
  1399.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1400.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1401.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1402.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.BROWN_PLANKS.get()) {
  1403.                 {
  1404.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1405.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_PLANKS.get().defaultBlockState();
  1406.                     BlockState _bso = world.getBlockState(_bp);
  1407.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1408.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1409.                         if (_property != null && _bs.getValue(_property) != null)
  1410.                             try {
  1411.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1412.                             } catch (Exception e) {
  1413.                             }
  1414.                     }
  1415.                     world.setBlock(_bp, _bs, 3);
  1416.                 }
  1417.                 if (world instanceof Level _level) {
  1418.                     if (!_level.isClientSide()) {
  1419.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1420.                     } else {
  1421.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1422.                     }
  1423.                 }
  1424.             }
  1425.         }
  1426.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1427.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1428.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1429.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.BROWN_LOG.get()) {
  1430.                 {
  1431.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1432.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_LOG.get().defaultBlockState();
  1433.                     BlockState _bso = world.getBlockState(_bp);
  1434.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1435.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1436.                         if (_property != null && _bs.getValue(_property) != null)
  1437.                             try {
  1438.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1439.                             } catch (Exception e) {
  1440.                             }
  1441.                     }
  1442.                     world.setBlock(_bp, _bs, 3);
  1443.                 }
  1444.                 if (world instanceof Level _level) {
  1445.                     if (!_level.isClientSide()) {
  1446.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1447.                     } else {
  1448.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1449.                     }
  1450.                 }
  1451.             }
  1452.         }
  1453.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1454.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1455.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1456.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_BROWN_LOG.get()) {
  1457.                 {
  1458.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1459.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_LOG.get().defaultBlockState();
  1460.                     BlockState _bso = world.getBlockState(_bp);
  1461.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1462.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1463.                         if (_property != null && _bs.getValue(_property) != null)
  1464.                             try {
  1465.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1466.                             } catch (Exception e) {
  1467.                             }
  1468.                     }
  1469.                     world.setBlock(_bp, _bs, 3);
  1470.                 }
  1471.                 if (world instanceof Level _level) {
  1472.                     if (!_level.isClientSide()) {
  1473.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1474.                     } else {
  1475.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1476.                     }
  1477.                 }
  1478.             }
  1479.         }
  1480.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1481.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1482.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1483.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.BROWN_STRIPPED_WOOD.get()) {
  1484.                 {
  1485.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1486.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_WOOD.get().defaultBlockState();
  1487.                     BlockState _bso = world.getBlockState(_bp);
  1488.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1489.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1490.                         if (_property != null && _bs.getValue(_property) != null)
  1491.                             try {
  1492.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1493.                             } catch (Exception e) {
  1494.                             }
  1495.                     }
  1496.                     world.setBlock(_bp, _bs, 3);
  1497.                 }
  1498.                 if (world instanceof Level _level) {
  1499.                     if (!_level.isClientSide()) {
  1500.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1501.                     } else {
  1502.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1503.                     }
  1504.                 }
  1505.             }
  1506.         }
  1507.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1508.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1509.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1510.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.BROWN_WOOD.get()) {
  1511.                 {
  1512.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1513.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_WOOD.get().defaultBlockState();
  1514.                     BlockState _bso = world.getBlockState(_bp);
  1515.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1516.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1517.                         if (_property != null && _bs.getValue(_property) != null)
  1518.                             try {
  1519.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1520.                             } catch (Exception e) {
  1521.                             }
  1522.                     }
  1523.                     world.setBlock(_bp, _bs, 3);
  1524.                 }
  1525.                 if (world instanceof Level _level) {
  1526.                     if (!_level.isClientSide()) {
  1527.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1528.                     } else {
  1529.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1530.                     }
  1531.                 }
  1532.             }
  1533.         }
  1534.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1535.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1536.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1537.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.LIGHT_GRAY_PLANKS.get()) {
  1538.                 {
  1539.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1540.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_PLANKS.get().defaultBlockState();
  1541.                     BlockState _bso = world.getBlockState(_bp);
  1542.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1543.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1544.                         if (_property != null && _bs.getValue(_property) != null)
  1545.                             try {
  1546.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1547.                             } catch (Exception e) {
  1548.                             }
  1549.                     }
  1550.                     world.setBlock(_bp, _bs, 3);
  1551.                 }
  1552.                 if (world instanceof Level _level) {
  1553.                     if (!_level.isClientSide()) {
  1554.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1555.                     } else {
  1556.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1557.                     }
  1558.                 }
  1559.             }
  1560.         }
  1561.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1562.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1563.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1564.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.LIGHT_GRAY_LOG.get()) {
  1565.                 {
  1566.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1567.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_LOG.get().defaultBlockState();
  1568.                     BlockState _bso = world.getBlockState(_bp);
  1569.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1570.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1571.                         if (_property != null && _bs.getValue(_property) != null)
  1572.                             try {
  1573.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1574.                             } catch (Exception e) {
  1575.                             }
  1576.                     }
  1577.                     world.setBlock(_bp, _bs, 3);
  1578.                 }
  1579.                 if (world instanceof Level _level) {
  1580.                     if (!_level.isClientSide()) {
  1581.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1582.                     } else {
  1583.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1584.                     }
  1585.                 }
  1586.             }
  1587.         }
  1588.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1589.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1590.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1591.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_LIGHT_GRAY_LOG.get()) {
  1592.                 {
  1593.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1594.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_LOG.get().defaultBlockState();
  1595.                     BlockState _bso = world.getBlockState(_bp);
  1596.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1597.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1598.                         if (_property != null && _bs.getValue(_property) != null)
  1599.                             try {
  1600.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1601.                             } catch (Exception e) {
  1602.                             }
  1603.                     }
  1604.                     world.setBlock(_bp, _bs, 3);
  1605.                 }
  1606.                 if (world instanceof Level _level) {
  1607.                     if (!_level.isClientSide()) {
  1608.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1609.                     } else {
  1610.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1611.                     }
  1612.                 }
  1613.             }
  1614.         }
  1615.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1616.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1617.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1618.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_LIGHT_GRAY_WOOD.get()) {
  1619.                 {
  1620.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1621.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_WOOD.get().defaultBlockState();
  1622.                     BlockState _bso = world.getBlockState(_bp);
  1623.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1624.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1625.                         if (_property != null && _bs.getValue(_property) != null)
  1626.                             try {
  1627.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1628.                             } catch (Exception e) {
  1629.                             }
  1630.                     }
  1631.                     world.setBlock(_bp, _bs, 3);
  1632.                 }
  1633.                 if (world instanceof Level _level) {
  1634.                     if (!_level.isClientSide()) {
  1635.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1636.                     } else {
  1637.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1638.                     }
  1639.                 }
  1640.             }
  1641.         }
  1642.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1643.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1644.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1645.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.LIGHT_GRAY_WOOD.get()) {
  1646.                 {
  1647.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1648.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_WOOD.get().defaultBlockState();
  1649.                     BlockState _bso = world.getBlockState(_bp);
  1650.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1651.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1652.                         if (_property != null && _bs.getValue(_property) != null)
  1653.                             try {
  1654.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1655.                             } catch (Exception e) {
  1656.                             }
  1657.                     }
  1658.                     world.setBlock(_bp, _bs, 3);
  1659.                 }
  1660.                 if (world instanceof Level _level) {
  1661.                     if (!_level.isClientSide()) {
  1662.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1663.                     } else {
  1664.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1665.                     }
  1666.                 }
  1667.             }
  1668.         }
  1669.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1670.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1671.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1672.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.GRAY_PLANKS.get()) {
  1673.                 {
  1674.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1675.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_PLANKS.get().defaultBlockState();
  1676.                     BlockState _bso = world.getBlockState(_bp);
  1677.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1678.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1679.                         if (_property != null && _bs.getValue(_property) != null)
  1680.                             try {
  1681.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1682.                             } catch (Exception e) {
  1683.                             }
  1684.                     }
  1685.                     world.setBlock(_bp, _bs, 3);
  1686.                 }
  1687.                 if (world instanceof Level _level) {
  1688.                     if (!_level.isClientSide()) {
  1689.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1690.                     } else {
  1691.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1692.                     }
  1693.                 }
  1694.             }
  1695.         }
  1696.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1697.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1698.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1699.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.GRAY_LOG.get()) {
  1700.                 {
  1701.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1702.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_LOG.get().defaultBlockState();
  1703.                     BlockState _bso = world.getBlockState(_bp);
  1704.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1705.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1706.                         if (_property != null && _bs.getValue(_property) != null)
  1707.                             try {
  1708.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1709.                             } catch (Exception e) {
  1710.                             }
  1711.                     }
  1712.                     world.setBlock(_bp, _bs, 3);
  1713.                 }
  1714.                 if (world instanceof Level _level) {
  1715.                     if (!_level.isClientSide()) {
  1716.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1717.                     } else {
  1718.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1719.                     }
  1720.                 }
  1721.             }
  1722.         }
  1723.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1724.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1725.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1726.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_GRAY_LOG.get()) {
  1727.                 {
  1728.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1729.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_LOG.get().defaultBlockState();
  1730.                     BlockState _bso = world.getBlockState(_bp);
  1731.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1732.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1733.                         if (_property != null && _bs.getValue(_property) != null)
  1734.                             try {
  1735.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1736.                             } catch (Exception e) {
  1737.                             }
  1738.                     }
  1739.                     world.setBlock(_bp, _bs, 3);
  1740.                 }
  1741.                 if (world instanceof Level _level) {
  1742.                     if (!_level.isClientSide()) {
  1743.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1744.                     } else {
  1745.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1746.                     }
  1747.                 }
  1748.             }
  1749.         }
  1750.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1751.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1752.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1753.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_GRAY_WOOD.get()) {
  1754.                 {
  1755.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1756.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_WOOD.get().defaultBlockState();
  1757.                     BlockState _bso = world.getBlockState(_bp);
  1758.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1759.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1760.                         if (_property != null && _bs.getValue(_property) != null)
  1761.                             try {
  1762.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1763.                             } catch (Exception e) {
  1764.                             }
  1765.                     }
  1766.                     world.setBlock(_bp, _bs, 3);
  1767.                 }
  1768.                 if (world instanceof Level _level) {
  1769.                     if (!_level.isClientSide()) {
  1770.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1771.                     } else {
  1772.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1773.                     }
  1774.                 }
  1775.             }
  1776.         }
  1777.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1778.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1779.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1780.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.GRAY_WOOD.get()) {
  1781.                 {
  1782.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1783.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_WOOD.get().defaultBlockState();
  1784.                     BlockState _bso = world.getBlockState(_bp);
  1785.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1786.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1787.                         if (_property != null && _bs.getValue(_property) != null)
  1788.                             try {
  1789.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1790.                             } catch (Exception e) {
  1791.                             }
  1792.                     }
  1793.                     world.setBlock(_bp, _bs, 3);
  1794.                 }
  1795.                 if (world instanceof Level _level) {
  1796.                     if (!_level.isClientSide()) {
  1797.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1798.                     } else {
  1799.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1800.                     }
  1801.                 }
  1802.             }
  1803.         }
  1804.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1805.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1806.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1807.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.CHARCOAL_PLANKS.get()) {
  1808.                 {
  1809.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1810.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_PLANKS.get().defaultBlockState();
  1811.                     BlockState _bso = world.getBlockState(_bp);
  1812.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1813.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1814.                         if (_property != null && _bs.getValue(_property) != null)
  1815.                             try {
  1816.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1817.                             } catch (Exception e) {
  1818.                             }
  1819.                     }
  1820.                     world.setBlock(_bp, _bs, 3);
  1821.                 }
  1822.                 if (world instanceof Level _level) {
  1823.                     if (!_level.isClientSide()) {
  1824.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1825.                     } else {
  1826.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1827.                     }
  1828.                 }
  1829.             }
  1830.         }
  1831.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1832.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1833.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1834.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.CHARCOAL_LOG.get()) {
  1835.                 {
  1836.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1837.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_LOG.get().defaultBlockState();
  1838.                     BlockState _bso = world.getBlockState(_bp);
  1839.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1840.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1841.                         if (_property != null && _bs.getValue(_property) != null)
  1842.                             try {
  1843.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1844.                             } catch (Exception e) {
  1845.                             }
  1846.                     }
  1847.                     world.setBlock(_bp, _bs, 3);
  1848.                 }
  1849.                 if (world instanceof Level _level) {
  1850.                     if (!_level.isClientSide()) {
  1851.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1852.                     } else {
  1853.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1854.                     }
  1855.                 }
  1856.             }
  1857.         }
  1858.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1859.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1860.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1861.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_CHARCOAL_LOG.get()) {
  1862.                 {
  1863.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1864.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_LOG.get().defaultBlockState();
  1865.                     BlockState _bso = world.getBlockState(_bp);
  1866.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1867.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1868.                         if (_property != null && _bs.getValue(_property) != null)
  1869.                             try {
  1870.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1871.                             } catch (Exception e) {
  1872.                             }
  1873.                     }
  1874.                     world.setBlock(_bp, _bs, 3);
  1875.                 }
  1876.                 if (world instanceof Level _level) {
  1877.                     if (!_level.isClientSide()) {
  1878.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1879.                     } else {
  1880.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1881.                     }
  1882.                 }
  1883.             }
  1884.         }
  1885.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1886.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1887.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1888.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.STRIPPED_CHARCOAL_WOOD.get()) {
  1889.                 {
  1890.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1891.                     BlockState _bs = KieselsKatastrophicModModBlocks.STRIPPED_PAPER_WOOD.get().defaultBlockState();
  1892.                     BlockState _bso = world.getBlockState(_bp);
  1893.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1894.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1895.                         if (_property != null && _bs.getValue(_property) != null)
  1896.                             try {
  1897.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1898.                             } catch (Exception e) {
  1899.                             }
  1900.                     }
  1901.                     world.setBlock(_bp, _bs, 3);
  1902.                 }
  1903.                 if (world instanceof Level _level) {
  1904.                     if (!_level.isClientSide()) {
  1905.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1906.                     } else {
  1907.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1908.                     }
  1909.                 }
  1910.             }
  1911.         }
  1912.         if ((entity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getItem() == KieselsKatastrophicModModItems.VARNISH_STRIPPER.get()) {
  1913.             KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish = (world.getBlockState(BlockPos.containing(x, y, z)));
  1914.             KieselsKatastrophicModModVariables.MapVariables.get(world).syncData(world);
  1915.             if (KieselsKatastrophicModModVariables.MapVariables.get(world).Varnish.getBlock() == KieselsKatastrophicModModBlocks.CHARCOAL_WOOD.get()) {
  1916.                 {
  1917.                     BlockPos _bp = BlockPos.containing(x, y, z);
  1918.                     BlockState _bs = KieselsKatastrophicModModBlocks.PAPER_WOOD.get().defaultBlockState();
  1919.                     BlockState _bso = world.getBlockState(_bp);
  1920.                     for (Map.Entry<Property<?>, Comparable<?>> entry : _bso.getValues().entrySet()) {
  1921.                         Property _property = _bs.getBlock().getStateDefinition().getProperty(entry.getKey().getName());
  1922.                         if (_property != null && _bs.getValue(_property) != null)
  1923.                             try {
  1924.                                 _bs = _bs.setValue(_property, (Comparable) entry.getValue());
  1925.                             } catch (Exception e) {
  1926.                             }
  1927.                     }
  1928.                     world.setBlock(_bp, _bs, 3);
  1929.                 }
  1930.                 if (world instanceof Level _level) {
  1931.                     if (!_level.isClientSide()) {
  1932.                         _level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1);
  1933.                     } else {
  1934.                         _level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.brewing_stand.brew")), SoundSource.NEUTRAL, 1, 1, false);
  1935.                     }
  1936.                 }
  1937.             }
  1938.         }
  1939.     }
  1940. }
  1941.  
Advertisement
Add Comment
Please, Sign In to add comment