public override void OnBlockPlaced(IWorldAccessor world, BlockPos pos, ItemStack byItemStack = null) { if (world.GetBlockEntitiesAround(pos, new Vec2i(11, 11)).Any(e => (e is BlockEntitySnitch))) { world.RegisterCallback(dt => world.BlockAccessor.BreakBlock(pos, null), 500); } base.OnBlockPlaced(world, pos, byItemStack); }